3.22医生
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
}
|
||||
|
||||
.btnbox {
|
||||
margin-bottom: 20rpx;
|
||||
margin-bottom: 80rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
|
||||
@@ -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, '取消');
|
||||
|
||||
@@ -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>
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user