医生端吴工接口字段变更

This commit is contained in:
zoujiandong 2023-10-11 15:02:44 +08:00
parent 2c99d357f7
commit f25a49376d
2 changed files with 28 additions and 19 deletions

View File

@ -10,6 +10,7 @@ Page({
title: "肝胆相照互联网医院", title: "肝胆相照互联网医院",
navHeight: 0, navHeight: 0,
stateHeight: 0, stateHeight: 0,
doctor_inquiry_config:null,
info:{ info:{
user_name: "医师姓名", user_name: "医师姓名",
not_accepted_inquiry_num: 0, not_accepted_inquiry_num: 0,
@ -249,6 +250,7 @@ Page({
"info.praise_rate": response.data.info.praise_rate, "info.praise_rate": response.data.info.praise_rate,
"info.avg_response_time": response.data.info.avg_response_time, "info.avg_response_time": response.data.info.avg_response_time,
"info.number_of_fans": response.data.info.number_of_fans, "info.number_of_fans": response.data.info.number_of_fans,
doctor_inquiry_config:response.data.doctor_inquiry_config
}) })
if(avatar){ if(avatar){
this.setData({ this.setData({
@ -264,21 +266,21 @@ Page({
let multi_point_status = response.data.info.multi_point_status; let multi_point_status = response.data.info.multi_point_status;
//绑定结算银行卡 //绑定结算银行卡
let is_bind_bank = response.data.info.is_bind_bank; let is_bind_bank = response.data.info.is_bind_bank;
//是否参加专家图文接诊0:否 1:是) // //是否参加专家图文接诊0:否 1:是)
let is_img_expert_reception = response.data.info.is_img_expert_reception; // let is_img_expert_reception = response.data.info.is_img_expert_reception;
//是否参加专家快速接诊0:否 1:是) // //是否参加专家快速接诊0:否 1:是)
let is_img_quick_reception = response.data.info.is_img_quick_reception; // let is_img_quick_reception = response.data.info.is_img_quick_reception;
//是否参加专家公益接诊0:否 1:是) // //是否参加专家公益接诊0:否 1:是)
let is_img_welfare_reception = response.data.info.is_img_welfare_reception; // let is_img_welfare_reception = response.data.info.is_img_welfare_reception;
this.setData({ this.setData({
"info.idcard_status": idcard_status, "info.idcard_status": idcard_status,
"info.iden_auth_status": iden_auth_status, "info.iden_auth_status": iden_auth_status,
"info.multi_point_status": multi_point_status, "info.multi_point_status": multi_point_status,
"info.is_bind_bank": is_bind_bank, "info.is_bind_bank": is_bind_bank,
"info.is_img_expert_reception": is_img_expert_reception, // "info.is_img_expert_reception": is_img_expert_reception,
"info.is_img_quick_reception": is_img_quick_reception, // "info.is_img_quick_reception": is_img_quick_reception,
"info.is_img_welfare_reception": is_img_welfare_reception, // "info.is_img_welfare_reception": is_img_welfare_reception,
}); });
//iden_auth_status 0:未认证 1:认证通过 2:审核中 3:认证失败 //iden_auth_status 0:未认证 1:认证通过 2:审核中 3:认证失败
@ -411,11 +413,12 @@ Page({
//绑定结算银行卡 //绑定结算银行卡
var is_bind_bank = this.data.info.is_bind_bank; var is_bind_bank = this.data.info.is_bind_bank;
//是否参加专家图文接诊0:否 1:是) //是否参加专家图文接诊0:否 1:是)
let is_img_expert_reception = this.data.info.is_img_expert_reception;
//是否参加专家快速接诊0:否 1:是) // let is_img_expert_reception = this.data.info.is_img_expert_reception;
let is_img_quick_reception = this.data.info.is_img_quick_reception; // //是否参加专家快速接诊0:否 1:是)
//是否参加专家公益接诊0:否 1:是) // let is_img_quick_reception = this.data.info.is_img_quick_reception;
let is_img_welfare_reception = this.data.info.is_img_welfare_reception; // //是否参加专家公益接诊0:否 1:是)
// let is_img_welfare_reception = this.data.info.is_img_welfare_reception;
let usertype = wx.getStorageSync('usertype'); let usertype = wx.getStorageSync('usertype');
let userID = wx.getStorageSync('user_id_'+usertype); let userID = wx.getStorageSync('user_id_'+usertype);
@ -581,8 +584,14 @@ Page({
}); });
wx.setStorageSync('jiesuan_dialog_show', true); wx.setStorageSync('jiesuan_dialog_show', true);
} }
// (is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) == 0
if((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){ if(!this.data.default_dialog_show){
this.setData({ this.setData({
// dialog_visible: true, // dialog_visible: true,
@ -596,8 +605,8 @@ Page({
}); });
return false; return false;
} }
//(is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) > 0
if((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){ if(!this.data.default_dialog_show){
this.setData({ this.setData({
// dialog_visible: true, // dialog_visible: true,

View File

@ -1,7 +1,7 @@
<view class="TUI-message-input-container"> <view class="TUI-message-input-container">
<view class="TUI-commom-function"> <view class="TUI-commom-function">
<view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view> <view class="TUI-commom-function-item" data-key="10" bindtap="handleCommonFunctions">查看完整病历</view>
<view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4}}">在线开处方</view> <view class="TUI-commom-function-item" data-key="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1 && baseInfo.inquiry_status==4 && baseInfo.multi_point_enable==1}}">在线开处方</view>
</view> </view>
<view class="TUI-message-input"> <view class="TUI-message-input">
<image class="TUI-icon" bindtap="switchAudio" wx:if="{{has_audio}}" <image class="TUI-icon" bindtap="switchAudio" wx:if="{{has_audio}}"