快速问诊

This commit is contained in:
zoujiandong 2024-04-28 13:33:11 +08:00
parent 2d8066cbed
commit c7cfee82fa

View File

@ -62,6 +62,7 @@ Page({
}).catch(errors => {console.error(errors);})
this.getSysconfig()
this.getDoctorOpen();
},
getSysconfig(){
let {inquiry_type,inquiry_mode}=this.data;
@ -79,6 +80,25 @@ Page({
}).catch(errors => {console.error(errors);})
},
getDoctorOpen(){
let {inquiry_type,inquiry_mode}=this.data;
api.getOpen({
inquiry_type,
inquiry_mode
}).then(response => {
this.setData({
note: response.data,
'info.is_open': response.data
})
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);})
},
changeON(){
let is_open = this.data.info.is_open
console.log("changeON:", is_open)