Commit 5eec5616f90994ce6ad350266a05be04735e7fbb

Authored by vking
1 parent 69b1011d

online

@@ -253,4 +253,16 @@ Page({ @@ -253,4 +253,16 @@ Page({
253 activeTab:util.attr(e,'act'), 253 activeTab:util.attr(e,'act'),
254 }) 254 })
255 }, 255 },
  256 + reserve:{},
  257 + selectpeople(e){
  258 + console.log(e);
  259 + this.reserve.pnum=e.detail.people;
  260 + if(e.detail.action=='click'){
  261 + this.reserve.sid=this.options.id
  262 + this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00')
  263 + wx.navigateTo({
  264 + url:util.http_build_query(this.reserve,'./submit')
  265 + })
  266 + }
  267 + },
256 }) 268 })
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 "getpos":"/components/userinfo/getpos", 12 "getpos":"/components/userinfo/getpos",
13 "discount":"/components/reserve/discount", 13 "discount":"/components/reserve/discount",
14 "share":"/components/reserve/share/share", 14 "share":"/components/reserve/share/share",
15 - "people":"/components/reserve/people/people",  
16 - "dur":"/components/reserve/dur/dur" 15 + "people":"/components/reserve/people/people",
  16 + "dur":"/components/reserve/dur/dur"
17 } 17 }
18 } 18 }
@@ -381,6 +381,6 @@ @@ -381,6 +381,6 @@
381 </block> 381 </block>
382 <block wx:if="{{activeTab=='reserve'}}"> 382 <block wx:if="{{activeTab=='reserve'}}">
383 <view class="olreserve"> 383 <view class="olreserve">
384 - 384 + <people seller="{{seller}}" bindselectpeople="selectpeople"></people>
385 </view> 385 </view>
386 </block> 386 </block>
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 "list": [] 45 "list": []
46 }, 46 },
47 "miniprogram": { 47 "miniprogram": {
48 - "current": 55, 48 + "current": 56,
49 "list": [ 49 "list": [
50 { 50 {
51 "id": 0, 51 "id": 0,
@@ -462,6 +462,13 @@ @@ -462,6 +462,13 @@
462 "pathName": "pages/reserve/submit", 462 "pathName": "pages/reserve/submit",
463 "query": "sid=1&ddate=1234567890&pnum=10", 463 "query": "sid=1&ddate=1234567890&pnum=10",
464 "scene": null 464 "scene": null
  465 + },
  466 + {
  467 + "id": -1,
  468 + "name": "pages/customer/detail_owner",
  469 + "pathName": "pages/customer/detail_owner",
  470 + "query": "id=18599",
  471 + "scene": null
465 } 472 }
466 ] 473 ]
467 } 474 }