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
+15 -1
View File
@@ -11,9 +11,23 @@ Page({
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '添加服务内容', //导航栏 中间的标题
},
cycle_columns:['1个月', '3个月', '6个月', '12个月'],
showCycle:false
},
confirmCycle(event){
const { picker, value, index } = event.detail;
console.log(value);
this.setData({
showCycle:true
})
},
cancelCycle(){
this.setData({
showCycle:true
})
},
/**
* 生命周期函数--监听页面加载
*/
@@ -3,6 +3,8 @@
"te-nav-bar": "../../../../commpents/te_navbar/index",
"van-field": "@vant/weapp/field/index",
"van-icon": "@vant/weapp/icon/index",
"van-picker": "@vant/weapp/picker/index",
"van-popup": "@vant/weapp/popup/index",
"van-button": "@vant/weapp/button/index"
}
}
+12 -3
View File
@@ -29,14 +29,23 @@
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
<view class="price_steup_box_bottom_title">服务价格(元)</view>
<view class="price_steup_box_bottom_num">
<text class="price">不限制</text>
<input type="number" class="ipt"/><text class="unit">元</text>
</view>
</view>
<view class="tips">建议服务价格设置为:单次图文*10次*5~8折</view>
<view class="tips">
<view>建议服务价格设置为:单次图文*10次*5~8折</view>
</view>
</view>
</view>
<view class="continueadd">继续添加服务内容</view>
<view class="btn">保存</view>
</view>
<van-popup
show="{{ showCycle }}"
round
position="bottom"
custom-style="height: 35%"
>
<van-picker columns="{{ cycle_columns }}" show-toolbar bind:confirm="confirmCycle" title="周期" bind:cancel="cancelCycle"/>
</van-popup>
+25 -1
View File
@@ -54,8 +54,16 @@ page{
.price_steup_box_bottom_num{
flex: 1.5;
display: flex;
justify-content: flex-end;
text-align: right;
align-items: flex-end;
align-items:center;
}
.ipt{
font-size: 28rpx;
color: #E34D59;
}
.unit{
font-size: 28rpx;
}
.price_steup_box_top::after{
position: absolute;
@@ -104,6 +112,8 @@ page{
margin:15rpx 30rpx;
font-weight: 400;
font-size: 24rpx;
display: flex;
justify-content: space-between;
color: #E34D59;
}
.continueadd{
@@ -134,4 +144,18 @@ border-radius: 8rpx;
margin:160rpx auto 0;
background: #3CC7C0;
border-radius: 8rpx;
}
.van-picker__cancel{
font-size: 32rpx!important;
color: rgba(0,0,0,0.6)!important;
}
.van-picker__confirm{
font-size: 32rpx!important;
color: #3CC7C0!important;
}
.van-picker__title{
font-size: 32rpx!important;
}
.van-picker__toolbar{
border-bottom:.5px solid #E7E7E7;
}
+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;
}