|
...
|
...
|
@@ -63,28 +63,28 @@ Page({ |
|
|
|
},
|
|
|
|
bookInfo: null,
|
|
|
|
async getDetail(id){
|
|
|
|
let res=await App.Reserve.Detail({rid: id});
|
|
|
|
let params={rid: id}
|
|
|
|
let res=await App.Reserve.Detail(params);
|
|
|
|
this.bookInfo=res.data
|
|
|
|
if(res.data.operator_openid==2){//运营处理订单,强制使用运营短信
|
|
|
|
this.tplsIndex='SMS_173950289'
|
|
|
|
params.template_code='SMS_173950289'
|
|
|
|
}
|
|
|
|
let tplMsg=await ST.getTplMsg(res.data,this.tplsIndex,this.sc)
|
|
|
|
console.log('tplMsg',tplMsg)
|
|
|
|
let msg=await App.SendSMS.GetSmsContent(params);
|
|
|
|
//let tplMsg=await ST.getTplMsg(res.data,this.tplsIndex,this.sc)
|
|
|
|
console.log('tplMsg',msg.data.content)
|
|
|
|
this.setData({
|
|
|
|
bookInfo: res.data,
|
|
|
|
tplMsg: tplMsg
|
|
|
|
tplMsg: msg.data.content
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
sendsms(){
|
|
|
|
App.SendSMS.Message({
|
|
|
|
phone: this.bookInfo.phone,
|
|
|
|
sign_name: '周到安排',
|
|
|
|
template_code: this.tplsIndex,
|
|
|
|
template_param: JSON.stringify(ST.smsData),
|
|
|
|
App.SendSMS.NewMessage({
|
|
|
|
rid: this.bookInfo.id,
|
|
|
|
len:this.data.tplMsg.length
|
|
|
|
}).then((res) => {
|
|
|
|
sid: this.bookInfo.seller.id
|
|
|
|
}).then(res=>{
|
|
|
|
if (res.ret != 200) {
|
|
|
|
return util.toast(res.msg, 'none');
|
|
|
|
}
|
...
|
...
|
|