3.18医生

This commit is contained in:
zoujiandong
2024-03-18 18:50:29 +08:00
parent d37fb6b1de
commit a9edbc3489
112 changed files with 4490 additions and 340 deletions
+48 -6
View File
@@ -12,13 +12,27 @@
<view class="item_list">
<view class="item" wx:for="{{appraise_list_1}}">
<view class="top">
<view class="name">{{item.name_mask}}</view>
<view class="namebox">
<view class="name">{{item.name_mask}}</view>
<view class="comemntType" wx:if="item.inquiry_mode==1">
图文
</view>
<view class="comemntType video" wx:elif="item.inquiry_mode==2 && item.inquiry_type==1">
视频
</view>
<view class="comemntType yinan" wx:elif="item.inquiry_mode==6 && item.inquiry_type==1">
疑难会诊
</view>
</view>
<view class="start">
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
</view>
</view>
<view class="content">{{item.content}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
<view class="datebox">
<view class="sick_name">{{item.disease_class_name}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{appraise_list_1.length == 0}}" />
@@ -28,13 +42,27 @@
<view class="item_list">
<view class="item" wx:for="{{appraise_list_2}}">
<view class="top">
<view class="name">{{item.name_mask}}</view>
<view class="namebox">
<view class="name">{{item.name_mask}}</view>
<view class="comemntType" wx:if="item.inquiry_mode==1">
图文
</view>
<view class="comemntType video" wx:elif="item.inquiry_mode==2 && item.inquiry_type==1">
视频
</view>
<view class="comemntType yinan" wx:elif="item.inquiry_mode==6 && item.inquiry_type==1">
疑难会诊
</view>
</view>
<view class="start">
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
</view>
</view>
<view class="content">{{item.content}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
<view class="datebox">
<view class="sick_name">{{item.disease_class_name}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{appraise_list_2.length == 0}}" />
@@ -44,13 +72,27 @@
<view class="item_list">
<view class="item" wx:for="{{appraise_list_3}}">
<view class="top">
<view class="name">{{item.name_mask}}</view>
<view class="namebox">
<view class="name">{{item.name_mask}}</view>
<view class="comemntType" wx:if="item.inquiry_mode==1">
图文
</view>
<view class="comemntType video" wx:elif="item.inquiry_mode==2 && item.inquiry_type==1">
视频
</view>
<view class="comemntType yinan" wx:elif="item.inquiry_mode==6 && item.inquiry_type==1">
疑难会诊
</view>
</view>
<view class="start">
<t-rate value="{{item.avg_score}}" count="5" color="#ED9C00"/>
</view>
</view>
<view class="content">{{item.content}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
<view class="datebox">
<view class="sick_name">{{item.disease_class_name}}</view>
<view class="date">{{dateSubstr.substring(item.created_at,0,16)}}</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:if="{{appraise_list_3.length == 0}}" />
+45 -2
View File
@@ -44,7 +44,50 @@ page{
margin: 20rpx 0;
}
.date{
flex: 1;
font-size: 28rpx;
color: #666666;
}
}
.comemntType{
margin-left: 10rpx;
font-size: 20rpx;
height: 34rpx;
line-height: 34rpx;
display: flex;
justify-content: center;
align-items: center;
padding:0 10rpx;
background: #E3EEFF;
border-radius: 8rpx;
color: #1E6EFF;
justify-content: center;
}
.comemntType.video{
color: #00C885;
background: #E3FFF5;
}
.comemntType.yinan{
color: #ED9C00;
background: #FFF5E0;
}
.datebox{
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.sick_name{
font-size: 20rpx;
font-weight: 400;
display: flex;
border-radius: 20rpx;
height: 38rpx;
padding:0 15rpx;
border: 1rpx solid #3CC7C0;
align-items: center;
color: #3CC7C0;
}
.namebox{
align-items: center;
display: flex;
}
@@ -16,7 +16,7 @@ Page({
static_host:api.getStaticHost(),
showDialog:false,
avatar: '',
currentData:0,
currentData:2,
user_name: '',
doctor_title: '',
doctor_id: '',
+1 -1
View File
@@ -16,7 +16,7 @@
<view class="switch_box_note">{{ note }}</view>
</view>
<view class="help">
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=5" custom-style="font-size:32rpx;" title="图文问诊操作手册" is-link border="{{false}}" />
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=5" custom-style="font-size:32rpx;" title="快速问诊操作手册" is-link border="{{false}}" />
</view>
</view>
+1 -1
View File
@@ -44,7 +44,7 @@
<van-empty description="暂无账单" wx:if="{{ bill.length == 0 }}" />
</view>
<van-image bind:click="go" data-url="/user/user/pages/agreement_page/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="{{static_host}}/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
<van-image bind:click="go" data-url="/user/pages/agreement_page/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="{{static_host}}/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
<t-picker
visible="{{dateVisible}}"
+15 -1
View File
@@ -26,6 +26,7 @@ Page({
search_drug_list: [],
product_name: "",
select_drug_id: "",
select_drug_stock:0,
save_durg_product_id: "",
save_durg_prescription_product_num: "",
save_durg_single_unit: "",
@@ -89,6 +90,7 @@ Page({
prescription_num:e.currentTarget.dataset.prescription_num,
product_name: e.currentTarget.dataset.product_name,
select_drug_id: e.currentTarget.dataset.product_id,
select_drug_stock: e.currentTarget.dataset.stock,
save_durg_product_id: e.currentTarget.dataset.product_id,
save_durg_single_use: e.currentTarget.dataset.single_use,
save_durg_frequency_use: e.currentTarget.dataset.frequency_use,
@@ -155,8 +157,20 @@ Page({
save_durg_prescription_product_num: ""
})
});
return
return false
};
console.log(typeof this.data.prescription_num);
console.log(typeof this.data.select_drug_stock)
if(Number(this.data.prescription_num)>Number(this.data.select_drug_stock)){
Dialog.alert({
message: '输入药品数量不能大于库存',
}).then(() => {
this.setData({
save_durg_prescription_product_num: ""
})
});
return
}
let prescription_num=this.data.prescription_num?this.data.prescription_num:5
if(save_durg_prescription_product_num>prescription_num){
Dialog.alert({
+4 -2
View File
@@ -92,7 +92,9 @@
<van-image width="300rpx" height="300rpx" fit="contain" src="{{static_host}}/applet/doctor/static/images/yishi/search_drugs.png" />
</view>
<view class="search_drug_list_noempty" wx:if="{{ !search_drug_list_empty }}">
<view class="search_drug_list_item" data-product_name="{{item.product_name}}" data-product_id="{{item.product_id}}" data-single_use="{{item.single_use}}" data-frequency_use="{{item.frequency_use}}" data-single_unit="{{item.single_unit}}" data-available_days="{{item.available_days}}" data-packaging_unit="{{item.packaging_unit}}" data-prescription_num="{{item.prescription_num}}" bindtap="select_drug" wx:for="{{search_drug_list}}">
<view class="search_drug_list_item" data-product_name="{{item.product_name}}" data-product_id="{{item.product_id}}" data-single_use="{{item.single_use}}" data-frequency_use="{{item.frequency_use}}" data-single_unit="{{item.single_unit}}" data-available_days="{{item.available_days}}" data-packaging_unit="{{item.packaging_unit}}" data-prescription_num="{{item.prescription_num}}"
data-stock="{{item.stock}}"
bindtap="select_drug" wx:for="{{search_drug_list}}">
<view>{{item.product_name}}</view>
<view style="font-size: 26rpx;color: #3CC7C0;">{{item.manufacturer}}</view>
</view>
@@ -135,4 +137,4 @@
<view style="height: 50rpx;">
</view>
<van-dialog id="van-dialog" confirm-button-color="#3CC7C0" />
<van-dialog id="van-dialog" zIndex="9999" confirm-button-color="#3CC7C0" />
+7 -8
View File
@@ -38,10 +38,7 @@
<view class="bottom" style="padding-bottom: 30rpx;">
<text class="bottom_txt">
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>
2、若开启公益问诊,图文问诊价格以公益问诊价格为准
3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>
4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
</text>
</view>
</view>
@@ -127,15 +124,17 @@
<view class="price_title">价格设置</view>
<view class="price_steup_box">
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
<view class="cell_value">
<view class="cell_value" wx:if="{{info.work_num_day}}">
{{info.work_num_day}}
</view>
<view class="cell_value_seting" wx:else>去设置</view>
</van-cell>
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
<view class="cell_value">
<view class="cell_value" wx:if="{{info.inquiry_price}}">
<text style="color: red;">{{info.inquiry_price}}</text>
<text style="color: #000;"> 元</text>
</view>
<view class="cell_value_seting" wx:else>设置单价,建议800元</view>
</van-cell>
</view>
</view>
@@ -163,7 +162,7 @@
</van-cell>
<van-cell size="large" url="{{config_setting.config_service_id?'/user/pages/yishi/service_setting/index?config_service_id='+config_setting.config_service_id:'/user/pages/yishi/service_setting/index'}}" custom-style="font-size:32rpx;" title="服务周期" is-link border="{{true}}">
<view class="cell_value" wx:if="{{config_setting.service_period}}">
{{config_setting.service_period}}
{{config_setting.service_period}}天
</view>
<view class="cell_value_seting" wx:else>
去设置
@@ -171,7 +170,7 @@
</van-cell>
<van-cell size="large" url="{{config_setting.config_service_id?'/user/pages/yishi/service_setting/index?config_service_id='+config_setting.config_service_id:'/user/pages/yishi/service_setting/index'}}" custom-style="font-size:32rpx;" title="服务回合数" is-link border="{{true}}">
<view class="cell_value" wx:if="{{config_setting.service_rounds}}">
{{config_setting.service_rounds}}
{{config_setting.service_rounds==0?'不限回合数':config_setting.service_rounds}}
</view>
<view class="cell_value_seting" wx:else>
去设置
+1 -1
View File
@@ -166,7 +166,7 @@ page{
.tabcon{
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
height: calc(100vh - 400rpx);
height: calc(100vh - 430rpx);
display: flex;
flex-direction: column;
@@ -105,6 +105,16 @@ Page({
return;
}
}
if(this.data.inquiry_mode==2){
console.log(parseFloat(this.data.info.inquiry_price))
if(!(parseFloat(this.data.info.inquiry_price)>=10 && parseFloat(this.data.info.inquiry_price)<=2999)){
wx.showToast({
title: '问诊单价为10~2999元',
icon:'none'
})
return false;
}
}
//修改医生问诊配置
let params = {};
+2 -11
View File
@@ -26,19 +26,10 @@
4、价格修改后立即生效,不影响修改之前已生成的问诊订单
</text>
<text wx:elif="{{inquiry_mode==2}}">
提示:服务开通后,患者可以向您购买视频问诊服务,接诊后<text class="green">需要您主动和患者预约视频时间并同步设置预约时间</text>
1、视频问诊价格<text class="green">每日仅限调整1次,每自然月仅限调整5次</text>
2、单价修改后立即生效,不影响当日已生成的问诊订单
3、<text class="green">24小时不接诊,订单自动取消</text>,并不展示在您的接诊列表中
4、接诊后,您与患者<text class="green">沟通有效期为48小时</text>,同时提供无回合限制图文、语音形式交流
5、患者因服务不满意等原因要求退款时,平台会和您协商处理
提示:服务开通后,患者可以向您购买视频问诊服务,接诊后<text class="green">需要您主动和患者预约视频时间并同步设置预约时间\n</text>1、视频问诊价格<text class="green">每日仅限调整1次,每自然月仅限调整5次\n</text>2、单价修改后立即生效,不影响当日已生成的问诊订单3、<text class="green">24小时不接诊,订单自动取消</text>,并不展示在您的接诊列表中\n4、接诊后,您与患者<text class="green">沟通有效期为48小时</text>,同时提供无回合限制图文、语音形式交流\n5、患者因服务不满意等原因要求退款时,平台会和您协商处理\n
</text>
<text wx:else>
提示:服务开通后,患者可以向您购买疑难会诊服务,接诊后需要与患者进行图文沟通。
1、问诊价格<text style="color:#3CC7C0">每日仅限调整1次,每自然月仅限调整5次</text>
2、单价修改后立即生效,不影响当日已生成的问诊订单
3、接诊后,患者根据您设定的服务周期和服务次数进行问诊沟通
4、接诊后出现争议时,平台客服会根据实际问诊情况与您协商进行退款
提示:服务开通后,患者可以向您购买疑难会诊服务,接诊后需要与患者进行图文沟通。\n1、问诊价格<text style="color:#3CC7C0">每日仅限调整1次,每自然月仅限调整5次\n</text>2、单价修改后立即生效,不影响当日已生成的问诊订单\n3、接诊后,患者根据您设定的服务周期和服务次数进行问诊沟通\n4、接诊后出现争议时,平台客服会根据实际问诊情况与您协商进行退款\n
</text>
</view>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"usingComponents": {
"te-nav-bar": "../../../../commpents/te_navbar/index",
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index"