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
+20 -3
View File
@@ -46,11 +46,28 @@ Page({
api.getDoctorInquiryConfig(params).then(response => {
console.log(response);
this.setData({
info: response.data.info,
config: response.data.config,
note: response.data.info.is_open == 1? this.data.open_note : this.data.close_note
'info.inquiry_price': response.data.inquiry_price,
'info.work_num_day': response.data.work_num_day,
// config: response.data.config,
// note: response.data.info.is_open == 1? this.data.open_note : this.data.close_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
})
}).catch(errors => {console.error(errors);})
},
onStepperChange(event) {
console.log(event.detail);