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'; @@ -4,7 +4,7 @@ import comm from '../../utils/bookCommon';
4 import App from '../../utils/api'; 4 import App from '../../utils/api';
5 const {regeneratorRuntime} = global 5 const {regeneratorRuntime} = global
6 const formTpl={ 6 const formTpl={
7 - id:'', 7 + rid:'',
8 date:0, 8 date:0,
9 time:0, 9 time:0,
10 pnum_str:'1-4', 10 pnum_str:'1-4',
@@ -249,11 +249,14 @@ Page({ @@ -249,11 +249,14 @@ Page({
249 form.rdate =rdate 249 form.rdate =rdate
250 App.Reserve.SetReserveInfo(form).then(res => { 250 App.Reserve.SetReserveInfo(form).then(res => {
251 if(res.ret==200){ 251 if(res.ret==200){
  252 + let _id=(res.data.id || res.data)
252 this.setData({ 253 this.setData({
253 - form:JSON.parse(JSON.stringify(formTpl)) 254 + form:JSON.parse(JSON.stringify(formTpl)),
  255 + tablesed:null,
254 }) 256 })
  257 + App.Reserve.Detail({rid:_id,openid:''},true)
255 wx.navigateTo({ 258 wx.navigateTo({
256 - url:'b_detail?id='+res.data.id, 259 + url:'b_detail?id='+_id,
257 }); 260 });
258 }else{ 261 }else{
259 util.toast(res.msg,'none') 262 util.toast(res.msg,'none')
@@ -333,7 +336,7 @@ Page({ @@ -333,7 +336,7 @@ Page({
333 obj.form.phone=res.data.phone; 336 obj.form.phone=res.data.phone;
334 obj.form.sex=res.data.sex; 337 obj.form.sex=res.data.sex;
335 obj.form.cusdem=res.data.cusdem; 338 obj.form.cusdem=res.data.cusdem;
336 - obj.form.id=id; 339 + obj.form.rid=id;
337 obj.form.tid=[]; 340 obj.form.tid=[];
338 res.data.tables.forEach((t,ti)=>{ 341 res.data.tables.forEach((t,ti)=>{
339 t.isselect=true 342 t.isselect=true