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 | 69 | */ |
70 | 70 | onLoad: function(options) { |
71 | 71 | var th = this; |
72 | + // console.log('xxoptions==>', options); | |
73 | + this.setData({ | |
74 | + options, | |
75 | + }); | |
72 | 76 | th.query_hist(); |
73 | 77 | }, |
74 | 78 | /** |
... | ... | @@ -116,7 +120,7 @@ Page({ |
116 | 120 | getApp().request.promiseGet(url, { |
117 | 121 | data: { |
118 | 122 | storeId: a.stoid, |
119 | - userId: d.user_id, | |
123 | + userId: this.data.options.UserId, | |
120 | 124 | beginDate: startTime, |
121 | 125 | endDate: endTime, |
122 | 126 | page: th.data.curpage, | ... | ... |
packageA/pages/my_service/i_service.wxml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <view catchtap="close"> |
3 | 3 | <image class="backimage" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"></image> |
4 | 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 | 6 | </view> |
7 | 7 | |
8 | 8 | <!-- 预约内容 --> | ... | ... |