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

View File

@ -81,8 +81,8 @@ Component({
license_cert_reason: "",
qualification_cert_reason: "",
work_cert_reason: "",
expertise_reason:"",
email_reason:'',
expertise_reason:'',
department_custom_name_reason: '',
zhuanchang_note: '请选择专长',
jianjie_show: false,
@ -91,6 +91,10 @@ Component({
img_cropper_src: '',
img_cropper_width: 250, //宽度
img_cropper_height: 250, //高度
old_be_good_at:'',
old_avatar:'',
old_doctor_expertise:'',
old_brief_introduction:''
},
options: {
addGlobalClass: true,
@ -107,7 +111,9 @@ Component({
this.setData({
doctorauthiden_data_ready: true,
textarea_jianjie: response.data.brief_introduction,
old_brief_introduction: response.data.brief_introduction,
textarea_shanchang: response.data.be_good_at,
old_be_good_at:response.data.be_good_at,
custom_keshi: response.data.department_custom_name,
office_phone: response.data.department_custom_mobile,
select_keshi_id: response.data.department_custom_id,
@ -175,6 +181,7 @@ Component({
if(avatar){
this.setData({
"avatar": avatar,
old_avatar:avatar,
is_avatar: true,
})
}
@ -185,7 +192,7 @@ Component({
this.setData({
avatar_reason: response.data.avatar,
brief_introduction_reason: response.data.brief_introduction,
expertise_reason:response.data.expertise,
expertise_reason:response.data.doctor_expertise,
be_good_at_reason: response.data.be_good_at,
})
@ -325,13 +332,18 @@ Component({
//加载专长列表
api.getDoctorExpertise().then(response => {
console.log(response);
let arr=response.data.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);
let old_doctor_expertise=JSON.stringify(arr);
_this.setData({
zhuanchang_columns: response.data
zhuanchang_columns: response.data,
old_doctor_expertise:old_doctor_expertise
})
}).then(()=>{
let index = this.data.zhuanchang_columns.findIndex(item => {
return item.is_selected == 1;
})
if(index != undefined) {
this.setData({
zhuanchang_note: ""
@ -878,9 +890,9 @@ Component({
},
zhuanchangConfirm(e){
this.setData({
zhuanchang_show: false,
zhuanchang_show: false,
expertise_reason:''
});
});
this.triggerEvent('hidePageMeta');
},
zhuanchangConcle(e){
@ -888,13 +900,15 @@ Component({
this.triggerEvent('hidePageMeta');
},
handleUpdateIntroduction(){
let {avatar,textarea_jianjie,textarea_shanchang}=this.data;
let {avatar,textarea_jianjie,textarea_shanchang,old_avatar,old_brief_introduction,old_be_good_at,old_doctor_expertise}=this.data;
let doctor_expertise= this.data.zhuanchang_columns.filter(e => e.is_selected == 1 ).map(e => e.expertise_id);
if(!avatar){wx.showToast({title: '请上传头像',icon: "error"});return}
if(doctor_expertise.length == 0){wx.showToast({title: '请选择专长',icon: "error"});return}
if(!textarea_jianjie){wx.showToast({title: '请输入简介',icon: "error"});return}
if(!textarea_shanchang){wx.showToast({title: '请输入擅长',icon: "error"});return}
if(avatar==old_avatar && textarea_jianjie==old_brief_introduction &&textarea_shanchang== old_be_good_at && JSON.stringify(doctor_expertise)==old_doctor_expertise){
wx.showToast({title: '请修改数据后再提交',icon: "none"});return
}
api.updateIntroduction({
avatar,
brief_introduction:textarea_jianjie,

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
})
},
/**
* 生命周期函数--监听页面加载
*/

View File

@ -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"
}
}

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>

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;
}

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,

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>

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;
}