3.22医生
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user