提交 7e89b88f 编写于 作者: tao.wu's avatar tao.wu

before init btn status

上级 feb3fea3
......@@ -83,6 +83,7 @@ export default {
},
data() {
return {
canClick: false,
showWxMask: false,
showFixed: false,
remindStatus: false,
......@@ -113,10 +114,12 @@ export default {
shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png'
}
this.isWeb = this.$rocNative.isWeb;
// 通过获取token,初始化数据
this.$rocNative.getToken().then(res => {
const { userToken } = res;
getRemindStatus(userToken).then(res => {
this.remindStatus = res.data;
this.canClick = true;
});
});
// 滚动交互
......@@ -191,6 +194,9 @@ export default {
window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile';
});
} else {
if(!this.canClick){
return;
}
this.$rocNative.getToken().then(data => {
const { userToken } = data;
checkHospitalStatus(userToken).then(res => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册