Showing
6 changed files
with
17 additions
and
23 deletions
.gitignore
deleted
100644 → 0
.gitmodules
deleted
100644 → 0
| @@ -35,7 +35,9 @@ Page({ | @@ -35,7 +35,9 @@ Page({ | ||
| 35 | activeTab:options.activeTab||'detail', | 35 | activeTab:options.activeTab||'detail', |
| 36 | }) | 36 | }) |
| 37 | } | 37 | } |
| 38 | - | 38 | + this.setData({ |
| 39 | + reserveDate: options.date ? options.date : util.unixtoTime(new Date() / 1000, 'YYYY-MM-DD'), | ||
| 40 | + }) | ||
| 39 | App.Customer.IsCollectionSeller({ | 41 | App.Customer.IsCollectionSeller({ |
| 40 | sid:options.id, | 42 | sid:options.id, |
| 41 | openid:getApp().openid | 43 | openid:getApp().openid |
| @@ -100,7 +102,7 @@ Page({ | @@ -100,7 +102,7 @@ Page({ | ||
| 100 | */ | 102 | */ |
| 101 | onShow: function () { | 103 | onShow: function () { |
| 102 | this.selectComponent('#getpos').getPos(); | 104 | this.selectComponent('#getpos').getPos(); |
| 103 | - if(this.data.reserveDate){//后退进入等情况刷新时段 | 105 | + if (this.data.reserveDate && this.data.seletroomlist){//后退进入等情况刷新时段 |
| 104 | this.setData({ | 106 | this.setData({ |
| 105 | reserveDate:this.data.reserveDate | 107 | reserveDate:this.data.reserveDate |
| 106 | }) | 108 | }) |
| @@ -336,6 +338,9 @@ Page({ | @@ -336,6 +338,9 @@ Page({ | ||
| 336 | this.reserve.sid=this.options.id | 338 | this.reserve.sid=this.options.id |
| 337 | this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00'); | 339 | this.reserve.ddate=util.timetouUnix(this.reserve.date+' '+this.reserve.time+':00'); |
| 338 | this.reserve.room_demand=JSON.stringify(this.data.seletroomlist) | 340 | this.reserve.room_demand=JSON.stringify(this.data.seletroomlist) |
| 341 | + if(this.options.pnum){ | ||
| 342 | + this.reserve.pnum = this.options.pnum; | ||
| 343 | + } | ||
| 339 | wx.navigateTo({ | 344 | wx.navigateTo({ |
| 340 | url:util.http_build_query(this.reserve,'./submit') | 345 | url:util.http_build_query(this.reserve,'./submit') |
| 341 | }) | 346 | }) |
| @@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
| 211 | </view> | 211 | </view> |
| 212 | <view hidden="{{activeTab!='reserve'}}" wx:if="{{seller.id}}"> | 212 | <view hidden="{{activeTab!='reserve'}}" wx:if="{{seller.id}}"> |
| 213 | <view class="olreserve bg_white"> | 213 | <view class="olreserve bg_white"> |
| 214 | - <calendar seller="{{seller}}" bindselectdate="selectdate"></calendar> | 214 | + <calendar seller="{{seller}}" bindselectdate="selectdate" date="{{reserveDate}}"></calendar> |
| 215 | <view class="reserve-time Semibold">预订时段</view> | 215 | <view class="reserve-time Semibold">预订时段</view> |
| 216 | <section seller="{{seller}}" date="{{reserveDate}}" bind:selectsection="selectsection" section="{{reserveSection}}"></section> | 216 | <section seller="{{seller}}" date="{{reserveDate}}" bind:selectsection="selectsection" section="{{reserveSection}}"></section> |
| 217 | <block wx:if="{{reserveSection}}"> | 217 | <block wx:if="{{reserveSection}}"> |
| @@ -152,6 +152,7 @@ Page({ | @@ -152,6 +152,7 @@ Page({ | ||
| 152 | cusdem:this.user.remark||'', | 152 | cusdem:this.user.remark||'', |
| 153 | ddate_solt:dur.indexOf(this.options.section)+1, | 153 | ddate_solt:dur.indexOf(this.options.section)+1, |
| 154 | roomids:roomids.toString(), | 154 | roomids:roomids.toString(), |
| 155 | + pnum: this.options.pnum ? this.options.pnum : 4, | ||
| 155 | }).then(res=>{ | 156 | }).then(res=>{ |
| 156 | console.log('ceshi',this.hasSubmit,res); | 157 | console.log('ceshi',this.hasSubmit,res); |
| 157 | if(res.ret!=200){ | 158 | if(res.ret!=200){ |
| @@ -29,9 +29,7 @@ | @@ -29,9 +29,7 @@ | ||
| 29 | "projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A", | 29 | "projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A", |
| 30 | "isGameTourist": false, | 30 | "isGameTourist": false, |
| 31 | "simulatorType": "wechat", | 31 | "simulatorType": "wechat", |
| 32 | - "simulatorPluginLibVersion": { | ||
| 33 | - "qywx_simulator_plugin": "1.2.0" | ||
| 34 | - }, | 32 | + "simulatorPluginLibVersion": {}, |
| 35 | "condition": { | 33 | "condition": { |
| 36 | "search": { | 34 | "search": { |
| 37 | "current": -1, | 35 | "current": -1, |
| @@ -576,6 +574,13 @@ | @@ -576,6 +574,13 @@ | ||
| 576 | "pathName": "pack-book/pages/book/b_addnew", | 574 | "pathName": "pack-book/pages/book/b_addnew", |
| 577 | "query": "", | 575 | "query": "", |
| 578 | "scene": null | 576 | "scene": null |
| 577 | + }, | ||
| 578 | + { | ||
| 579 | + "id": 71, | ||
| 580 | + "name": "pages/reserve/detail", | ||
| 581 | + "pathName": "pages/reserve/detail", | ||
| 582 | + "query": "id=1001&activeTab=reserve&date=2020-02-16&pnum=6", | ||
| 583 | + "scene": null | ||
| 579 | } | 584 | } |
| 580 | ] | 585 | ] |
| 581 | } | 586 | } |
-
Please register or login to post a comment