|
...
|
...
|
@@ -17,6 +17,7 @@ Component({ |
|
|
|
showGopay: false,
|
|
|
|
hasScene:1,
|
|
|
|
},
|
|
|
|
hasCanSend:true,//是否可以点击发送按钮
|
|
|
|
attached(){
|
|
|
|
this.setData({
|
|
|
|
hasScene:util.cache('enter_params')?0:1,
|
|
...
|
...
|
@@ -51,6 +52,8 @@ Component({ |
|
|
|
})
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if(!this.hasCanSend) return;
|
|
|
|
this.hasCanSend=false;
|
|
|
|
let note_name = '';
|
|
|
|
let enter_params = util.cache('enter_params');
|
|
|
|
|
|
...
|
...
|
@@ -70,6 +73,7 @@ Component({ |
|
|
|
}
|
|
|
|
App.Reserve.SmsBatchSend(param).then(res => {
|
|
|
|
if (res.ret != 200) {
|
|
|
|
this.hasCanSend=true;
|
|
|
|
return util.toast(res.msg || '发送失败,请联系客服', 'none');
|
|
|
|
}
|
|
|
|
try{
|
|
...
|
...
|
@@ -78,6 +82,7 @@ Component({ |
|
|
|
this.triggerEvent('send');
|
|
|
|
util.toast('已发送');
|
|
|
|
}).catch(res => {
|
|
|
|
this.hasCanSend=true;
|
|
|
|
util.toast('发送失败,请联系客服', 'none');
|
|
|
|
});
|
|
|
|
},
|
...
|
...
|
|