Commit 69cb3adcc23d9d5d41f2bb60e23eb50c068e6f43

Authored by taiyuan
1 parent 2ac8d1df

修改协助预约

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 = a.stoid; //商家id 97 + var storeId = th.data.options.storeid; //商家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": a.stoid, 154 + "storeId": th.data.options.storeid,
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: a.stoid, 244 + store_id: th.data.options.storeid,
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: a.stoid, 377 + storeId: th.data.options.storeid,
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,
@@ -413,7 +413,8 @@ Page({ @@ -413,7 +413,8 @@ Page({
413 var th = this; 413 var th = this;
414 th.setData({ 414 th.setData({
415 is_textea: 0 415 is_textea: 0
416 - }) 416 + });
  417 +
417 if (th.data.store_name == "") { 418 if (th.data.store_name == "") {
418 getApp().my_warnning("请选择服务门店", 0, th); 419 getApp().my_warnning("请选择服务门店", 0, th);
419 th.settime(); 420 th.settime();
@@ -427,7 +428,7 @@ Page({ @@ -427,7 +428,7 @@ Page({
427 428
428 getApp().request.promiseGet(url, { 429 getApp().request.promiseGet(url, {
429 data: { 430 data: {
430 - storeId: a.stoid, 431 + storeId: th.data.options.storeid,
431 userId: th.data.options.userid, 432 userId: th.data.options.userid,
432 serviceId: itemid, 433 serviceId: itemid,
433 storageId: storageId 434 storageId: storageId
@@ -459,6 +460,7 @@ Page({ @@ -459,6 +460,7 @@ Page({
459 }) 460 })
460 } 461 }
461 }, 462 },
  463 +
462 choice_beautician: function(e) { 464 choice_beautician: function(e) {
463 var th = this; 465 var th = this;
464 var bea_index = e.currentTarget.dataset.baaindex; 466 var bea_index = e.currentTarget.dataset.baaindex;
@@ -515,8 +517,10 @@ Page({ @@ -515,8 +517,10 @@ Page({
515 th.setData({ 517 th.setData({
516 is_textea: 1 518 is_textea: 1
517 }) 519 })
  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);
518 wx.navigateTo({ 522 wx.navigateTo({
519 - url: "/pages/user/my_service/cosmetology_list?" + 'storageId=' + storageId + '&' + 'itemId=' + itemId + '&' + "projectId=" + project_id 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
520 }); 524 });
521 525
522 } 526 }
@@ -570,7 +574,7 @@ Page({ @@ -570,7 +574,7 @@ Page({
570 574
571 getApp().request.promiseGet('/api/weshop/shoppingGuide/geIdStaffInfo', { 575 getApp().request.promiseGet('/api/weshop/shoppingGuide/geIdStaffInfo', {
572 data: { 576 data: {
573 - store_id: a.stoid, 577 + store_id: th.data.options.storeid,
574 guide_id: e.globalData.guide_id, 578 guide_id: e.globalData.guide_id,
575 UserCode: th.data.options.usercode, 579 UserCode: th.data.options.usercode,
576 } 580 }
@@ -599,7 +603,7 @@ Page({ @@ -599,7 +603,7 @@ Page({
599 var projectID = th.data.itemId; //服务id 603 var projectID = th.data.itemId; //服务id
600 var seekTime = th.data.time; //预约日期 604 var seekTime = th.data.time; //预约日期
601 var storageId = th.data.storageId; //门店id 605 var storageId = th.data.storageId; //门店id
602 - var storeId = a.stoid; //商家id 606 + var storeId = th.data.options.storeid; //商家id
603 getApp().request.promiseGet(url, { 607 getApp().request.promiseGet(url, {
604 data: { 608 data: {
605 beauticianId: beauticianID, 609 beauticianId: beauticianID,
@@ -643,7 +647,7 @@ Page({ @@ -643,7 +647,7 @@ Page({
643 var project_id = th.data.project_id; //服务项目id 647 var project_id = th.data.project_id; //服务项目id
644 getApp().request.promiseGet(url, { 648 getApp().request.promiseGet(url, {
645 data: { 649 data: {
646 - storeId: a.stoid, 650 + storeId: th.data.options.storeid,
647 userId: th.data.options.userid, 651 userId: th.data.options.userid,
648 projectId: project_id 652 projectId: project_id
649 } 653 }
@@ -659,9 +663,9 @@ Page({ @@ -659,9 +663,9 @@ Page({
659 }) 663 })
660 }, 664 },
661 //关闭导航 665 //关闭导航
662 - close: function() {  
663 - var th = this;  
664 - var nav_b = th.selectComponent("#nav_b"); //组件的id  
665 - nav_b.close_box();  
666 - } 666 + // close: function() {
  667 + // var th = this;
  668 + // var nav_b = th.selectComponent("#nav_b"); //组件的id
  669 + // nav_b.close_box();
  670 + // }
667 }) 671 })
668 \ No newline at end of file 672 \ No newline at end of file
packageA/pages/my_service/appment_main.wxml
@@ -147,4 +147,4 @@ @@ -147,4 +147,4 @@
147 <view wx:if="{{store}}" class="disgraceful" bindtap="onclickstore"></view> 147 <view wx:if="{{store}}" class="disgraceful" bindtap="onclickstore"></view>
148 <warn id="warn"></warn> 148 <warn id="warn"></warn>
149 <!-- 制作一个圆球导航 --> 149 <!-- 制作一个圆球导航 -->
150 -<nav_b id="nav_b"></nav_b>  
151 \ No newline at end of file 150 \ No newline at end of file
  151 +<!-- <nav_b id="nav_b"></nav_b> -->
152 \ No newline at end of file 152 \ No newline at end of file
packageA/pages/my_service/beauty_deta.js
@@ -46,6 +46,8 @@ Page({ @@ -46,6 +46,8 @@ Page({
46 46
47 47
48 th.setData({ 48 th.setData({
  49 + options,
  50 + storeid: options.storeid,
49 beautician_id: beautician_id, 51 beautician_id: beautician_id,
50 itemId: options.itemId, 52 itemId: options.itemId,
51 modify: options.modify, 53 modify: options.modify,
@@ -122,7 +124,7 @@ Page({ @@ -122,7 +124,7 @@ Page({
122 getApp().request.promiseGet(url, { 124 getApp().request.promiseGet(url, {
123 data: { 125 data: {
124 beauticianId: beautician_id, 126 beauticianId: beautician_id,
125 - storeId: a.stoid, 127 + storeId: th.data.storeid,
126 } 128 }
127 }).then(res => { 129 }).then(res => {
128 if (res.data.code == 0) { 130 if (res.data.code == 0) {
@@ -162,7 +164,7 @@ Page({ @@ -162,7 +164,7 @@ Page({
162 "number": th.data.number, 164 "number": th.data.number,
163 "remark": "更改时间", 165 "remark": "更改时间",
164 "states": 0, 166 "states": 0,
165 - "storeId": a.stoid 167 + "storeId": th.data.storeid,
166 }; 168 };
167 var data = JSON.stringify(json); 169 var data = JSON.stringify(json);
168 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址 170 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/update"; //预约接口地址
@@ -244,8 +246,8 @@ Page({ @@ -244,8 +246,8 @@ Page({
244 projectId: projectId, 246 projectId: projectId,
245 beauticianId: beautician_id, 247 beauticianId: beautician_id,
246 serviceId: itemId, 248 serviceId: itemId,
247 - storeId: a.stoid,  
248 - storageId:storageId 249 + storeId: th.data.storeid,
  250 + storageId:storageId
249 } 251 }
250 }).then(res => { 252 }).then(res => {
251 if (res.data.code == 0) { 253 if (res.data.code == 0) {
@@ -300,7 +302,7 @@ Page({ @@ -300,7 +302,7 @@ Page({
300 storageId:th.data.storageId, 302 storageId:th.data.storageId,
301 serviceId: th.data.itemId, 303 serviceId: th.data.itemId,
302 seekTime: SeekTime, 304 seekTime: SeekTime,
303 - storeId: a.stoid, 305 + storeId: th.data.storeid,
304 } 306 }
305 }).then(res => { 307 }).then(res => {
306 if (res.data.code == 0) { 308 if (res.data.code == 0) {
@@ -363,7 +365,7 @@ Page({ @@ -363,7 +365,7 @@ Page({
363 "number": number, 365 "number": number,
364 "remark": "更改预约时间", 366 "remark": "更改预约时间",
365 "states": 0, 367 "states": 0,
366 - "storeId": a.stoid 368 + "storeId": th.data.storeid,
367 }; 369 };
368 var data = JSON.stringify(json); 370 var data = JSON.stringify(json);
369 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
@@ -3,6 +3,8 @@ var e = getApp(), @@ -3,6 +3,8 @@ var e = getApp(),
3 os = a, 3 os = a,
4 t = e.request, 4 t = e.request,
5 d = e.globalData; 5 d = e.globalData;
  6 +
  7 +
6 Page({ 8 Page({
7 9
8 /** 10 /**
@@ -21,6 +23,7 @@ Page({ @@ -21,6 +23,7 @@ Page({
21 storageId: 0, //线下门店id 23 storageId: 0, //线下门店id
22 projectId:"",//项目id 24 projectId:"",//项目id
23 }, 25 },
  26 +
24 onReachBottom: function() { 27 onReachBottom: function() {
25 var th = this; 28 var th = this;
26 if (this.data.total <= th.data.pageSize) return; 29 if (this.data.total <= th.data.pageSize) return;
@@ -30,6 +33,8 @@ Page({ @@ -30,6 +33,8 @@ Page({
30 }) 33 })
31 th.query_cology(); 34 th.query_cology();
32 }, 35 },
  36 +
  37 +
33 query_cology: function() { 38 query_cology: function() {
34 var th = this; 39 var th = this;
35 var url = "/api/weshop/marketing/reservation/staff/pagenew"; 40 var url = "/api/weshop/marketing/reservation/staff/pagenew";
@@ -37,8 +42,8 @@ Page({ @@ -37,8 +42,8 @@ Page({
37 var storageId = th.data.storageId; 42 var storageId = th.data.storageId;
38 getApp().request.promiseGet(url, { 43 getApp().request.promiseGet(url, {
39 data: { 44 data: {
40 - storeId: a.stoid,  
41 - userId: d.user_id, 45 + storeId: th.data.options.storeid,
  46 + userId: th.data.options.userid,
42 serviceId: itemId, 47 serviceId: itemId,
43 storageId: storageId, 48 storageId: storageId,
44 page: th.data.curpage, 49 page: th.data.curpage,
@@ -67,6 +72,8 @@ Page({ @@ -67,6 +72,8 @@ Page({
67 } 72 }
68 }) 73 })
69 }, 74 },
  75 +
  76 +
70 //图片失败,默认图片 77 //图片失败,默认图片
71 bind_bnerr1: function(e) { 78 bind_bnerr1: function(e) {
72 var _errImg = e.target.dataset.errorimg; 79 var _errImg = e.target.dataset.errorimg;
@@ -78,12 +85,17 @@ Page({ @@ -78,12 +85,17 @@ Page({
78 this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; 85 this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
79 } 86 }
80 }, 87 },
  88 +
  89 +
  90 +
81 /** 91 /**
82 * 生命周期函数--监听页面加载 92 * 生命周期函数--监听页面加载
83 */ 93 */
84 onLoad: function(options) { 94 onLoad: function(options) {
  95 + console.log('options--->', options);
85 var th = this; 96 var th = this;
86 - th.setData({ 97 + this.setData({
  98 + options,
87 projectId: options.projectId, 99 projectId: options.projectId,
88 itemId: options.itemId, 100 itemId: options.itemId,
89 storageId: options.storageId 101 storageId: options.storageId
@@ -105,4 +117,5 @@ Page({ @@ -105,4 +117,5 @@ Page({
105 th.query_cology(); 117 th.query_cology();
106 }, 118 },
107 119
  120 +
108 }) 121 })
109 \ No newline at end of file 122 \ No newline at end of file
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="/pages/user/my_service/beauty_deta?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?storeid={{options.storeid}}&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
@@ -69,7 +69,7 @@ Page({ @@ -69,7 +69,7 @@ Page({
69 */ 69 */
70 onLoad: function(options) { 70 onLoad: function(options) {
71 var th = this; 71 var th = this;
72 - // console.log('xxoptions==>', options); 72 + console.log('xxoptions==>', options);
73 this.setData({ 73 this.setData({
74 options, 74 options,
75 }); 75 });
@@ -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: a.stoid, 122 + storeId: th.data.options.storeid,
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: a.stoid, 73 + storeId: th.data.options.storeid,
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: a.stoid, 121 + storeId: th.data.options.storeid,
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 = "/pages/user/my_service/tment_details?number=" + res.data.data.Number; 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;
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: a.stoid, 198 + storeId: th.data.options.storeid,
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 = "/pages/user/my_service/tment_details?number=" + number; 218 + var deta_url = "/packageA/pages/my_service/tment_details?number=" + number + "&userid="+ th.data.options.UserId + "&storeid=" + th.data.options.storeid;
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: a.stoid, 229 + storeId: th.data.options.storeid,
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}}" style="left:10px;right:auto;">服务记录</navigator>  
5 - <navigator class="History fs26" url="/packageA/pages/my_service/hist_service?userid={{options.UserId}}">历史预约</navigator> 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>
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}}" 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}}&storeid={{options.storeid}}" 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": a.stoid, 38 + "storeId": th.data.options.storeid,
39 "states": states 39 "states": states
40 }; 40 };
41 var data = JSON.stringify(json); 41 var data = JSON.stringify(json);
@@ -71,6 +71,7 @@ Page({ @@ -71,6 +71,7 @@ Page({
71 onLoad: function(options) { 71 onLoad: function(options) {
72 var th = this; 72 var th = this;
73 th.setData({ 73 th.setData({
  74 + options,
74 number: options.number 75 number: options.number
75 }) 76 })
76 }, 77 },
@@ -81,8 +82,8 @@ Page({ @@ -81,8 +82,8 @@ Page({
81 var url = "/api/weshop/marketing/reservation/reservation/page"; 82 var url = "/api/weshop/marketing/reservation/reservation/page";
82 getApp().request.promiseGet(url, { 83 getApp().request.promiseGet(url, {
83 data: { 84 data: {
84 - storeId: a.stoid,  
85 - userId: d.user_id, 85 + storeId: th.data.options.storeid,
  86 + userId: th.data.options.userid,
86 number: number 87 number: number
87 } 88 }
88 }).then(res => { 89 }).then(res => {
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="/pages/user/my_service/tment_order_list"> 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}}">
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="/pages/user/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="/pages/user/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}}">
108 <view>发表评价</view> 108 <view>发表评价</view>
109 </navigator> 109 </navigator>
110 - <navigator wx:if="{{item.State==4}}" class="sub rb flex-center" url="/pages/user/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}}">
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="/pages/user/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}"> 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}}">
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: a.stoid 43 + storeId: th.data.options.storeid,
44 } 44 }
45 }).then(res => { 45 }).then(res => {
46 if (res.data.code == 0) { 46 if (res.data.code == 0) {
@@ -102,8 +102,8 @@ Page({ @@ -102,8 +102,8 @@ 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: a.stoid,  
106 - userId: d.user_id, 105 + storeId: th.data.options.storeid,
  106 + userId: th.data.options.userid,
107 number: number 107 number: number
108 } 108 }
109 }).then(res => { 109 }).then(res => {
@@ -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: a.stoid 129 + storeId: th.data.options.storeid,
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": a.stoid 178 + "storeId": th.data.options.storeid,
179 }; 179 };
180 var data = JSON.stringify(json); //转换成json格式 180 var data = JSON.stringify(json); //转换成json格式
181 wx.request({ 181 wx.request({
@@ -220,6 +220,7 @@ Page({ @@ -220,6 +220,7 @@ Page({
220 onLoad: function(options) { 220 onLoad: function(options) {
221 var th = this; 221 var th = this;
222 th.setData({ 222 th.setData({
  223 + options,
223 number: options.Number, 224 number: options.Number,
224 is_evaluate: options.evaluate 225 is_evaluate: options.evaluate
225 }) 226 })
@@ -264,8 +265,8 @@ Page({ @@ -264,8 +265,8 @@ Page({
264 data: { 265 data: {
265 orderNumber: th.data.number, 266 orderNumber: th.data.number,
266 orderType: 2, 267 orderType: 2,
267 - storeId: a.stoid,  
268 - userId: d.user_id 268 + storeId: th.data.options.storeid,
  269 + userId: th.data.options.userid,
269 } 270 }
270 }).then(res => { 271 }).then(res => {
271 if (res.data.code == 0) { 272 if (res.data.code == 0) {
packageA/pages/my_service/tment_order_list.js
@@ -39,6 +39,9 @@ Page({ @@ -39,6 +39,9 @@ Page({
39 * 生命周期函数--监听页面加载 39 * 生命周期函数--监听页面加载
40 */ 40 */
41 onLoad: function(options) { 41 onLoad: function(options) {
  42 + this.setData({
  43 + options,
  44 + });
42 var state=options.state; 45 var state=options.state;
43 if (state != null && state != undefined && state!=""){ 46 if (state != null && state != undefined && state!=""){
44 this.setData({ activeCategoryId: state }); 47 this.setData({ activeCategoryId: state });
@@ -92,8 +95,8 @@ Page({ @@ -92,8 +95,8 @@ Page({
92 }) 95 })
93 getApp().request.promiseGet(url, { 96 getApp().request.promiseGet(url, {
94 data: { 97 data: {
95 - storeId: a.stoid,  
96 - userId: d.user_id, 98 + storeId: th.data.options.storeid,
  99 + userId: th.data.options.userid,
97 state: state_index, 100 state: state_index,
98 page: th.data.curpage, 101 page: th.data.curpage,
99 pageSize: th.data.pageSize 102 pageSize: th.data.pageSize
@@ -146,7 +149,7 @@ Page({ @@ -146,7 +149,7 @@ Page({
146 var number = order_list[index].Number; 149 var number = order_list[index].Number;
147 var json = { 150 var json = {
148 "number": number, 151 "number": number,
149 - "storeId": a.stoid, 152 + "storeId": th.data.options.storeid,
150 "states": 3 153 "states": 3
151 }; 154 };
152 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="/pages/user/my_service/tment_details?number={{item.Number}}" class="Unimportance flex-level">查看详情</navigator> 71 + <navigator url="/packageA/pages/my_service/tment_details?number={{item.Number}}&userid={{options.userid}}&storeid={{options.storeid}}" class="Unimportance flex-level">查看详情</navigator>
72 </block> 72 </block>
73 - <navigator wx:if="{{item.State==0}}" class="important Unimportance flex-level" url="/pages/user/my_service/beauty_deta?BeauticianID={{item.BeauticianID}}&number={{item.Number}}&itemId={{item.ServiceID}}&modify=1&projectId={{item.ProjectID}}">更改时间</navigator>  
74 - <navigator wx:if="{{item.State==1}}" url="/pages/user/my_service/tment_eval?Number={{item.Number}}&evaluate={{0}}" class="important Unimportance flex-level">发表评价</navigator>  
75 - <navigator wx:if="{{item.State==2 || item.State==3}}" url="/pages/user/my_service/appment_main?ProjectID={{item.ProjectID}}&BuyType={{item.BuyType}}&service_id={{item.ServiceID}}" class="important Unimportance flex-level">重新预约</navigator>  
76 - <navigator wx:if="{{item.State==4}}" url="/pages/user/my_service/tment_eval?Number={{item.Number}}&evaluate={{1}}" 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}}&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>
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: app.globalData.setting.stoid, 33 + storeId: this.data.options.storeid || app.globalData.setting.stoid,
34 }; 34 };
35 35
36 if(this.data.options.userid) { 36 if(this.data.options.userid) {