提交 240cffee 编写于 作者: chendeli's avatar chendeli

add

上级 517aaa24
......@@ -237,17 +237,17 @@ export function jumpEvaluatPage(){
// const apiUrl = 'https://dev-api.yunqueyi.com/'
// test1地址
const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/'
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/'
// const baseUrl = 'https://test1-sc.yunqueyi.com/'
// const apiUrl = 'https://test1-api.yunqueyi.com/'
// const evaluatPageUrl = 'http://10.177.10.225:9001/#/home' || 'https://test1-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/'
// const baseUrl = 'https://uat-sc.yunqueyi.com/'
// const apiUrl = 'https://uat-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/'
const baseUrl = 'https://uat-sc.yunqueyi.com/'
const apiUrl = 'https://uat-api.yunqueyi.com/'
const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/'
// pro地址
// const baseUrl = 'https://sc.yunqueyi.com/'
......
......@@ -145,6 +145,7 @@ export default {
isFailTeaches:false,
isFailFive:false,
adjustPageNo:1,
setTimer:null,
}
},
components:{
......@@ -170,7 +171,7 @@ export default {
window.__nativeCallMsg = function(params){
_this.msgCount = params.msgNum || '';
//alert(_this.msgCount);
// alert(_this.msgCount);
}
......@@ -182,9 +183,15 @@ export default {
}
window.__refresh = function(params){
_this.isShowEvluat = false;
_this.isIntStyle = '';
_this.adjustPageNo = 1;
if(_this.setTimer != null){
clearInterval(_this.setTimer);
_this.isShowEvluat = false;
_this.isIntStyle = '';
}
//alert(_this.isShowEvluat);
//返回
if(_this.isRefreshFromBack){
......@@ -225,23 +232,20 @@ export default {
if(parm.userMobile && parm.userMobile != ''){
_this.getKeepData(parm.userToken);
}
_this.initByToken(parm.userToken);
_this.initByToken(parm.userToken);
}
//_this.getStatusHight();
// _this.token = '3315E74ABBEC49E98B9FC8FF18A7F838';
//
// _this.token = '593F679F62964076AF1C7489DA3343ED';
// _this.msgCount = '2'
// _this.isShowKeep = true;
// _this.isHeightFromApp = true;
// _this.getKeepData(_this.token);
// _this.initByToken(_this.token);
//_this.initByToken('593F679F62964076AF1C7489DA3343ED');
// _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
......@@ -265,7 +269,6 @@ export default {
isShowEvluat:function(n){
///alert(n);
if(!n && this.isIntStyle == 'font-style pull-up'){
///alert("000");
rocNative.setTabMiniIcon({
tabIndex:3,
iconTitle:'学习评价',
......@@ -409,8 +412,12 @@ export default {
token:userToken,
}
}
clearInterval(_this.setTimer);
_this.isShowEvluat = false;
_this.isIntStyle = ''
_this.GET('contents/gp/v1/homepage', para).then(res => {
if(res.code == '000000'){
// res.data = {
// avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png",
......@@ -429,7 +436,8 @@ export default {
}else{
_this.isShowEvluat = _this.evaluctObj.showFlag;
_this.isShowEvluat = res.data.showFlag;
if(!_this.isShowEvluat){
_this.isIntStyle = ''
}else{
......@@ -593,7 +601,7 @@ export default {
//为您推荐
getAdjustData(userToken){
//alert(userToken);
this.adjustList = []
let _this = this,
parm = {
......@@ -701,6 +709,7 @@ export default {
if( this.isIntStyle == 'font-style pull-down'){
this.isIntStyle = 'font-style pull-up';
clearInterval(this.setTimer)
this.isShowEvluat = false;
}
var adjustTop = 0;
......@@ -742,11 +751,11 @@ export default {
//五秒之后收起
fiveTimePull(){
let _this = this;
let setTimer = setInterval(function(){
_this.setTimer = setInterval(function(){
_this.isIntStyle = 'font-style pull-up';
_this.isShowEvluat = false;
///alert("0")
clearInterval(setTimer)
clearInterval(_this.setTimer)
},5000);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册