From 2d8066cbed9631de83d48f411279bca627389597 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Sun, 28 Apr 2024 13:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=9F=E9=97=AE=E8=AF=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/pages/yishi/kuaisusetup/index.js | 35 ++++++++++++++++++------- user/pages/yishi/kuaisusetup/index.wxml | 2 +- 2 files changed, 27 insertions(+), 10 deletions(-) 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 @@ 问诊单价 - +  元