快速问诊
This commit is contained in:
parent
fb681b8a93
commit
2d8066cbed
@ -48,20 +48,37 @@ 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
|
||||
console.log("changeON:", is_open)
|
||||
|
||||
@ -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"> 元</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user