From a81098cafc87322cc5f9fce8da0898b2228aa9db Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Fri, 12 Apr 2024 10:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/pages/yishi/onlinesetup/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/user/pages/yishi/onlinesetup/index.js b/user/pages/yishi/onlinesetup/index.js index 206cec9..9f931fe 100644 --- a/user/pages/yishi/onlinesetup/index.js +++ b/user/pages/yishi/onlinesetup/index.js @@ -18,6 +18,7 @@ Page({ inquiry_mode: 1, multi_point_status:'', config_setting:{}, + items:[], info:{ is_open: false, inquiry_price: 0, @@ -170,9 +171,18 @@ Page({ let check = this.checkPrice(inquiry_price); if(!check) return; }; + if(this.data.active==1 && detail){ + if(this.data.items.length==0){ + wx.showToast({ + title: '请先添加服务内容', + icon:'none' + }) + return false + } + } if(this.data.active==2 && detail){ let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1}); - if(data.inquiry_price!=''){ + if(data.inquiry_price==''){ this.setData({ showOpenTuWen:true }) @@ -348,7 +358,7 @@ Page({ api.getFollow().then(response=>{ if(response.code==200){ if(response.data){ - let {monthly_frequency,service_rounds,items}=response.data + let {monthly_frequency,service_rounds}=response.data this.setData({ monthly_frequency, service_rounds