From e631a2a138b61d4a51b5be8102c9d61ec0d073f3 Mon Sep 17 00:00:00 2001 From: DESKTOP-QHAFKU5\iceling Date: Fri, 6 Dec 2019 15:24:43 +0800 Subject: [PATCH] 提交预约bug修改,我的服务项目接口出错的话就显示无服务项目 --- pages/user/my_service/appment_main.js | 6 ++---- pages/user/my_service/i_service.js | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) 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 + }) } }) }, -- libgit2 0.21.4