|
...
|
...
|
@@ -17,7 +17,7 @@ Page({ |
|
|
|
detail:null,
|
|
|
|
user:_u,
|
|
|
|
},
|
|
|
|
|
|
|
|
hasSubmit:true,
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
...
|
...
|
@@ -109,12 +109,14 @@ Page({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
saved() {
|
|
|
|
if(!this.hasSubmit) return;
|
|
|
|
if(!this.user.name){
|
|
|
|
return util.toast('请填写姓名','none')
|
|
|
|
}
|
|
|
|
if(!this.user.phone){
|
|
|
|
return util.toast('请填写手机','none')
|
|
|
|
}
|
|
|
|
this.hasSubmit=false;
|
|
|
|
App.Customer.SetReserveInfo({
|
|
|
|
sid:this.options.sid,
|
|
|
|
pnum:this.options.pnum,
|
|
...
|
...
|
@@ -126,6 +128,7 @@ Page({ |
|
|
|
cusdem:this.user.remark||'',
|
|
|
|
}).then(res=>{
|
|
|
|
if(res.ret!=200){
|
|
|
|
this.hasSubmit=true;
|
|
|
|
return util.toast(res.msg,'none');
|
|
|
|
}
|
|
|
|
if(res.data.hasSetUserInfo){
|
...
|
...
|
|