3.29提交

This commit is contained in:
zoujiandong
2024-03-29 17:33:31 +08:00
parent 518b1ccb3d
commit 4b76fbfb74
8 changed files with 146 additions and 38 deletions
+33 -9
View File
@@ -39,15 +39,39 @@ Page({
},
sub_visible: false,
showSetting:false,
difficultSetting:false
difficultSetting:false,
showOpenchuFang:false,
showOpenTuWen:false,
},
onLoad(){
},
cancelOpenChuFang(){
this.setData({
showOpenchuFang:false
})
},
confirmOpenChuFang(){
this.setData({
showOpenchuFang:false
})
app.go('/user/pages/yishi/zhiye_identity/index')
},
cancelOpenTuWen(){
this.setData({
showOpenTuWen:false
})
},
confirmOpenTuWen(){
this.setData({
showOpenTuWen:false,
active:0
})
},
onShow(){
let {active}=this.data;
this.getDoctorconfig();
if(active==2){
if(active==4){
this.getConfig()
}
},
@@ -118,14 +142,14 @@ Page({
let check = this.checkPrice(inquiry_price);
if(!check) return;
}
if(this.data.active==1 && detail){
if(this.data.active==3 && detail){
wx.showToast({
title: '即将开通',
icon:'none',
})
return false
}
if(this.data.active==1 || this.data.active==2){
if(this.data.active==3 || this.data.active==4){
if(!this.data.info.work_num_day || !this.data.info.inquiry_price){
this.setData({
showSetting:true
@@ -133,7 +157,7 @@ Page({
return false;
}
}
if(this.data.active==2){
if(this.data.active==4){
if(!this.data.difficultSetting){
wx.showToast({
title: '请先设置服务设置',
@@ -209,9 +233,9 @@ Page({
})
if(active==0){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1")
}else if(active==1){
}else if(active==3){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2")
}else if(active==2){
}else if(active==4){
app.go("/user/pages/yishi/onlinesetupprice/index?inquiry_mode=6")
}
@@ -226,12 +250,12 @@ Page({
inquiry_type:1,
inquiry_mode:1,
})
}else if(index==1){
}else if(index==3){
this.setData({
inquiry_type:1,
inquiry_mode:2,
})
}else{
}else if(index==4){
this.setData({
inquiry_type:1,
inquiry_mode:6,
+29 -17
View File
@@ -106,32 +106,22 @@
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</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=6" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
</view>
</view>
<view class="checked_box">
<view class="price_title">价格设置</view>
<view class="price_steup_box">
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
<view class="price_title">服务价格</view>
<view class="price_steup_box pricebox" style="overflow: hidden;padding-bottom: 10rpx;">
<van-cell size="large" custom-style="font-size:32rpx;" title="服务价格(元)" >
<view class="cell_value">
{{info.work_num_day}}
</view>
</van-cell>
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
<view class="cell_value">
<text style="color: red;">{{info.inquiry_price}}</text>
<text style="color: #000;"> 元</text>
<input type="number"/>
</view>
</van-cell>
</view>
</view>
<view class="bottom" style="padding-bottom: 30rpx;">
<text class="bottom_txt">
提示:服务开启后,患者按照所设置的价格向您购买图文问诊服务
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 class="desc">提示:开通此服务需通过多点执业认证</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>
@@ -308,4 +298,26 @@
去设置
</view>
</t-dialog>
<t-dialog
visible="{{ showOpenchuFang }}"
title="温馨提示"
content="本服务需开处方,您还未做多点执业认证,是否前往?">
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelOpenChuFang">
取消
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmOpenChuFang">
前往
</view>
</t-dialog>
<t-dialog
visible="{{ showOpenTuWen }}"
title="温馨提示"
content="本服务需设置图文问诊的价格, 才可开通。">
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelOpenTuWen">
取消
</view>
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmOpenTuWen">
前往
</view>
</t-dialog>
</view>
+9
View File
@@ -174,3 +174,12 @@ page{
.green{
color:#3CC7C0;
}
.pricebox .van-cell:after{
border-bottom: none!important;
}
.desc{
width: 90vw;
font-size: 28rpx;
color: rgba(0,0,0,0.65);
margin: 20rpx auto 0 auto;
}