diff --git a/pages/user/my_service/appment_main.js b/pages/user/my_service/appment_main.js index cd7b9d1..13dbcc6 100644 --- a/pages/user/my_service/appment_main.js +++ b/pages/user/my_service/appment_main.js @@ -99,6 +99,7 @@ Page({ getApp().my_warnning("请选择预约时间", 0, th); return false; } else { + var url = th.data.inurl + "/api/weshop/marketing/reservation/reservation/insert"; //接口路径 var serviceId = th.data.itemId; //服务id var beauticianID = th.data.beauticianID; //美容师id @@ -219,17 +220,14 @@ Page({ wx.requestSubscribeMessage({ tmplIds: [template_id], success(res) { - th.success(); }, fail(res) { - th.success(); } }) } else { - th.success(); } }) - + th.success(); }, goto: function(e) { var th = this; diff --git a/pages/user/my_service/i_service.js b/pages/user/my_service/i_service.js index 6796f87..54d868b 100644 --- a/pages/user/my_service/i_service.js +++ b/pages/user/my_service/i_service.js @@ -86,7 +86,9 @@ Page({ }), wx.stopPullDownRefresh(); //停止下拉刷新 } else { - getApp().my_warnning(res.data.msg, 0, th); + th.setData({ + is_service_read: 1 + }) } }) },