diff --git a/Pages/yishi/index/index.js b/Pages/yishi/index/index.js index 44001c9..b81ea3e 100644 --- a/Pages/yishi/index/index.js +++ b/Pages/yishi/index/index.js @@ -10,6 +10,7 @@ Page({ title: "肝胆相照互联网医院", navHeight: 0, stateHeight: 0, + doctor_inquiry_config:null, info:{ user_name: "医师姓名", not_accepted_inquiry_num: 0, @@ -249,6 +250,7 @@ Page({ "info.praise_rate": response.data.info.praise_rate, "info.avg_response_time": response.data.info.avg_response_time, "info.number_of_fans": response.data.info.number_of_fans, + doctor_inquiry_config:response.data.doctor_inquiry_config }) if(avatar){ this.setData({ @@ -264,21 +266,21 @@ Page({ let multi_point_status = response.data.info.multi_point_status; //绑定结算银行卡 let is_bind_bank = response.data.info.is_bind_bank; - //是否参加专家图文接诊(0:否 1:是) - let is_img_expert_reception = response.data.info.is_img_expert_reception; - //是否参加专家快速接诊(0:否 1:是) - let is_img_quick_reception = response.data.info.is_img_quick_reception; - //是否参加专家公益接诊(0:否 1:是) - let is_img_welfare_reception = response.data.info.is_img_welfare_reception; + // //是否参加专家图文接诊(0:否 1:是) + // let is_img_expert_reception = response.data.info.is_img_expert_reception; + // //是否参加专家快速接诊(0:否 1:是) + // let is_img_quick_reception = response.data.info.is_img_quick_reception; + // //是否参加专家公益接诊(0:否 1:是) + // let is_img_welfare_reception = response.data.info.is_img_welfare_reception; this.setData({ "info.idcard_status": idcard_status, "info.iden_auth_status": iden_auth_status, "info.multi_point_status": multi_point_status, "info.is_bind_bank": is_bind_bank, - "info.is_img_expert_reception": is_img_expert_reception, - "info.is_img_quick_reception": is_img_quick_reception, - "info.is_img_welfare_reception": is_img_welfare_reception, + // "info.is_img_expert_reception": is_img_expert_reception, + // "info.is_img_quick_reception": is_img_quick_reception, + // "info.is_img_welfare_reception": is_img_welfare_reception, }); //iden_auth_status 0:未认证 1:认证通过 2:审核中 3:认证失败 @@ -411,11 +413,12 @@ Page({ //绑定结算银行卡 var is_bind_bank = this.data.info.is_bind_bank; //是否参加专家图文接诊(0:否 1:是) - let is_img_expert_reception = this.data.info.is_img_expert_reception; - //是否参加专家快速接诊(0:否 1:是) - let is_img_quick_reception = this.data.info.is_img_quick_reception; - //是否参加专家公益接诊(0:否 1:是) - let is_img_welfare_reception = this.data.info.is_img_welfare_reception; + + // let is_img_expert_reception = this.data.info.is_img_expert_reception; + // //是否参加专家快速接诊(0:否 1:是) + // let is_img_quick_reception = this.data.info.is_img_quick_reception; + // //是否参加专家公益接诊(0:否 1:是) + // let is_img_welfare_reception = this.data.info.is_img_welfare_reception; let usertype = wx.getStorageSync('usertype'); let userID = wx.getStorageSync('user_id_'+usertype); @@ -581,8 +584,14 @@ Page({ }); wx.setStorageSync('jiesuan_dialog_show', true); } - - if((is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) == 0){ + // (is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) == 0 + let flag=false; + if(this.data.doctor_inquiry_config){ + flag=this.data.doctor_inquiry_config.every((item)=>{ + return item.is_enable==0 + }) + }; + if(!this.data.doctor_inquiry_config || flag){ if(!this.data.default_dialog_show){ this.setData({ // dialog_visible: true, @@ -596,8 +605,8 @@ Page({ }); return false; } - - if((is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) > 0){ + //(is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) > 0 + if(this.data.doctor_inquiry_config && !flag){ if(!this.data.default_dialog_show){ this.setData({ // dialog_visible: true, diff --git a/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIKit/components/TUIChat/components/MessageInput/index.wxml index daaad41..de5a1cb 100644 --- a/TUIKit/components/TUIChat/components/MessageInput/index.wxml +++ b/TUIKit/components/TUIChat/components/MessageInput/index.wxml @@ -1,7 +1,7 @@ 查看完整病历 - 在线开处方 + 在线开处方