提交 920de312 编写于 作者: tao.wu's avatar tao.wu

去除自动触发解决问题

上级 7e5a9e5f
......@@ -109,7 +109,7 @@ export default {
this.$rocNative.appInit();
window.__refresh = function() {
// alert('准备自动触发预约')
_seft.setRemind(true);
// _seft.setRemind(true);
}
this.shareObj = {
shareUrl: window.location.href,
......@@ -206,7 +206,7 @@ export default {
}
},
// 提醒预约
setRemind(flag) {
setRemind() {
this.$sendBuriedData({
component_tag: `301#301004`
});
......@@ -221,7 +221,10 @@ export default {
window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile';
});
} else {
if(!flag && !this.loaded){
// if(!flag && !this.loaded){
// return;
// }
if(!this.loaded){
return;
}
this.$rocNative.getToken().then(data => {
......@@ -235,14 +238,14 @@ export default {
if (status == 1) { // 机构状态正常
remind({ token: userToken }).then(resD => {
if (resD.code == '000000') {
if(!flag){
// if(!flag){
this.$dialog.alert({
title: '设置提醒成功',
message: '云鹊奖活动正式时间:12月16日 10:00开始,我们将会以APP消息提醒和短信形式提醒道您,请记得及时参与活动',
confirmButtonText: '我知道了',
className: 'remind-success'
});
}
// }
this.remindStatus = true;
} else {
this.$toast(resD.message)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册