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

add

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