From 176d383cff2df255bb9d54d6d1ce81270dfae603 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Thu, 25 Apr 2024 13:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pages/yishi/index/index.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Pages/yishi/index/index.js b/Pages/yishi/index/index.js index 8bf4f85..5b12cac 100644 --- a/Pages/yishi/index/index.js +++ b/Pages/yishi/index/index.js @@ -268,6 +268,42 @@ Page({ let multi_point_status = response.data.info.multi_point_status; //绑定结算银行卡 let is_bind_bank = response.data.info.is_bind_bank; + api.getDoctorService(response.data.info.doctor_id).then(res=>{ + if(res.code==200){ + let result=res.data; + for (let i = 0; i < result.length; i++) { + if(result[i].inquiry_type=1 && result[i].inquiry_mode==1 && result[i].is_enable==1){ + this.setData({ + 'info.is_img_expert_reception':1 + }) + }else{ + this.setData({ + 'info.is_img_expert_reception':0 + }) + }; + if(result[i].inquiry_type=2 && result[i].is_enable==1){ + this.setData({ + 'info.is_img_quick_reception':1 + }) + }else{ + this.setData({ + 'info.is_img_quick_reception':0 + }) + }; + if(result[i].inquiry_type=3 && result[i].is_enable==1){ + this.setData({ + 'info.is_img_welfare_reception':1 + }) + }else{ + this.setData({ + 'info.is_img_welfare_reception':0 + }) + }; + + } + + } + }) // //是否参加专家图文接诊(0:否 1:是) // let is_img_expert_reception = response.data.info.is_img_expert_reception; // //是否参加专家快速接诊(0:否 1:是)