Commit e631a2a138b61d4a51b5be8102c9d61ec0d073f3

Authored by DESKTOP-QHAFKU5\iceling
1 parent eb5fd8c9

提交预约bug修改,我的服务项目接口出错的话就显示无服务项目

pages/user/my_service/appment_main.js
@@ -99,6 +99,7 @@ Page({ @@ -99,6 +99,7 @@ Page({
99 getApp().my_warnning("请选择预约时间", 0, th); 99 getApp().my_warnning("请选择预约时间", 0, th);
100 return false; 100 return false;
101 } else { 101 } else {
  102 +
102 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/insert"; //接口路径 103 var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/insert"; //接口路径
103 var serviceId = th.data.itemId; //服务id 104 var serviceId = th.data.itemId; //服务id
104 var beauticianID = th.data.beauticianID; //美容师id 105 var beauticianID = th.data.beauticianID; //美容师id
@@ -219,17 +220,14 @@ Page({ @@ -219,17 +220,14 @@ Page({
219 wx.requestSubscribeMessage({ 220 wx.requestSubscribeMessage({
220 tmplIds: [template_id], 221 tmplIds: [template_id],
221 success(res) { 222 success(res) {
222 - th.success();  
223 }, 223 },
224 fail(res) { 224 fail(res) {
225 - th.success();  
226 } 225 }
227 }) 226 })
228 } else { 227 } else {
229 - th.success();  
230 } 228 }
231 }) 229 })
232 - 230 + th.success();
233 }, 231 },
234 goto: function(e) { 232 goto: function(e) {
235 var th = this; 233 var th = this;
pages/user/my_service/i_service.js
@@ -86,7 +86,9 @@ Page({ @@ -86,7 +86,9 @@ Page({
86 }), 86 }),
87 wx.stopPullDownRefresh(); //停止下拉刷新 87 wx.stopPullDownRefresh(); //停止下拉刷新
88 } else { 88 } else {
89 - getApp().my_warnning(res.data.msg, 0, th); 89 + th.setData({
  90 + is_service_read: 1
  91 + })
90 } 92 }
91 }) 93 })
92 }, 94 },