更新医生端 结束接口两次问题

This commit is contained in:
zoujiandong 2023-08-28 17:39:11 +08:00
parent c52bb75828
commit ecb43ec855
9 changed files with 45 additions and 36 deletions

View File

@ -6,6 +6,7 @@ Page({
title: "我的",
navHeight: 0,
stateHeight: 0,
doctor_title:'',
user_name: "医师姓名",
iden_auth_status: "0",
idcard_status: "0",
@ -59,6 +60,7 @@ Page({
api.getDoctorCenter().then(response => {
this.setData({
user_name: response.data.user_name,
doctor_title:response.data.doctor_title,
iden_auth_status: response.data.iden_auth_status,
idcard_status: response.data.idcard_status,
multi_point_status: response.data.multi_point_status,

View File

@ -9,7 +9,7 @@
<view class="info">
<view class="namebox">
<view class="name" bindtap="go" data-url="/Pages/yishi/myinfo/index">{{user_name}}</view>
<view class="name" bindtap="go" data-url="/Pages/yishi/myinfo/index">{{user_name}} <text decode="true">&nbsp;{{doctor_title}}</text></view>
<view class="iconbox" bindtap="go" data-url="/Pages/yishi/myinfo/index">
<text>设置</text>
<van-icon name="arrow" class="arrow"/>
@ -17,8 +17,8 @@
</view>
<view class="renzheng">
<view class="yishi" bindtap="go" data-url="/Pages/yishi/identity/index">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
<view class="zhiye" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
<view class="yishi {{iden_auth_status==1?'active':''}}" bindtap="go" data-url="/Pages/yishi/identity/index">{{iden_auth_status==1?'已医师认证':'未医师认证'}}></view>
<view class="zhiye {{multi_point_status==1?'active':''}}" bindtap="go" data-url="/Pages/yishi/zhiye_identity/index">{{multi_point_status==1?'已多点执业认证':'未多点执业认证'}}></view>
</view>
</view>
@ -48,17 +48,17 @@
</view>
</view>
<view class="account_bottom">
<view style="font-size: 28rpx;color: #666666;">当日预计收益金额:</view>
<view style="font-size: 28rpx;color: rgba(0,0,0,0.85);">¥{{estimate_income}}</view>
<view style="font-size: 30rpx;color: #666666;">当日预计收益金额:</view>
<view style="font-size: 42rpx;color: rgba(0,0,0,0.85);">¥{{estimate_income}}</view>
</view>
</view>
<view class="content">
<van-cell size="large" url="/Pages/yishi/medince_list/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="药品清单" is-link />
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的账户" is-link />
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的银行卡" is-link />
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="我的名片" is-link />
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="患者评价" is-link />
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 30rpx;color: rgba(0,0,0,0.65);" title="常用语" is-link border="{{ false }}" />
<van-cell size="large" url="/Pages/yishi/medince_list/index" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="药品清单" is-link />
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="我的账户" is-link />
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="我的银行卡" is-link />
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="我的名片" is-link />
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="患者评价" is-link />
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 34rpx;color: rgba(0,0,0,0.65);" title="常用语" is-link border="{{ false }}" />
</view>
</view>

View File

@ -4,7 +4,7 @@ page{
.container{
background: linear-gradient(180deg, #3CC7C0 0%, rgba(60,199,192,0) 50%);
padding-bottom: 70rpx;
padding-bottom: 120rpx;
min-height:100vh;
width: 100vw;
color: #fff;
@ -22,7 +22,7 @@ page{
text-align: center;
}
.info_box{
margin-top: 24rpx;
margin-top: 110rpx;
width: 100%;
height: 200rpx;
position: relative;
@ -45,17 +45,17 @@ page{
margin-top: 15rpx;
}
.yishi,.zhiye{
background-color: #00A59D;
background: #999999;
border-radius: 20rpx;
height: 44rpx;
line-height: 44rpx;
padding: 0 20rpx;
margin-right: 20rpx;
}
.zhiye{
background: #999999;
.zhiye.active{
background: #FAAD14;
}
.yishi{
.yishi.active{
background: #FAAD14;
}
.photo{
@ -148,7 +148,7 @@ color: rgba(0,0,0,0.65);
line-height: 70rpx !important;
}
.van-cell {
padding: 30rpx !important;
padding: 32rpx !important;
}

View File

@ -19,6 +19,10 @@
<text style="margin-left: 10rpx;">问诊购药</text>
<van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/drug.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_img" wx:if="{{item.inquiry_type == 5}}">
<text style="margin-left: 10rpx;">糖组检测</text>
<van-image class="van_img" src="../../../static/images/yishi/tabbar_icon/check_sugar.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view>
<view class="item_date">{{item.notice_send_time}}</view>
</view>
<view class="item_content">

View File

@ -1,7 +1,7 @@
<view class="TUI-message-input-container">
<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="11" bindtap="handleCommonFunctions" wx:if="{{baseInfo.multi_point_status == 1}}">在线开处方</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>
<view class="TUI-message-input">
<image class="TUI-icon" bindtap="switchAudio" wx:if="{{has_audio}}"

View File

@ -176,15 +176,15 @@ Component({
message_rounds: message_rounds
})
let total_rounds=this.data.total_rounds;
if(total_rounds>=0){
if(total_rounds-message_rounds<=0 && this.data.baseInfo.inquiry_status==4){
wx.showToast({
title: '沟通已达到限制的'+total_rounds+'个回合',
icon:"none"
})
this.finishConsult();
}
}
// if(total_rounds>=0){
// if(total_rounds-message_rounds<=0 && this.data.baseInfo.inquiry_status==4){
// wx.showToast({
// title: '沟通已达到限制的'+total_rounds+'个回合',
// icon:"none"
// })
// this.finishConsult();
// }
// }
},
onChangeTime(e) {
@ -310,13 +310,13 @@ Component({
this.setData({
"rest_time": countdownTime
});
if(countdownTime==0){
wx.showToast({
title: '沟通时长已超过限制时间',
icon:"none"
})
this.finishConsult();
}
//if(countdownTime==0){
// wx.showToast({
// title: '沟通时长已超过限制时间',
// icon:"none"
// })
// this.finishConsult();
// }
} else {
this.setData({

View File

@ -54,7 +54,8 @@
<view class="group-profile">
<TUIGroup id="TUIGroup" wx:if="{{isShow}}" conversation="{{conversation}}" bind:groupCall="groupCall" bind:showConversationList="showConversationList"></TUIGroup>
</view>
<view class="input-area" style="{{input_area_style}}" wx:if="{{baseInfo.inquiry_status==4}}">
<!-- wx:if="{{baseInfo.inquiry_status==4}}" -->
<view class="input-area" style="{{input_area_style}}" >
<view class="message-input" style="{{viewData.style}}" wx:if="{{showChat}}">
<MessageInput bind:myhandleExtensions="myhandleExtensions" id="MessageInput" inquiry_type="{{inquiry_type}}" baseInfo="{{baseInfo}}" order_inquiry_id="{{order_inquiry_id}}" conversation="{{conversation}}" hasCallKit="{{hasCallKit}}" bind:sendMessage="sendMessage" bind:downKeysBoards="downKeysBoards" bind:pullKeysBoards="pullKeysBoards" bind:showMessageErrorImage="showMessageErrorImage"
bind:refreshMessageStatus="refreshMessageStatus"

View File

@ -154,6 +154,7 @@
.time_desc{
color:#E34D59;
display: flex;
font-size: 32rpx;
align-items: center;
}
@ -165,6 +166,7 @@
font-size: 32rpx;
}
.count_time{
font-size: 32rpx;
display: flex;
height:100rpx;
align-items: center;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB