4.7提交

This commit is contained in:
zoujiandong
2024-04-07 13:58:23 +08:00
parent 1115e4e060
commit 1d4619efe7
16 changed files with 521 additions and 66 deletions
+30 -11
View File
@@ -48,21 +48,40 @@ 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
// config: response.data.config,
})
this.formatAmounts();
this.formatAmountValue();
// this.formatAmounts();
// this.formatAmountValue();
}).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;
this.setData({
note: 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({
'config': response.data
// config: response.data.config,
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
})
this.formatAmounts();
this.formatAmountValue();
}).catch(errors => {console.error(errors);})
},
formatAmounts(){
let list = this.data.config.system_inquiry_price.map(item => {
let it = {};