4.23
This commit is contained in:
@@ -14,8 +14,10 @@ Page({
|
||||
// open_note: "已开启,患者可以向您发起图文问诊",
|
||||
// close_note: "已关闭,暂不接诊",
|
||||
note: "",
|
||||
tuwenPrice:'',
|
||||
inquiry_type: 1,
|
||||
inquiry_mode: 1,
|
||||
monthly_frequency:'',
|
||||
multi_point_status:'',
|
||||
config_setting:{},
|
||||
items:[],
|
||||
@@ -79,13 +81,19 @@ Page({
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
let {active}=this.data;
|
||||
let {active,idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||
this.getDoctorconfig();
|
||||
this.getDoctorOpen();
|
||||
this.getSysconfig();
|
||||
if(active==4){
|
||||
this.getConfig()
|
||||
}
|
||||
if(active==1){
|
||||
this.getFollow();
|
||||
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
||||
this.getFollowDetail();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
getDoctorOpen(){
|
||||
@@ -117,6 +125,11 @@ Page({
|
||||
// config: response.data.config,
|
||||
// note: response.data.info.is_open
|
||||
})
|
||||
if(inquiry_mode==1){
|
||||
this.setData({
|
||||
tuwenPrice:response.data.inquiry_price
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
changeON(){
|
||||
@@ -158,8 +171,8 @@ Page({
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
addServiceContent(){
|
||||
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank)
|
||||
let {idcard_status,iden_auth_status,is_bind_bank,tuwenPrice}=this.data;
|
||||
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank+"&tuwenPrice="+tuwenPrice)
|
||||
},
|
||||
async doChange(detail){
|
||||
console.log("onChange: ", detail);
|
||||
@@ -347,6 +360,7 @@ Page({
|
||||
let res=response.data.map((item)=>{
|
||||
return {service_period:item.service_period,service_price:item.service_price}
|
||||
})
|
||||
res.sort((a, b) =>a.service_period-b.service_period);
|
||||
this.setData({
|
||||
items:res
|
||||
})
|
||||
@@ -390,7 +404,7 @@ Page({
|
||||
getHealthy(){
|
||||
api.getHealthy().then(response => {
|
||||
this.setData({
|
||||
healthPrice:(response.data.inquiry_price*response.data.service_rate/100).toFixed(2)
|
||||
healthPrice:(response.data.inquiry_price*response.data.service_rate/100*response.data.service_count).toFixed(2)
|
||||
})
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<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}}" />
|
||||
@@ -22,15 +22,17 @@
|
||||
<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="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.work_num_day}}">
|
||||
{{info.work_num_day}}
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</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">
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=1" custom-style="font-size:32rpx;flex:0.8" title="问诊单价" is-link border="{{false}}">
|
||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
||||
<text style="color: #000;"> 元</text>
|
||||
</view>
|
||||
<view wx:else >请选择单价</view>
|
||||
</van-cell>
|
||||
</view>
|
||||
</view>
|
||||
@@ -57,7 +59,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==1)?'已开启,患者可以向您发起随访包服务':'已关闭,暂不接诊' }}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
||||
@@ -69,7 +71,7 @@
|
||||
<view class="price_steup_box_top_title">服务次数/月</view>
|
||||
<view class="price_steup_box_top_stepper" bind:tap="addServiceContent">
|
||||
<text class="amount nodata" wx:if="{{monthly_frequency===''}}">请选择服务次数</text>
|
||||
<text class="amount" wx:else>{{monthly_frequency===0?'不限次数':'10次'}}</text>
|
||||
<text class="amount" wx:else>{{monthly_frequency==="0"?'不限次数':'10次'}}</text>
|
||||
|
||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||
</view>
|
||||
@@ -95,8 +97,8 @@
|
||||
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||
</view>
|
||||
</view>
|
||||
<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" style="padding-bottom: 25rpx;">
|
||||
<view class="price_steup_box_bottom_title">服务价格</view>
|
||||
<view class="price_steup_box_bottom_num">
|
||||
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" disabled="{{true}}" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
||||
</view>
|
||||
@@ -148,7 +150,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==0)?'已开启,患者可以向您发起图文问诊':'已关闭,暂不接诊' }}</view>
|
||||
<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}}" />
|
||||
@@ -158,7 +160,7 @@
|
||||
<view class="checked_box">
|
||||
<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="服务价格(元)" >
|
||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务价格" >
|
||||
<view class="cell_value cell_value_heal">
|
||||
<input type="number" placeholder="请设置价格"
|
||||
value="{{healthPrice}}"
|
||||
@@ -186,7 +188,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1&& active==1)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1&& active==3)?'已开启,患者可以向您发起视频问诊':'已关闭,暂不接诊'}}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=12" custom-style="font-size:32rpx;" title="视频问诊操作手册" is-link border="{{false}}" />
|
||||
@@ -197,15 +199,17 @@
|
||||
<view class="price_title">价格设置</view>
|
||||
<view class="price_steup_box">
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="每日接诊数量" is-link border="{{true}}">
|
||||
<view class="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.work_num_day}}">
|
||||
{{info.work_num_day}}
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择每日接诊数量</view>
|
||||
</van-cell>
|
||||
<van-cell size="large" url="/user/pages/yishi/onlinesetupprice/index?inquiry_mode=2" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}">
|
||||
<view class="cell_value">
|
||||
<view class="cell_value" wx:if="{{info.inquiry_price}}">
|
||||
<text style="color: red;">{{info.inquiry_price}}</text>
|
||||
<text style="color: #000;"> 元</text>
|
||||
</view>
|
||||
<view wx:else style="white-space: nowrap;">请选择问诊单价</view>
|
||||
</van-cell>
|
||||
</view>
|
||||
</view>
|
||||
@@ -241,7 +245,7 @@
|
||||
<van-switch active-color="#3CC7C0" inactive-color="#E7E7E7" size="40rpx" checked="{{ info.is_open==1 }}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==2)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
||||
<view class="switch_box_note">{{ (info.is_open==1 && active==4)?'已开启,患者可以向您发起疑难会诊':'已关闭,暂不接诊'}}</view>
|
||||
</view>
|
||||
<view class="help">
|
||||
<van-cell size="large" url="/user/pages/yishi/manual_detail/index?manual_id=11" custom-style="font-size:32rpx;" title="疑难会诊操作手册" is-link border="{{false}}" />
|
||||
|
||||
@@ -65,11 +65,12 @@ page{
|
||||
padding-top: 10rpx;
|
||||
display: flex;
|
||||
width: 90vw;
|
||||
margin: 0 auto;
|
||||
margin: 0 auto 20rpx;
|
||||
border-radius: 20rpx;
|
||||
flex-direction: column;
|
||||
background-color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.price_steup_box_top{
|
||||
position: relative;
|
||||
display: flex;
|
||||
@@ -139,6 +140,8 @@ page{
|
||||
color: #000;
|
||||
}
|
||||
.cell_value_seting{
|
||||
|
||||
white-space: nowrap;
|
||||
color: rgba(0,0,0,0.45);
|
||||
}
|
||||
.dialog{
|
||||
@@ -216,4 +219,7 @@ color: #E34D59;
|
||||
}
|
||||
.unit{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.nodata{
|
||||
color: #999999;
|
||||
}
|
||||
Reference in New Issue
Block a user