Commit 8901f59d59eb58924d46fedc568218ccf8bd57ec

Authored by taiyuan
1 parent cd73661c

协助预约stoid取a.stoid

packageA/pages/my_service/appment_main.js
@@ -94,7 +94,7 @@ Page({ @@ -94,7 +94,7 @@ Page({
94 var serviceId = th.data.itemId; //服务id 94 var serviceId = th.data.itemId; //服务id
95 var beauticianID = th.data.beauticianID; //美容师id 95 var beauticianID = th.data.beauticianID; //美容师id
96 var buyType = th.data.buyType; //服务项目类型 96 var buyType = th.data.buyType; //服务项目类型
97 - var storeId = th.data.options.storeid; //商家id 97 + var storeId = a.stoid; //商家id
98 var storageId = th.data.storageId; //门店id 98 var storageId = th.data.storageId; //门店id
99 var userId = th.data.options.userid; //用户id 99 var userId = th.data.options.userid; //用户id
100 var remarks = th.data.remarks; //用户备注 100 var remarks = th.data.remarks; //用户备注
@@ -151,7 +151,7 @@ Page({ @@ -151,7 +151,7 @@ Page({
151 } 151 }
152 ], 152 ],
153 "page": "/pages/user/my_service/tment_details?number=" + number, 153 "page": "/pages/user/my_service/tment_details?number=" + number,
154 - "storeId": th.data.options.storeid, 154 + "storeId": a.stoid,
155 "typeId": "1011", 155 "typeId": "1011",
156 "userId": th.data.options.userid 156 "userId": th.data.options.userid
157 }; 157 };
@@ -241,7 +241,7 @@ Page({ @@ -241,7 +241,7 @@ Page({
241 //获取模版id 241 //获取模版id
242 getApp().request.promiseGet(temp_url, { 242 getApp().request.promiseGet(temp_url, {
243 data: { 243 data: {
244 - store_id: th.data.options.storeid, 244 + store_id: a.stoid,
245 typeid: "1011" 245 typeid: "1011"
246 } 246 }
247 }).then(res => { 247 }).then(res => {
@@ -374,7 +374,7 @@ Page({ @@ -374,7 +374,7 @@ Page({
374 getApp().request.promiseGet(url, { 374 getApp().request.promiseGet(url, {
375 data: { 375 data: {
376 userId: th.data.options.userid, 376 userId: th.data.options.userid,
377 - storeId: th.data.options.storeid, 377 + storeId: a.stoid,
378 serviceId: itemId, 378 serviceId: itemId,
379 latitude: th.data.lat, 379 latitude: th.data.lat,
380 longitude: th.data.lon, 380 longitude: th.data.lon,
@@ -428,7 +428,7 @@ Page({ @@ -428,7 +428,7 @@ Page({
428 428
429 getApp().request.promiseGet(url, { 429 getApp().request.promiseGet(url, {
430 data: { 430 data: {
431 - storeId: th.data.options.storeid, 431 + storeId: a.stoid,
432 userId: th.data.options.userid, 432 userId: th.data.options.userid,
433 serviceId: itemid, 433 serviceId: itemid,
434 storageId: storageId 434 storageId: storageId
@@ -520,7 +520,7 @@ Page({ @@ -520,7 +520,7 @@ Page({
520 console.log('optionsxxx===>', this.data.options); 520 console.log('optionsxxx===>', this.data.options);
521 // console.log('1-->', "/pages/user/my_service/cosmetology_list?userid=" + th.data.options.userid + 'storageId=' + storageId + '&' + 'itemId=' + itemId + '&' + "projectId=" + project_id); 521 // console.log('1-->', "/pages/user/my_service/cosmetology_list?userid=" + th.data.options.userid + 'storageId=' + storageId + '&' + 'itemId=' + itemId + '&' + "projectId=" + project_id);
522 wx.navigateTo({ 522 wx.navigateTo({
523 - url: "/packageA/pages/my_service/cosmetology_list?storeid=" + this.data.options.storeid + '&userid=' + this.data.options.userid + '&storageId=' + storageId + '&itemId=' + itemId + "&projectId=" + project_id 523 + url: "/packageA/pages/my_service/cosmetology_list?userid=" + this.data.options.userid + '&storageId=' + storageId + '&itemId=' + itemId + "&projectId=" + project_id
524 }); 524 });
525 525
526 } 526 }
@@ -574,7 +574,7 @@ Page({ @@ -574,7 +574,7 @@ Page({
574 574
575 getApp().request.promiseGet('/api/weshop/shoppingGuide/geIdStaffInfo', { 575 getApp().request.promiseGet('/api/weshop/shoppingGuide/geIdStaffInfo', {
576 data: { 576 data: {
577 - store_id: th.data.options.storeid, 577 + store_id: a.stoid,
578 guide_id: e.globalData.guide_id, 578 guide_id: e.globalData.guide_id,
579 UserCode: th.data.options.usercode, 579 UserCode: th.data.options.usercode,
580 } 580 }
@@ -603,7 +603,7 @@ Page({ @@ -603,7 +603,7 @@ Page({
603 var projectID = th.data.itemId; //服务id 603 var projectID = th.data.itemId; //服务id
604 var seekTime = th.data.time; //预约日期 604 var seekTime = th.data.time; //预约日期
605 var storageId = th.data.storageId; //门店id 605 var storageId = th.data.storageId; //门店id
606 - var storeId = th.data.options.storeid; //商家id 606 + var storeId = a.stoid; //商家id
607 getApp().request.promiseGet(url, { 607 getApp().request.promiseGet(url, {
608 data: { 608 data: {
609 beauticianId: beauticianID, 609 beauticianId: beauticianID,
@@ -647,7 +647,7 @@ Page({ @@ -647,7 +647,7 @@ Page({
647 var project_id = th.data.project_id; //服务项目id 647 var project_id = th.data.project_id; //服务项目id
648 getApp().request.promiseGet(url, { 648 getApp().request.promiseGet(url, {
649 data: { 649 data: {
650 - storeId: th.data.options.storeid, 650 + storeId: a.stoid,
651 userId: th.data.options.userid, 651 userId: th.data.options.userid,
652 projectId: project_id 652 projectId: project_id
653 } 653 }
packageA/pages/my_service/beauty_deta.js
@@ -124,7 +124,7 @@ Page({ @@ -124,7 +124,7 @@ Page({
124 getApp().request.promiseGet(url, { 124 getApp().request.promiseGet(url, {
125 data: { 125 data: {
126 beauticianId: beautician_id, 126 beauticianId: beautician_id,
127 - storeId: th.data.storeid, 127 + storeId: a.stoid,
128 } 128 }
129 }).then(res => { 129 }).then(res => {
130 if (res.data.code == 0) { 130 if (res.data.code == 0) {
@@ -164,7 +164,7 @@ Page({ @@ -164,7 +164,7 @@ Page({
164 "number": th.data.number, 164 "number": th.data.number,
165 "remark": "更改时间", 165 "remark": "更改时间",
166 "states": 0, 166 "states": 0,
167 - "storeId": th.data.storeid, 167 + "storeId": a.stoid,
168 }; 168 };
169 var data = JSON.stringify(json); 169 var data = JSON.stringify(json);
170 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址 170 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址
@@ -246,7 +246,7 @@ Page({ @@ -246,7 +246,7 @@ Page({
246 projectId: projectId, 246 projectId: projectId,
247 beauticianId: beautician_id, 247 beauticianId: beautician_id,
248 serviceId: itemId, 248 serviceId: itemId,
249 - storeId: th.data.storeid, 249 + storeId: a.stoid,
250 storageId:storageId 250 storageId:storageId
251 } 251 }
252 }).then(res => { 252 }).then(res => {
@@ -302,7 +302,7 @@ Page({ @@ -302,7 +302,7 @@ Page({
302 storageId:th.data.storageId, 302 storageId:th.data.storageId,
303 serviceId: th.data.itemId, 303 serviceId: th.data.itemId,
304 seekTime: SeekTime, 304 seekTime: SeekTime,
305 - storeId: th.data.storeid, 305 + storeId: a.stoid,
306 } 306 }
307 }).then(res => { 307 }).then(res => {
308 if (res.data.code == 0) { 308 if (res.data.code == 0) {
@@ -365,7 +365,7 @@ Page({ @@ -365,7 +365,7 @@ Page({
365 "number": number, 365 "number": number,
366 "remark": "更改预约时间", 366 "remark": "更改预约时间",
367 "states": 0, 367 "states": 0,
368 - "storeId": th.data.storeid, 368 + "storeId": a.stoid,
369 }; 369 };
370 var data = JSON.stringify(json); 370 var data = JSON.stringify(json);
371 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址 371 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址
packageA/pages/my_service/cosmetology_list.js
@@ -42,7 +42,7 @@ Page({ @@ -42,7 +42,7 @@ Page({
42 var storageId = th.data.storageId; 42 var storageId = th.data.storageId;
43 getApp().request.promiseGet(url, { 43 getApp().request.promiseGet(url, {
44 data: { 44 data: {
45 - storeId: th.data.options.storeid, 45 + storeId: a.stoid,
46 userId: th.data.options.userid, 46 userId: th.data.options.userid,
47 serviceId: itemId, 47 serviceId: itemId,
48 storageId: storageId, 48 storageId: storageId,
packageA/pages/my_service/cosmetology_list.wxml
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 </view> 27 </view>
28 28
29 <!-- 预约状态 --> 29 <!-- 预约状态 -->
30 - <navigator class="flex-center gofu go" url="/packageA/pages/my_service/beauty_deta?storeid={{options.storeid}}&StorageId={{item.StorageId}}&BeauticianID={{item.staffid}}&itemId={{itemId}}&iscos=1&modify=0&projectId={{projectId}}&StaffName={{item.StaffName}}"> 30 + <navigator class="flex-center gofu go" url="/packageA/pages/my_service/beauty_deta?StorageId={{item.StorageId}}&BeauticianID={{item.staffid}}&itemId={{itemId}}&iscos=1&modify=0&projectId={{projectId}}&StaffName={{item.StaffName}}">
31 <view class="fs24">预约</view> 31 <view class="fs24">预约</view>
32 </navigator> 32 </navigator>
33 </view> 33 </view>
packageA/pages/my_service/hist_service.js
@@ -119,7 +119,7 @@ Page({ @@ -119,7 +119,7 @@ Page({
119 var url = "/api/weshop/marketing/reservation/history/reservation/page"; 119 var url = "/api/weshop/marketing/reservation/history/reservation/page";
120 getApp().request.promiseGet(url, { 120 getApp().request.promiseGet(url, {
121 data: { 121 data: {
122 - storeId: th.data.options.storeid, 122 + storeId: a.stoid,
123 userId: th.data.options.userid, 123 userId: th.data.options.userid,
124 beginDate: startTime, 124 beginDate: startTime,
125 endDate: endTime, 125 endDate: endTime,
packageA/pages/my_service/i_service.js
@@ -70,7 +70,7 @@ Page({ @@ -70,7 +70,7 @@ Page({
70 var url = "/api/weshop/marketing/reservation/sm/page?State=1"; 70 var url = "/api/weshop/marketing/reservation/sm/page?State=1";
71 getApp().request.promiseGet(url, { 71 getApp().request.promiseGet(url, {
72 data: { 72 data: {
73 - storeId: th.data.options.storeid, 73 + storeId: a.stoid,
74 userId: th.data.options.UserId, 74 userId: th.data.options.UserId,
75 page: th.data.curpage, 75 page: th.data.curpage,
76 pageSize: th.data.pageSize 76 pageSize: th.data.pageSize
@@ -118,7 +118,7 @@ Page({ @@ -118,7 +118,7 @@ Page({
118 getApp().request.promiseGet("/api/weshop/marketing/reservation/reservation/check", { 118 getApp().request.promiseGet("/api/weshop/marketing/reservation/reservation/check", {
119 data: { 119 data: {
120 serviceId: service_id, 120 serviceId: service_id,
121 - storeId: th.data.options.storeid, 121 + storeId: a.stoid,
122 userId: th.data.options.UserId, 122 userId: th.data.options.UserId,
123 } 123 }
124 }).then(res => { 124 }).then(res => {
@@ -135,7 +135,7 @@ Page({ @@ -135,7 +135,7 @@ Page({
135 "继续使用", 135 "继续使用",
136 function() { 136 function() {
137 my_confirm.open_cancel(0); 137 my_confirm.open_cancel(0);
138 - var deta_url = "/packageA/pages/my_service/tment_details?userid="+ th.data.options.UserId + "&number=" + res.data.data.Number + "&storeid=" + th.data.options.storeid; 138 + var deta_url = "/packageA/pages/my_service/tment_details?userid="+ th.data.options.UserId + "&number=" + res.data.data.Number;
139 wx.navigateTo({ 139 wx.navigateTo({
140 url: deta_url 140 url: deta_url
141 }) 141 })
@@ -195,7 +195,7 @@ Page({ @@ -195,7 +195,7 @@ Page({
195 getApp().request.promiseGet("/api/weshop/marketing/reservation/reservation/check", { 195 getApp().request.promiseGet("/api/weshop/marketing/reservation/reservation/check", {
196 data: { 196 data: {
197 serviceId: service_id, 197 serviceId: service_id,
198 - storeId: th.data.options.storeid, 198 + storeId: a.stoid,
199 userId: th.data.options.UserId, 199 userId: th.data.options.UserId,
200 } 200 }
201 }).then(res => { 201 }).then(res => {
@@ -215,7 +215,7 @@ Page({ @@ -215,7 +215,7 @@ Page({
215 "继续预约", 215 "继续预约",
216 function() { 216 function() {
217 my_confirm.open_cancel(0); 217 my_confirm.open_cancel(0);
218 - var deta_url = "/packageA/pages/my_service/tment_details?number=" + number + "&userid="+ th.data.options.UserId + "&storeid=" + th.data.options.storeid; 218 + var deta_url = "/packageA/pages/my_service/tment_details?number=" + number + "&userid="+ th.data.options.UserId;
219 wx.navigateTo({ 219 wx.navigateTo({
220 url: deta_url 220 url: deta_url
221 }) 221 })
@@ -226,7 +226,7 @@ Page({ @@ -226,7 +226,7 @@ Page({
226 data: { 226 data: {
227 projectId: project_id, 227 projectId: project_id,
228 serviceId: service_id, 228 serviceId: service_id,
229 - storeId: th.data.options.storeid, 229 + storeId: a.stoid,
230 userId: th.data.options.UserId, 230 userId: th.data.options.UserId,
231 } 231 }
232 }).then(res => { 232 }).then(res => {
packageA/pages/my_service/i_service.wxml
1 <!-- 背景图片 --> 1 <!-- 背景图片 -->
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?userid={{options.UserId}}&storeid={{options.storeid}}" style="left:10px;right:auto;">服务记录</navigator>  
5 - <navigator class="History fs26" url="/packageA/pages/my_service/hist_service?userid={{options.UserId}}&storeid={{options.storeid}}">历史预约</navigator> 4 + <navigator class="History fs26" url="/packageA/pages/service_record/service_record?userid={{options.UserId}}" style="left:10px;right:auto;">服务记录</navigator>
  5 + <navigator class="History fs26" url="/packageA/pages/my_service/hist_service?userid={{options.UserId}}">历史预约</navigator>
6 </view> 6 </view>
7 7
8 <!-- 预约内容 --> 8 <!-- 预约内容 -->
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <!-- <view class="flex-level Use" bindtap="open_fw" data-ind="{{index}}" data-service_id="{{item.ServiceID}}"> 50 <!-- <view class="flex-level Use" bindtap="open_fw" data-ind="{{index}}" data-service_id="{{item.ServiceID}}">
51 <view>帮你预约</view> 51 <view>帮你预约</view>
52 </view> --> 52 </view> -->
53 - <view class="flex-level btn" data-url="/packageA/pages/my_service/appment_main?service_id={{item.ServiceID}}&BuyType={{item.BuyType}}&ProjectID={{item.ProjectID}}&Validay={{item.Validay}}&userid={{options.UserId}}&usercode={{options.UserCode}}&firstleader={{options.first_leader}}&storeid={{options.storeid}}" bindtap="correcting" data-service_id="{{item.ServiceID}}" data-project_id="{{item.ProjectID}}"> 53 + <view class="flex-level btn" data-url="/packageA/pages/my_service/appment_main?service_id={{item.ServiceID}}&BuyType={{item.BuyType}}&ProjectID={{item.ProjectID}}&Validay={{item.Validay}}&userid={{options.UserId}}&usercode={{options.UserCode}}&firstleader={{options.first_leader}}" bindtap="correcting" data-service_id="{{item.ServiceID}}" data-project_id="{{item.ProjectID}}">
54 <view>帮你预约</view> 54 <view>帮你预约</view>
55 </view> 55 </view>
56 </view> 56 </view>
packageA/pages/my_service/tment_details.js
@@ -35,7 +35,7 @@ Page({ @@ -35,7 +35,7 @@ Page({
35 var number = th.data.number; 35 var number = th.data.number;
36 var json = { 36 var json = {
37 "number": number, 37 "number": number,
38 - "storeId": th.data.options.storeid, 38 + "storeId": a.stoid,
39 "states": states 39 "states": states
40 }; 40 };
41 var data = JSON.stringify(json); 41 var data = JSON.stringify(json);
@@ -82,7 +82,7 @@ Page({ @@ -82,7 +82,7 @@ Page({
82 var url = "/api/weshop/marketing/reservation/reservation/page"; 82 var url = "/api/weshop/marketing/reservation/reservation/page";
83 getApp().request.promiseGet(url, { 83 getApp().request.promiseGet(url, {
84 data: { 84 data: {
85 - storeId: th.data.options.storeid, 85 + storeId: a.stoid,
86 userId: th.data.options.userid, 86 userId: th.data.options.userid,
87 number: number 87 number: number
88 } 88 }
packageA/pages/my_service/tment_details.wxml
@@ -97,20 +97,20 @@ @@ -97,20 +97,20 @@
97 <view class="sub flex-center yellow-b" wx:if="{{item.State==0}}" bindtap="cancel_tment"> 97 <view class="sub flex-center yellow-b" wx:if="{{item.State==0}}" bindtap="cancel_tment">
98 <view class="yellow-b" data-index="{{index}}">取消预约</view> 98 <view class="yellow-b" data-index="{{index}}">取消预约</view>
99 </view> 99 </view>
100 - <navigator wx:if="{{item.State>0}}" class="sub flex-center yellow-b" url="/packageA/pages/my_service/tment_order_list?userid={{options.userid}}&storeid={{options.storeid}}"> 100 + <navigator wx:if="{{item.State>0}}" class="sub flex-center yellow-b" url="/packageA/pages/my_service/tment_order_list?userid={{options.userid}}">
101 <view class="yellow-b">我的服务</view> 101 <view class="yellow-b">我的服务</view>
102 </navigator> 102 </navigator>
103 <!-- 右边栏 --> 103 <!-- 右边栏 -->
104 <navigator wx:if="{{item.State==0}}" class="sub rb flex-center" url="/packageA/pages/my_service/beauty_deta?BeauticianID={{item.BeauticianID}}&number={{item.Number}}&itemId={{item.ServiceID}}&modify=1&projectId={{item.ProjectID}}"> 104 <navigator wx:if="{{item.State==0}}" class="sub rb flex-center" url="/packageA/pages/my_service/beauty_deta?BeauticianID={{item.BeauticianID}}&number={{item.Number}}&itemId={{item.ServiceID}}&modify=1&projectId={{item.ProjectID}}">
105 <view>更改时间</view> 105 <view>更改时间</view>
106 </navigator> 106 </navigator>
107 - <navigator wx:if="{{item.State==1}}" class="sub rb flex-center" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{0}}"> 107 + <navigator wx:if="{{item.State==1}}" class="sub rb flex-center" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{0}}&userid={{options.userid}}">
108 <view>发表评价</view> 108 <view>发表评价</view>
109 </navigator> 109 </navigator>
110 - <navigator wx:if="{{item.State==4}}" class="sub rb flex-center" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{1}}"> 110 + <navigator wx:if="{{item.State==4}}" class="sub rb flex-center" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{1}}&userid={{options.userid}}">
111 <view>查看评价</view> 111 <view>查看评价</view>
112 </navigator> 112 </navigator>
113 - <navigator wx:if="{{item.State==2 || item.State==3}}" class="sub rb flex-center" url="/packageA/pages/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}&userid={{options.userid}}&storeid={{options.storeid}}"> 113 + <navigator wx:if="{{item.State==2 || item.State==3}}" class="sub rb flex-center" url="/packageA/pages/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}&userid={{options.userid}}">
114 <view>重新预约</view> 114 <view>重新预约</view>
115 </navigator> 115 </navigator>
116 116
packageA/pages/my_service/tment_eval.js
@@ -40,7 +40,7 @@ Page({ @@ -40,7 +40,7 @@ Page({
40 getApp().request.promiseGet(url, { 40 getApp().request.promiseGet(url, {
41 data: { 41 data: {
42 Star: index + 1, 42 Star: index + 1,
43 - storeId: th.data.options.storeid, 43 + storeId: a.stoid,
44 } 44 }
45 }).then(res => { 45 }).then(res => {
46 if (res.data.code == 0) { 46 if (res.data.code == 0) {
@@ -102,7 +102,7 @@ Page({ @@ -102,7 +102,7 @@ Page({
102 var number = th.data.number; //订单编号 102 var number = th.data.number; //订单编号
103 getApp().request.promiseGet(url, { 103 getApp().request.promiseGet(url, {
104 data: { 104 data: {
105 - storeId: th.data.options.storeid, 105 + storeId: a.stoid,
106 userId: th.data.options.userid, 106 userId: th.data.options.userid,
107 number: number 107 number: number
108 } 108 }
@@ -126,7 +126,7 @@ Page({ @@ -126,7 +126,7 @@ Page({
126 getApp().request.promiseGet(url, { 126 getApp().request.promiseGet(url, {
127 data: { 127 data: {
128 number: th.data.number, 128 number: th.data.number,
129 - storeId: th.data.options.storeid, 129 + storeId: a.stoid,
130 } 130 }
131 }).then(res => { 131 }).then(res => {
132 if (res.data.code == 0) { 132 if (res.data.code == 0) {
@@ -175,7 +175,7 @@ Page({ @@ -175,7 +175,7 @@ Page({
175 "number": posNo, 175 "number": posNo,
176 "remark": proposal, 176 "remark": proposal,
177 "star": stars + 1, 177 "star": stars + 1,
178 - "storeId": th.data.options.storeid, 178 + "storeId": a.stoid,
179 }; 179 };
180 var data = JSON.stringify(json); //转换成json格式 180 var data = JSON.stringify(json); //转换成json格式
181 wx.request({ 181 wx.request({
@@ -265,7 +265,7 @@ Page({ @@ -265,7 +265,7 @@ Page({
265 data: { 265 data: {
266 orderNumber: th.data.number, 266 orderNumber: th.data.number,
267 orderType: 2, 267 orderType: 2,
268 - storeId: th.data.options.storeid, 268 + storeId: a.stoid,
269 userId: th.data.options.userid, 269 userId: th.data.options.userid,
270 } 270 }
271 }).then(res => { 271 }).then(res => {
packageA/pages/my_service/tment_order_list.js
@@ -95,7 +95,7 @@ Page({ @@ -95,7 +95,7 @@ Page({
95 }) 95 })
96 getApp().request.promiseGet(url, { 96 getApp().request.promiseGet(url, {
97 data: { 97 data: {
98 - storeId: th.data.options.storeid, 98 + storeId: a.stoid,
99 userId: th.data.options.userid, 99 userId: th.data.options.userid,
100 state: state_index, 100 state: state_index,
101 page: th.data.curpage, 101 page: th.data.curpage,
@@ -149,7 +149,7 @@ Page({ @@ -149,7 +149,7 @@ Page({
149 var number = order_list[index].Number; 149 var number = order_list[index].Number;
150 var json = { 150 var json = {
151 "number": number, 151 "number": number,
152 - "storeId": th.data.options.storeid, 152 + "storeId": a.stoid,
153 "states": 3 153 "states": 3
154 }; 154 };
155 var data = JSON.stringify(json); 155 var data = JSON.stringify(json);
packageA/pages/my_service/tment_order_list.wxml
@@ -68,12 +68,12 @@ @@ -68,12 +68,12 @@
68 <view class="Unimportance flex-level" data-index="{{index}}" bindtap="cancel_tment">取消预约</view> 68 <view class="Unimportance flex-level" data-index="{{index}}" bindtap="cancel_tment">取消预约</view>
69 </block> 69 </block>
70 <block wx:else> 70 <block wx:else>
71 - <navigator url="/packageA/pages/my_service/tment_details?number={{item.Number}}&userid={{options.userid}}&storeid={{options.storeid}}" class="Unimportance flex-level">查看详情</navigator> 71 + <navigator url="/packageA/pages/my_service/tment_details?number={{item.Number}}&userid={{options.userid}}" class="Unimportance flex-level">查看详情</navigator>
72 </block> 72 </block>
73 - <navigator wx:if="{{item.State==0}}" class="important Unimportance flex-level" url="/packageA/pages/my_service/beauty_deta?BeauticianID={{item.BeauticianID}}&number={{item.Number}}&itemId={{item.ServiceID}}&modify=1&projectId={{item.ProjectID}}&userid={{options.userid}}&storeid={{options.storeid}}">更改时间</navigator>  
74 - <navigator wx:if="{{item.State==1}}" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{0}}&userid={{options.userid}}&storeid={{options.storeid}}" class="important Unimportance flex-level">发表评价</navigator>  
75 - <navigator wx:if="{{item.State==2 || item.State==3}}" url="/packageA/pages/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}&userid={{options.userid}}&storeid={{options.storeid}}" class="important Unimportance flex-level">重新预约</navigator>  
76 - <navigator wx:if="{{item.State==4}}" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{1}}&userid={{options.userid}}&storeid={{options.storeid}}" class="important Unimportance flex-level">评价详情</navigator> 73 + <navigator wx:if="{{item.State==0}}" class="important Unimportance flex-level" url="/packageA/pages/my_service/beauty_deta?BeauticianID={{item.BeauticianID}}&number={{item.Number}}&itemId={{item.ServiceID}}&modify=1&projectId={{item.ProjectID}}&userid={{options.userid}}">更改时间</navigator>
  74 + <navigator wx:if="{{item.State==1}}" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{0}}&userid={{options.userid}}" class="important Unimportance flex-level">发表评价</navigator>
  75 + <navigator wx:if="{{item.State==2 || item.State==3}}" url="/packageA/pages/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}&userid={{options.userid}}" class="important Unimportance flex-level">重新预约</navigator>
  76 + <navigator wx:if="{{item.State==4}}" url="/packageA/pages/my_service/tment_eval?Number={{item.Number}}&evaluate={{1}}&userid={{options.userid}}" class="important Unimportance flex-level">评价详情</navigator>
77 </view> 77 </view>
78 </view> 78 </view>
79 <view class="exactly flex-center fs26" wx:if="{{ismore && tm_order_list.length>=3}}"> 79 <view class="exactly flex-center fs26" wx:if="{{ismore && tm_order_list.length>=3}}">
packageA/pages/service_record/service_record.js
@@ -30,7 +30,7 @@ Page({ @@ -30,7 +30,7 @@ Page({
30 onShow: function() { 30 onShow: function() {
31 reqData.url = '/api/weshop/marketing/servicewrite/page'; 31 reqData.url = '/api/weshop/marketing/servicewrite/page';
32 reqData.data = { 32 reqData.data = {
33 - storeId: this.data.options.storeid || app.globalData.setting.stoid, 33 + storeId: app.globalData.setting.stoid,
34 }; 34 };
35 35
36 if(this.data.options.userid) { 36 if(this.data.options.userid) {