3.22医生

This commit is contained in:
zoujiandong
2024-03-22 16:10:50 +08:00
parent 2454bafd78
commit bdc8abf326
34 changed files with 437 additions and 137 deletions
+7 -3
View File
@@ -211,6 +211,7 @@ Component({
avatar_reason: response.data.avatar_reason,
department_custom_mobile_reason: response.data.department_custom_mobile_reason,
brief_introduction_reason: response.data.brief_introduction_reason,
email:response.data.email,
be_good_at_reason: response.data.be_good_at_reason,
license_cert_reason: response.data.license_cert_reason,
qualification_cert_reason: response.data.qualification_cert_reason,
@@ -924,10 +925,13 @@ Component({
params.department_custom_name = this.data.custom_keshi;//自定义科室名称
if(!this.data.office_phone){wx.showToast({title: '请输入科室电话',icon: "error"});return}
params.department_custom_mobile = this.data.office_phone;//科室电话
if(!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(this.data.email))){
wx.showToast({title: '请输入正确格式的邮箱',icon: "error"});return
if(this.data.indentity){
if(!(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(this.data.email))){
wx.showToast({title: '请输入正确格式的邮箱',icon: "error"});return
}
params.email=this.data.email;
}
params.email=this.data.email;
params.doctor_expertise = this.data.zhuanchang_columns.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);//专长
if(params.doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
if(!this.data.select_zhicheng_id){wx.showToast({title: '请选择职称',icon: "error"});return}
+104 -17
View File
@@ -5,9 +5,15 @@
<view class="right">
<view class="note">真人正脸</view>
<t-avatar image="{{ avatar }}" />
<view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) || !(!indentity && introduction_status==2)}}">
<view class="icon" wx:if="{{indentity}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" wx:if="{{!iden_auth_disabled}}" />
</view>
<view class="icon" wx:else>
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" wx:if="{{introduction_status!=2}}" />
</view>
<!-- <view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) || !(!indentity && introduction_status==2)}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view> -->
</view>
</van-uploader>
</view>
@@ -21,8 +27,16 @@
<!-- <t-cell title="头像" hover required arrow note="真人正脸" /> -->
<!-- {{!indentity && introduction_status==3}} -->
<t-cell title="城市" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ city_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onCityShow'}}"/>
<view wx:if="{{indentity}}">
<t-cell title="城市" hover required arrow="{{ ! iden_auth_disabled }}" note="{{ city_note }}" bindtap="{{iden_auth_disabled?'':'onCityShow'}}"/>
</view>
<view wx:else>
<t-cell title="城市" hover required arrow="{{false}}" note="{{ city_note }}" bindtap="{{true?'':'onCityShow'}}"/>
</view>
<!-- <t-cell title="城市" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ city_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onCityShow'}}"/> -->
<view>
<t-cascader
visible="{{ city_show }}"
theme="tab"
@@ -33,8 +47,15 @@
bind:change="onChangeCity"
bind:close="onCloseCity"
></t-cascader>
</view>
<view wx:if="{{indentity}}">
<t-cell title="医院" hover required arrow="{{ !iden_auth_disabled}}" note="{{ yiyuan_note }}" bindtap="{{iden_auth_disabled?'':'onYiYuanShow'}}"/>
</view>
<view wx:else>
<t-cell title="医院" hover required arrow="{{ false}}" note="{{ yiyuan_note }}" bindtap="{{true?'':'onYiYuanShow'}}"/>
</view>
<t-cell title="医院" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ yiyuan_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onYiYuanShow'}}"/>
<!-- <t-cell title="医院" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{ yiyuan_note }}" bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onYiYuanShow'}}"/> -->
<van-popup
show="{{ yiyuan_show }}"
position="bottom"
@@ -64,12 +85,20 @@
<van-empty description="暂无医院" wx:if="{{yiyuan_columns.length == 0}}"/>
</van-popup>
<t-cell title="科室" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{keshi_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
<view wx:if="{{indentity}}">
<t-cell title="科室" hover required arrow="{{ !iden_auth_disabled}}" note="{{keshi_note}}"
bindtap="{{iden_auth_disabled?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
</view>
<view wx:else>
<t-cell title="科室" hover required arrow="{{ false}}" note="{{keshi_note}}"
bindtap="{{true?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/>
</view>
<!-- <t-cell title="科室" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{keshi_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onKeshiShow'}}" bordered="{{ select_keshi_id == '' }}"/> -->
<view class="custom_keshi" wx:if="{{ select_keshi_id != ''}}">
<van-field bind:change="onCustomKeshiChange"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
type="text" model:value="{{custom_keshi}}" label=""
placeholder="请输入您所在科室实际名称" border="{{department_custom_name_reason == ''}}" />
</view>
@@ -220,8 +249,16 @@
</view>
</t-popup>
<t-cell title="职称" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{zhicheng_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onZhiChengShow'}}" />
<view wx:if="{{indentity}}">
<t-cell title="职称" hover required arrow="{{ !iden_auth_disabled}}" note="{{zhicheng_note}}"
bindtap="{{iden_auth_disabled ?'':'onZhiChengShow'}}" />
</view>
<view wx:else>
<t-cell title="职称" hover required arrow="{{false}}" note="{{zhicheng_note}}"
bindtap="{{true ?'':'onZhiChengShow'}}" />
</view>
<!-- <t-cell title="职称" hover required arrow="{{ !((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2)) }}" note="{{zhicheng_note}}"
bindtap="{{((indentity && iden_auth_disabled) || (!indentity && introduction_status!=2))?'':'onZhiChengShow'}}" /> -->
<!-- <t-input
label="科室电话"
placeholder="请输入科室电话"
@@ -230,8 +267,39 @@
suffixIcon="{{ { name: 'chevron-right', ariaLabel: '右' } }}" /> -->
<!-- <t-cell title="专长" hover required arrow note="请选择专长"/> -->
<van-field
<view wx:if="{{indentity}}">
<van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
placeholder-style="font-size:30rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="number"
clearable
disabled="{{iden_auth_disabled}}"
border="{{ department_custom_mobile_reason == '' }}"
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
</view>
<view wx:else>
<van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
placeholder-style="font-size:30rpx;letter-spacing: 2rpx;color:rgba(0, 0, 0, 0.4);"
input-align="right"
type="number"
clearable
disabled="{{true}}"
border="{{ department_custom_mobile_reason == '' }}"
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
</view>
<!-- <van-field
model:value="{{ office_phone }}"
bind:change="onOfficePhoneChange"
placeholder="请输入科室电话"
@@ -244,7 +312,7 @@
custom-style="font-size:30rpx;"
>
<text slot="label">科室电话 <text style="color: #e34d59;">*</text> </text>
</van-field>
</van-field> -->
<view class="has_error" wx:if="{{ department_custom_mobile_reason != '' }}" >
<view class="error_box">
@@ -273,7 +341,8 @@
<text class="error_msg">{{ email_reason }}</text>
</view>
</view>
<view class="zhuanchang" bindtap="{{(indentity && iden_auth_disabled)?'':'onZhuanChangShow'}}">
<view wx:if="{{indentity}}">
<view class="zhuanchang" bindtap="{{iden_auth_disabled?'':'onZhuanChangShow'}}">
<view class="title">专长 <text class="required"> *</text></view>
<view class="content">
<view class="content_item" wx:key="expertise_name" wx:if="{{data.is_selected == 1}}" wx:for="{{ zhuanchang_columns }}" wx:for-item="data">
@@ -283,11 +352,29 @@
<view class="right">
<view class="note">{{zhuanchang_note}}</view>
<view class="icon" wx:if="{{ !(indentity && iden_auth_disabled) }}">
<view class="icon" wx:if="{{ !iden_auth_disabled}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</view>
</view>
<view wx:else>
<view class="zhuanchang" bindtap="{{introduction_status==2?'':'onZhuanChangShow'}}">
<view class="title">专长 <text class="required"> *</text></view>
<view class="content">
<view class="content_item" wx:key="expertise_name" wx:if="{{data.is_selected == 1}}" wx:for="{{ zhuanchang_columns }}" wx:for-item="data">
{{data.expertise_name}}
</view>
</view>
<view class="right">
<view class="note">{{zhuanchang_note}}</view>
<view class="icon" wx:if="{{ introduction_status!=2}}">
<t-icon name="chevron-right" size="48rpx" data-name="chevron-right" />
</view>
</view>
</view>
</view>
<m-textarea-cell
textarea_cell_name="个人简介"
@@ -296,7 +383,7 @@
textarea_cell_note_show="{{!(indentity && iden_auth_disabled)}}"
textarea_cell_content_placeholder="您目前就职医院与科室、社会兼职、所获荣誉、参与科研课题及发表论文等信息(10~1000字)"
textarea_val="{{textarea_jianjie}}"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
has_error_content="{{ brief_introduction_reason }}"
data-textarea_name="textarea_jianjie"
bindTextAreaBlur="getTextAreaVal" />
@@ -306,7 +393,7 @@
t_icon_name="view-module"
bind:showNote="onshowShanChangNote"
textarea_cell_note_show="{{!(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled)}}"
disabled="{{(indentity && iden_auth_disabled) || (!indentity && introduction_status==2)}}"
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="描述您所擅长治疗的疾病或者研究方向(10~1000字)"
@@ -382,7 +469,7 @@
<van-button data-from="doctorauthiden" disabled="{{iden_auth_disabled}}" color="#3CC7C0" custom-style="border-radius: 20rpx;" type="primary" block bind:click="addDoctorAuthIden">{{iden_auth_status_txt}}</van-button>
</view>
<view class="sub_button" wx:else>
<van-button color="#3CC7C0" data-from="myinfo" disabled="{{introduction_status==2}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="{{introduction_status==0?'addDoctorAuthIden':'handleUpdateIntroduction'}}">{{iden_auth_status_txt}}</van-button>
<van-button color="#3CC7C0" data-from="myinfo" disabled="{{introduction_status==2}}" custom-style="border-radius: 20rpx;" type="primary" block bind:click="handleUpdateIntroduction">{{iden_auth_status_txt}}</van-button>
</view>
+10 -1
View File
@@ -28,6 +28,8 @@ Component({
console.log("onBackonBackonBack");
let back_url = this.data.navbarData.back_url;
let back_url_type = this.data.navbarData.back_url_type;
console.log("--------");
console.log(back_url);
if(back_url){
if(back_url_type == 0){
app.go(back_url);
@@ -37,7 +39,14 @@ Component({
});
}
}else{
wx.navigateBack();
wx.navigateBack({
fail:function(){
wx.reLaunch({
delta:1,
url: '/Pages/yishi/index/index',
})
}
});
}
},
onGoHome() {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "../../../../commpents/te_navbar/index",
"te-nav-bar": "../../../commpents/te_navbar/index",
"t-tabs": "tdesign-miniprogram/tabs/tabs",
"t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel",
"van-empty": "@vant/weapp/empty/index"
+80 -15
View File
@@ -51,18 +51,25 @@ Page({
follow: false,
id:'',
expertInquiry_price:'',
freePrice:'',
freeAmount:0,
expertAmount:0,
hasFree:false,
hasExpert:false,
recieveStatus:0,
commentList: [],
totalComment:0,
isFinished:false,
isReceivePatient:false, //是否可接诊
service_content:'【医生填写的服务内容】',
service_process:'【医生填写的服务流程】'
service_process:'【医生填写的服务流程】',
cycle:'',
rounds:''
},
getHeight(){
wx.createSelectorQuery().select('#swiperitem3').boundingClientRect( (rect)=>{
this.setData({
tab3Height:rect.height*2
tab3Height:rect.height
})
console.log('元素高度为:', rect.height)
}).exec()
@@ -264,15 +271,33 @@ bindchange(e){
hasOtherInquiry(arr){
if(arr){
for (var i = 0; i < arr.length; ++i) {
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
if(arr[i].is_enable==1){
this.setData({
hasExpert:true
})
};
this.setData({
expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count
})
}
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].is_enable==1){
this.setData({
canVideo:true
})
};
this.setData({
canVideo:true,
videoPrice:arr[i].inquiry_price
})
};
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].is_enable==1){
this.setData({
canDiffcult:true
})
}
this.setData({
canDiffcult:true,
yinanPrice:arr[i].inquiry_price
})
}
@@ -282,28 +307,66 @@ bindchange(e){
},
formatInquiryStatus(arr){
var a='3';
console.log(arr);
if(arr){
for (var i = 0; i < arr.length; ++i) {
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==1){
if(arr[i].is_enable==1 ){
this.setData({
hasExpert:true
})
a='2';
}
this.setData({
expertAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
expertInquiry_price: arr[i].inquiry_price
})
a='2';
};
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].is_enable==1){
this.setData({
canDiffcult:true
})
}
this.setData({
yinanPrice: arr[i].inquiry_price
})
};
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==2){
if(arr[i].is_enable==1){
this.setData({
canVideo:true,
})
}
this.setData({
canVideo:true,
videoPrice:arr[i].inquiry_price
})
};
if(arr[i].is_enable==1 && arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].inquiry_type==1 && arr[i].inquiry_mode==6){
if(arr[i].is_enable==1 ){
this.setData({
canDiffcult:true
})
}
console.log(' yinanPrice:'+arr[i].inquiry_price)
this.setData({
canDiffcult:true,
yinanPrice:arr[i].inquiry_price
})
}
if(arr[i].is_enable==1 && arr[i].inquiry_type==3){
return '1'
if(arr[i].inquiry_type==3){
this.setData({
freePrice:arr[i].inquiry_price,
freeAmount:arr[i].work_num_day-arr[i].order_inquiry_count,
})
if(arr[i].is_enable==1){
this.setData({
hasFree:true
})
return '1'
}
};
}
@@ -371,7 +434,9 @@ bindchange(e){
if(config_message){
this.setData({
service_content:config_message.content_message,
service_process:config_message.process_message
service_process:config_message.process_message,
rounds:config_message.rounds,
cycle:config_message.cycle
})
}
+45 -31
View File
@@ -67,23 +67,37 @@
</view>
<view class="tabs">
<view class="tab " bindtap="switchTab" data-id="0">
<image wx:if="{{currentData==0 && canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_on.png" alt="" class="tabbg" ></image>
<image wx:elif="{{currentData==0 && !canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_disable_on.png" alt="" class="tabbg" ></image>
<image wx:if="{{currentData==0 && canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_on.png" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==0 && !canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_disable_on.png" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=0 && canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen.png" alt="" class="tabbg" ></image>
<image wx:elif="{{currentData!=0 && !canTuwen}}" src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_disable.png" alt="" class="tabbg" ></image>
<view class="typebox" wx:if="{{canTuwen}}">
<view class="name">图文问诊</view>
<view class="price">¥{{current_inquiry_config.inquiry_price}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3}}">¥{{expertInquiry_price}}/次</view>
<view class="pricebox" wx:if="{{hasExpert && !hasFree}}">
<view class="price">¥{{expertInquiry_price}}/次</view>
</view>
<view class="pricebox" wx:if="{{!hasExpert && hasFree}}">
<view class="price">¥{{freePrice}}/次</view>
</view>
<view class="pricebox" wx:if="{{hasExpert && hasFree}}">
<view class="price" wx:if="{{freeAmount>0}}">¥{{freePrice}}/次</view>
<view class="price" wx:if="{{freeAmount<=0 && expertAmount>0}}">¥{{expertInquiry_price}}/次</view>
<view class="price" wx:if="{{freeAmount<=0 && expertAmount<=0}}">¥{{freePrice}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3 && !(freeAmount<=0 && expertAmount>0)}}">¥{{expertInquiry_price}}/次</view>
</view>
<!-- <view class="price">¥{{current_inquiry_config.inquiry_price}}/次</view>
<view class="jiaprice" wx:if="{{expertInquiry_price && current_inquiry_config.inquiry_type==3}}">¥{{expertInquiry_price}}/次</view> -->
</view>
<view class="typebox disable" wx:else>
<view class="name">图文问诊</view>
<view class="price">暂未开通</view>
<view class="name">图文问诊</view>
<view class="price" wx:if="{{expertInquiry_price}}">¥{{expertInquiry_price}}/次</view>
<view class="price" wx:if="{{!(expertInquiry_price && freePrice)}}">暂未开通</view>
</view>
</view>
<view class="tab " bindtap="switchTab" data-id="1">
<image src="{{static_host}}/applet/doctor/static/images/yishi/video_on.png" wx:if="{{currentData==1 && canVideo}}" alt="" class="tabbg" ></image>
<image wx:elif="{{currentData==1 && !canVideo}}" src="{{static_host}}/applet/doctor/static/images/yishi/video_disable_on.png" alt="" class="tabbg" ></image>
<image src="{{static_host}}/applet/doctor/static/images/yishi/video_on.png" wx:if="{{currentData==1 && canVideo}}" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==1 && !canVideo}}" src="{{static_host}}/applet/doctor/static/images/yishi/video_disable_on.png" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=1 && canVideo}}" src="{{static_host}}/applet/doctor/static/images/yishi/video.png" alt="" class="tabbg" ></image>
<image wx:else src="{{static_host}}/applet/doctor/static/images/yishi/video_disable.png" alt="" class="tabbg" ></image>
<view class="typebox" wx:if="{{canVideo}}">
@@ -96,8 +110,8 @@
</view>
</view>
<view class="tab " bindtap="switchTab" data-id="2">
<image wx:if="{{currentData==2 && canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan_on.png" alt="" class="tabbg" ></image>
<image wx:elif="{{currentData==2 && !canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan_disable_on.png" alt="" class="tabbg" ></image>
<image wx:if="{{currentData==2 && canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan_on.png" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData==2 && !canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan_disable_on.png" alt="" class="tabbg on" ></image>
<image wx:elif="{{currentData!=2 && canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan.png" alt="" class="tabbg" ></image>
<image wx:elif="{{currentData!=2 && !canDiffcult}}" src="{{static_host}}/applet/doctor/static/images/yishi/yinan_disable.png" alt="" class="tabbg" ></image>
<view class="typebox" wx:if="{{canDiffcult}}">
@@ -111,30 +125,30 @@
</view>
</view>
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{currentData==0?'350rpx':currentData==1?'700rpx':tab3Height+'rpx'}}">
<swiper current="{{currentData}}" class="swiperbox" bindchange="bindchange" style="height:{{currentData==0?'350rpx':currentData==1?'700rpx':tab3Height+'px'}}">
<swiper-item class="">
<view class="swiper-item">
<image src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_bg.png" class="itembg"style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
<image src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_bg.png" class="itembg" style="height:auto;" mode="widthFix" wx:if="{{canTuwen}}"></image>
<image src="{{static_host}}/applet/doctor/static/images/yishi/tuwen_bg_disable.png" class="itembg" style="height:auto;" mode="widthFix" wx:else=""></image>
<view class="itembox">
<view class="title">通过文字、图片、语音进行咨询</view>
<view class="tipbox {{!canTuwen?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生接诊后24小时内10个沟通回合;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle tuwen"></view>
<view class="msg">医生未回复,可联系平台客服协商进行退款。</view>
</view>
</view>
@@ -151,35 +165,35 @@
<view class="title">通过视频面对面进行咨询</view>
<view class="tipbox {{!canVideo?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生接诊后,主动和就诊人预约视频时间;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">若预约时间因故需要改变,可与医生图文协商时间;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">视频交流服务时长一般为5-10分钟;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生接诊后48小时内可以通过文字、图片、语音等形式和医生不限制沟通回合数;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">医生未回复或未进行视频,可联系平台客服协商进行退款;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">如因您个人原因(忘记时间、迟到、中途断开未在进入视频等情况),咨询费用可能将无法退回,请准时接收医生视频请求;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle video"></view>
<view class="msg">视频不支持回放。</view>
</view>
</view>
@@ -194,27 +208,27 @@
<view class="title">通过文字、图片、语音进行咨询</view>
<view class="tipbox {{!canDiffcult?'active':''}}">
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">{{service_content}}</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">{{service_process}}</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">可通过文字、图片、语音等形式和医生进行沟通;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="msg">医生接诊后【医生选择的服务周期】内【医生选择的服务次数】沟通回合;</view>
<view class="circle yinan"></view>
<view class="msg">医生接诊后{{cycle}}天内{{rounds==0?'不限':rounds+'个'}}沟通回合;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">医生未接诊,平台24小时内自动退款;</view>
</view>
<view class="tipmsg">
<view class="circle"></view>
<view class="circle yinan"></view>
<view class="msg">医生未回复或医生服务不满意,可联系平台客服协商进行退款。</view>
</view>
</view>
@@ -543,6 +543,9 @@ z-index:0;
height: 314rpx;
position: absolute;
}
.tabbg.on{
height: 330rpx;
}
.typebox{
margin-top: 158rpx;
position: relative;
@@ -573,7 +576,7 @@ color: #999999;
text-decoration: line-through;
}
.swiperbox{
margin-top: 30rpx;
margin-top: 50rpx;
}
.swiper-item{
border-radius: 20rpx;
@@ -662,4 +665,16 @@ padding:0 15rpx;
border: 1rpx solid #3CC7C0;
align-items: center;
color: #3CC7C0;
}
.tipbox .tipmsg .circle.tuwen{
background: #3BB5FE;
}
.tipbox .tipmsg .circle.video{
background: #52C41A;
}
.tipbox .tipmsg .circle.yinan{
background: #FF9C00;
}
.boxwraper::-webkit-scrollbar{
width:0;
}
+10 -1
View File
@@ -115,6 +115,13 @@ Page({
let check = this.checkPrice(inquiry_price);
if(!check) return;
}
if(this.data.active==1 && detail){
wx.showToast({
title: '即将开通',
icon:'none',
})
return false
}
if(this.data.active==1 || this.data.active==2){
if(!this.data.info.work_num_day || !this.data.info.inquiry_price){
this.setData({
@@ -197,8 +204,10 @@ Page({
this.setData({
showSetting: false
})
if(active==1){
if(active==0){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1")
}else if(active==1){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2")
}else if(active==2){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6")
}
+2 -4
View File
@@ -42,8 +42,6 @@
</text>
</view>
</view>
<view class="go">
<van-button disabled="{{info.is_open!=1}}" bind:click="putDoctorInquiryConfig" color="#3CC7C0" custom-style="border-radius: 20rpx;font-size:30rpx;" type="primary" block>去接诊</van-button>
</view>
@@ -61,7 +59,7 @@
<view class="switch_box_note">{{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
</view>
<view class="help">
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=6" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=12" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
</view>
</view>
@@ -116,7 +114,7 @@
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
</view>
<view class="help">
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=6" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=11" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
</view>
</view>
+3 -2
View File
@@ -20,10 +20,11 @@
<view class="bottom">
<text class="bottom_txt" wx:if="{{inquiry_mode==1}}">
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
1、接诊后,患者可与您在{{config.duration/60}}小时内进行{{config.times_number}}回合沟通
1、接诊后,患者可与您在<text class="green">{{config.duration/60}}小时内进行{{config.times_number}}回合沟通\n</text>2、若开启公益问诊,图文问诊价格以公益问诊价格为准\n3、每日接诊数量和问诊价格<text class="green">每日仅限调整1次,每月仅限调整5次\n</text>4、价格修改后立即生效,不影响修改之前已生成的问诊订单\n
<!-- 1、接诊后,患者可与您在{{config.duration/60}}小时内进行{{config.times_number}}回合沟通
2、若开启公益问诊,图文问诊价格以公益问诊价格为准
3、每日接诊数量和问诊价格每日仅限调整1次,每月仅限调整5次
4、价格修改后立即生效,不影响修改之前已生成的问诊订单
4、价格修改后立即生效,不影响修改之前已生成的问诊订单 -->
</text>
<text wx:elif="{{inquiry_mode==2}}">
提示:服务开通后,患者可以向您购买视频问诊服务,接诊后<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
+17 -1
View File
@@ -107,7 +107,7 @@ Page({
})
},
openPreview(){
let {process_message,content_message,}=this.data;
let {process_message,content_message,cycle,rounds}=this.data;
if(content_message.length<10){
wx.showToast({
title: '服务内容不少于10个字符',
@@ -122,9 +122,25 @@ Page({
})
return false
};
if(!cycle){
wx.showToast({
title: '请设置服务周期',
icon:'none'
})
return false
}
if(!rounds && rounds!=0){
wx.showToast({
title: '请设置服务回合数',
icon:'none'
})
return false
}
wx.setStorageSync('config_message', {
content_message,
process_message,
rounds,
cycle
})
this.setData({
showPreview:true
+1 -1
View File
@@ -35,7 +35,7 @@
<view class="cell" bindtap="openRound">
<view class="name">服务回合数</view>
<view class="right">
<view class="msg" wx:if="{{rounds || rounds===0}}">{{rounds}}</view>
<view class="msg" wx:if="{{rounds || rounds===0}}">{{rounds==0?'不限次':rounds}}</view>
<view class="msg" wx:else>去设置</view>
<van-icon name="arrow" class="icon" />
</view>
+1 -1
View File
@@ -104,7 +104,7 @@
}
.btnbox {
margin-bottom: 20rpx;
margin-bottom: 80rpx;
}
.btn {
+43 -1
View File
@@ -11,6 +11,8 @@ Page({
},
height: app.globalData.height,
checked: true,
canFree:false,
showSetting:false,
open_note: "已开启,可在问诊消息中进行接诊",
close_note: "已关闭,暂不接收公益问诊",
note: "",
@@ -44,6 +46,11 @@ Page({
},
onShow(){
let doctor_id=wx.getStorageSync('client_user_id_2');
console.log(doctor_id);
if(doctor_id){
this.getService(doctor_id)
}
let params = {};
params.inquiry_type = this.data.inquiry_type;//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
params.inquiry_mode = this.data.inquiry_mode;//接诊方式(1:图文 2:视频 3:语音 4:电话 5:会员)
@@ -66,6 +73,21 @@ Page({
})
}).catch(errors => {console.error(errors);})
},
getService(id){
api.getDoctorService(id).then(response=>{
let res=response.data;
for (let i = 0; i < res.length; i++) {
if(res[i].inquiry_mode==1 && res[i].inquiry_type==3){
this.setData({
canFree:true
})
break;
};
}
})
},
formatAmounts(){
let list = this.data.config.system_inquiry_price.map(item => {
let it = {};
@@ -104,6 +126,13 @@ Page({
doChange(detail){
let is_open = 0;
if(detail){
if(!this.data.canFree){
this.setData({
showSetting:true
})
return false;
}
wx.vibrateShort({
"type": "heavy"
})
@@ -202,7 +231,20 @@ Page({
this.putDoctorInquiryConfig()
},
settingcancelDialog(){
this.setData({
showSetting: false
})
},
settingconfirmDialog(){
this.setData({
showSetting: false
})
app.go("/user/pages/yishi/yizhensetupprice/index")
},
onPickerCancel(e) {
const { key } = e.currentTarget.dataset;
console.log(e, '取消');
+16 -3
View File
@@ -28,9 +28,10 @@
border="{{true}}"
url="/user/pages/yishi/yizhensetupprice/index"
>
<view class="num">
<view class="num" wx:if="{{canFree}}">
{{ info.work_num_day }}
</view>
<view calss="cell_value_seting" wx:else>去设置</view>
</van-cell>
<view class="price_steup_box_bottom">
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
@@ -38,11 +39,11 @@
border="{{false}}"
url="/user/pages/yishi/yizhensetupprice/index"
>
<view>
<view wx:if="{{canFree}}">
<text class="price">{{ amountText }}</text>
<text style="color: #000;"> 元</text>
</view>
<view calss="cell_value_seting" wx:else >去设置</view>
</van-cell>
</view>
</view>
@@ -88,4 +89,16 @@
确定
</view>
</t-dialog>
<t-dialog
visible="{{ showSetting }}"
title="提示"
content="请先设置每日接诊数量和问诊单价"
>
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="settingcancelDialog">
取消
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="settingconfirmDialog">
去设置
</view>
</t-dialog>
</view>
+4 -1
View File
@@ -135,4 +135,7 @@ page{
.dialog_confirm_btn{
border-top: 1px solid #E9E9E9;
color: #3CC7C0;
}
}
.cell_value_seting{
color: rgba(0,0,0,0.45);
}