Commit 7f9ce66d30dce52f50bce20f8f628340d656f163
1 parent
fc014691
协助预约修改历史预约和我的项目
Showing
2 changed files
with
6 additions
and
2 deletions
packageA/pages/my_service/hist_service.js
| @@ -69,6 +69,10 @@ Page({ | @@ -69,6 +69,10 @@ Page({ | ||
| 69 | */ | 69 | */ |
| 70 | onLoad: function(options) { | 70 | onLoad: function(options) { |
| 71 | var th = this; | 71 | var th = this; |
| 72 | + // console.log('xxoptions==>', options); | ||
| 73 | + this.setData({ | ||
| 74 | + options, | ||
| 75 | + }); | ||
| 72 | th.query_hist(); | 76 | th.query_hist(); |
| 73 | }, | 77 | }, |
| 74 | /** | 78 | /** |
| @@ -116,7 +120,7 @@ Page({ | @@ -116,7 +120,7 @@ Page({ | ||
| 116 | getApp().request.promiseGet(url, { | 120 | getApp().request.promiseGet(url, { |
| 117 | data: { | 121 | data: { |
| 118 | storeId: a.stoid, | 122 | storeId: a.stoid, |
| 119 | - userId: d.user_id, | 123 | + userId: this.data.options.UserId, |
| 120 | beginDate: startTime, | 124 | beginDate: startTime, |
| 121 | endDate: endTime, | 125 | endDate: endTime, |
| 122 | page: th.data.curpage, | 126 | page: th.data.curpage, |
packageA/pages/my_service/i_service.wxml
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <view catchtap="close"> | 2 | <view catchtap="close"> |
| 3 | <image class="backimage" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"></image> | 3 | <image class="backimage" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"></image> |
| 4 | <navigator class="History fs26" url="/packageA/pages/service_record/service_record" style="left:10px;right:auto;">服务记录</navigator> | 4 | <navigator class="History fs26" url="/packageA/pages/service_record/service_record" style="left:10px;right:auto;">服务记录</navigator> |
| 5 | - <navigator class="History fs26" url="/packageA/pages/my_service/hist_service">历史预约</navigator> | 5 | + <navigator class="History fs26" url="/packageA/pages/my_service/hist_service" data-userid="{{options.UserId}}">历史预约</navigator> |
| 6 | </view> | 6 | </view> |
| 7 | 7 | ||
| 8 | <!-- 预约内容 --> | 8 | <!-- 预约内容 --> |