Commit 64d4b2ed03ddfdd008925a87ff99d3a485fd868b

Authored by wangfan
1 parent e15246ec

v2 time

Showing 1 changed file with 7 additions and 4 deletions
... ... @@ -4,7 +4,7 @@ import comm from '../../utils/bookCommon';
import App from '../../utils/api';
const {regeneratorRuntime} = global
const formTpl={
id:'',
rid:'',
date:0,
time:0,
pnum_str:'1-4',
... ... @@ -249,11 +249,14 @@ Page({
form.rdate =rdate
App.Reserve.SetReserveInfo(form).then(res => {
if(res.ret==200){
let _id=(res.data.id || res.data)
this.setData({
form:JSON.parse(JSON.stringify(formTpl))
form:JSON.parse(JSON.stringify(formTpl)),
tablesed:null,
})
App.Reserve.Detail({rid:_id,openid:''},true)
wx.navigateTo({
url:'b_detail?id='+res.data.id,
url:'b_detail?id='+_id,
});
}else{
util.toast(res.msg,'none')
... ... @@ -333,7 +336,7 @@ Page({
obj.form.phone=res.data.phone;
obj.form.sex=res.data.sex;
obj.form.cusdem=res.data.cusdem;
obj.form.id=id;
obj.form.rid=id;
obj.form.tid=[];
res.data.tables.forEach((t,ti)=>{
t.isselect=true
... ...