快速问诊

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,20 +48,37 @@ Page({
api.getDoctorInquiryConfig(params).then(response => { api.getDoctorInquiryConfig(params).then(response => {
console.log(response); console.log(response);
this.setData({ this.setData({
info: response.data.info, 'info.inquiry_price': response.data.inquiry_price,
config: response.data.config, 'info.work_num_day': response.data.work_num_day
}) })
}).then(re => { }).then(re => {
let is_open = this.data.info.is_open; // let is_open = this.data.info.is_open;
let note = this.data.note; // let note = this.data.note;
if(is_open == 1) note = this.data.open_note; // if(is_open == 1) note = this.data.open_note;
if(is_open == 0) note = this.data.close_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({ 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);}) }).catch(errors => {console.error(errors);})
},
},
changeON(){ changeON(){
let is_open = this.data.info.is_open let is_open = this.data.info.is_open
console.log("changeON:", is_open) console.log("changeON:", is_open)

View File

@ -26,7 +26,7 @@
<view class="price_steup_box_bottom"> <view class="price_steup_box_bottom">
<view class="price_steup_box_bottom_title">问诊单价</view> <view class="price_steup_box_bottom_title">问诊单价</view>
<view class="price_steup_box_bottom_num"> <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> <text class="price" decode="true">&nbsp;元</text>
</view> </view>
</view> </view>