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

去除自动触发解决问题

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