diff --git a/user/pages/yishi/kuaisusetup/index.js b/user/pages/yishi/kuaisusetup/index.js index 4763933..834f3bb 100644 --- a/user/pages/yishi/kuaisusetup/index.js +++ b/user/pages/yishi/kuaisusetup/index.js @@ -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; - 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 + }) + + }).catch(errors => {console.error(errors);}) + +}, changeON(){ let is_open = this.data.info.is_open console.log("changeON:", is_open) diff --git a/user/pages/yishi/kuaisusetup/index.wxml b/user/pages/yishi/kuaisusetup/index.wxml index 2a73959..2ddb585 100644 --- a/user/pages/yishi/kuaisusetup/index.wxml +++ b/user/pages/yishi/kuaisusetup/index.wxml @@ -26,7 +26,7 @@ 问诊单价 - +  元