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

before init btn status

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