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

add

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