快速问诊

This commit is contained in:
zoujiandong 2024-04-28 13:24:15 +08:00
parent fb681b8a93
commit 2d8066cbed
2 changed files with 27 additions and 10 deletions

View File

@ -48,19 +48,36 @@ Page({
api.getDoctorInquiryConfig(params).then(response => {
console.log(response);
this.setData({
info: response.data.info,
config: response.data.config,
'info.inquiry_price': response.data.inquiry_price,
'info.work_num_day': response.data.work_num_day
})
}).then(re => {
let is_open = this.data.info.is_open;
let note = this.data.note;
if(is_open == 1) note = this.data.open_note;
if(is_open == 0) note = this.data.close_note;
// let is_open = this.data.info.is_open;
// let note = this.data.note;
// if(is_open == 1) note = this.data.open_note;
// if(is_open == 0) note = this.data.close_note;
// this.setData({
// note: note
// })
}).catch(errors => {console.error(errors);})
this.getSysconfig()
},
getSysconfig(){
let {inquiry_type,inquiry_mode}=this.data;
api.getSysconfig({
inquiry_type,
inquiry_mode
}).then(response => {
console.log(response);
this.setData({
note: note
'config': response.data
// config: response.data.config,
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
})
}).catch(errors => {console.error(errors);})
},
changeON(){
let is_open = this.data.info.is_open

View File

@ -26,7 +26,7 @@
<view class="price_steup_box_bottom">
<view class="price_steup_box_bottom_title">问诊单价</view>
<view class="price_steup_box_bottom_num">
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ config.inquiry_price }}" placeholder="请输入问诊单价" />
<text class="price" decode="true">&nbsp;元</text>
</view>
</view>