Commit 4d32da13e5e82eef133964eb0dde370b011e5c75

Authored by taiyuan
1 parent ee37b3ac

预约服务storageID为空修改

packageA/pages/my_service/appment_main.wxml
@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 </view> 55 </view>
56 56
57 <!-- 选择时间 --> 57 <!-- 选择时间 -->
58 - <view class="flex-vertical-between fs26 select" data-url="/pages/user/my_service/beauty_deta?url={{url}}&StorageId={{StorageId}}&BeauticianID={{beauticianID}}&itemId={{itemId}}&modify=0&projectId={{project_id}}" bindtap="goto"> 58 + <view class="flex-vertical-between fs26 select" data-url="/packageA/pages/my_service/beauty_deta?url={{url}}&StorageId={{StorageId}}&BeauticianID={{beauticianID}}&itemId={{itemId}}&modify=0&projectId={{project_id}}" bindtap="goto">
59 <view class="{{time==''?'color':''}}">{{time==""?'选择时间':time}}</view> 59 <view class="{{time==''?'color':''}}">{{time==""?'选择时间':time}}</view>
60 <view class="angle angler">∟</view> 60 <view class="angle angler">∟</view>
61 </view> 61 </view>
packageA/pages/my_service/beauty_deta.js
@@ -53,8 +53,9 @@ Page({ @@ -53,8 +53,9 @@ Page({
53 modify: options.modify, 53 modify: options.modify,
54 hours: hours, 54 hours: hours,
55 projectId: options.projectId, 55 projectId: options.projectId,
56 - storageId:storageId  
57 - }) 56 + storageId: storageId,
  57 + });
  58 +
58 if (options.url != undefined) { 59 if (options.url != undefined) {
59 th.setData({ 60 th.setData({
60 url: options.url 61 url: options.url
@@ -200,7 +201,8 @@ Page({ @@ -200,7 +201,8 @@ Page({
200 //直接给上一个页面赋值 201 //直接给上一个页面赋值
201 time: time, 202 time: time,
202 beautician_name: th.data.StaffName, 203 beautician_name: th.data.StaffName,
203 - beauticianID: th.data.beautician_id 204 + beauticianID: th.data.beautician_id,
  205 + storageId: th.data.storageId,
204 }); 206 });
205 wx.navigateBack({ 207 wx.navigateBack({
206 //返回 208 //返回
@@ -210,7 +212,8 @@ Page({ @@ -210,7 +212,8 @@ Page({
210 var prevPage = pages[pages.length - 2]; //上一页面 212 var prevPage = pages[pages.length - 2]; //上一页面
211 prevPage.setData({ 213 prevPage.setData({
212 //直接给上一个页面赋值 214 //直接给上一个页面赋值
213 - time: time 215 + time: time,
  216 + storageId: th.data.storageId,
214 }); 217 });
215 wx.navigateBack({ 218 wx.navigateBack({
216 //返回 219 //返回