提交 6cb6c937 编写于 作者: chendeli's avatar chendeli

add

上级 22a02b79
...@@ -98,8 +98,7 @@ export default { ...@@ -98,8 +98,7 @@ export default {
hideNewCourse:true, hideNewCourse:true,
updateTotal:0, updateTotal:0,
msgCount:'', msgCount:'',
systemType:'',
appVersion:'',
userToken:'', userToken:'',
searchFix:false, searchFix:false,
statusBarHeight:20, statusBarHeight:20,
...@@ -128,17 +127,17 @@ export default { ...@@ -128,17 +127,17 @@ export default {
_this.msgCount = params.msgNum || ''; _this.msgCount = params.msgNum || '';
} }
window.__getUserInfo = function(parm){ // window.__getUserInfo = function(parm){
///userMobile userName userToken systemType(Andriod: 1, iOS: 2) appVersion doctorId // ///userMobile userName userToken systemType(Andriod: 1, iOS: 2) appVersion doctorId
_this.systemType = parm.systemType; // _this.systemType = parm.systemType;
_this.appVersion = parm.appVersion; // _this.appVersion = parm.appVersion;
_this.userToken = parm.userToken; // _this.userToken = parm.userToken;
_this.userMobile = parm.userMobile; // _this.userMobile = parm.userMobile;
if(!!_this.systemType && !!_this.appVersion){ // if(!!_this.systemType && !!_this.appVersion){
_this.getSwiper(); // _this.getSwiper();
} // }
} // }
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
_this.statusBarHeight = parm.statusBarHeight _this.statusBarHeight = parm.statusBarHeight
} }
...@@ -146,13 +145,15 @@ export default { ...@@ -146,13 +145,15 @@ export default {
}, },
mounted(){ mounted(){
console.log(this);
window.addEventListener('scroll', this.scrollFun); window.addEventListener('scroll', this.scrollFun);
this.getUserInfo();
this.getStatusHight(); this.getStatusHight();
this.getUpdateData(); this.getUpdateData();
this.getMiddel(); this.getMiddel();
if(!!this.systemType && !!this.appVersion){
this.getSwiper();
}
// this.getSwiper(); // this.getSwiper();
}, },
...@@ -186,11 +187,11 @@ export default { ...@@ -186,11 +187,11 @@ export default {
}, },
//获取版本号 //获取版本号
getUserInfo(){ // getUserInfo(){
rocNative.getUserInfo({ // rocNative.getUserInfo({
__funcName: '__getUserInfo' // __funcName: '__getUserInfo'
}) // })
}, // },
//轮播图跳转 //轮播图跳转
goLinkByswiper(item){ goLinkByswiper(item){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册