Commit 691dbca02c572919d5d508b00a3efd624073ae02

Authored by vking
1 parent c1dea71e

fix bug 1157419716001003717 1157419716001003719

... ... @@ -75,18 +75,6 @@ App({
console.log('onUpdateFailed',res)
})
}
try{
let sms_code= await this.getClipboardData();
wx.setClipboardData({
data:"?"
})
console.log('SMS.code',sms_code);
wx.reLaunch({
url:'/pages/customer/index?sms_code='+sms_code
});
}catch (e){
console.log('SMS.code.catch',e);
}
},
async getSystemInfo(){
this._getSystemInfo().then((res)=>{
... ... @@ -179,23 +167,6 @@ App({
this.openid=openid
return openid;
},
getClipboardData(){
return new Promise((success,fail)=>{
wx.getClipboardData({
success:(res)=>{
let match=res.data.match(/#(.*)#/);
if(match && res.data.indexOf('周到安排')>0){
success(match[1])
}else{
fail()
}
},
fail:()=>{
fail()
}
})
})
},
onHide(){
console.log('onHide');
PubSub.emit('appHide')
... ...
... ... @@ -277,7 +277,10 @@ Page({
rid: this.data.bookInfo.id,
status: util.attr(e, 'status'),
cause: await this.getCause(),
}).then(() => {
}).then((res) => {
if(res.ret!=200){
util.toast(res.msg);
}
this.getDetail(this.data.bookInfo.id, true);
});
}else{
... ... @@ -285,7 +288,10 @@ Page({
rid: this.data.bookInfo.id,
status: util.attr(e, 'status'),
cause: await this.getCause(),
}).then(() => {
}).then((res) => {
if(res.ret!=200){
util.toast(res.msg);
}
this.getDetail(this.data.bookInfo.id, true);
});
}
... ... @@ -317,7 +323,10 @@ Page({
cause:await this.getCause('包间已订满'),
ac:param.auto||"0",
}
App.Customer.SetReserveStatus(params).then(()=>{
App.Customer.SetReserveStatus(params).then((res)=>{
if(res.ret!=200){
util.toast(res.msg);
}
this.getDetail(this.data.bookInfo.id,true);
PubSub.emit('fulshReseveList')
})
... ... @@ -349,7 +358,10 @@ Page({
this.setData({
loaded:false,
})
App.Customer.SetReserveStatus(params).then(()=>{
App.Customer.SetReserveStatus(params).then((res)=>{
if(res.ret!=200){
util.toast(res.msg);
}
this.getDetail(this.data.bookInfo.id,true);
PubSub.emit('fulshReseveList')
})
... ...