快速问诊
This commit is contained in:
parent
2d8066cbed
commit
c7cfee82fa
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user