From c7cfee82fad0ea964258e5925df7fec2ffc0f8c3 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Sun, 28 Apr 2024 13:33:11 +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 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/user/pages/yishi/kuaisusetup/index.js b/user/pages/yishi/kuaisusetup/index.js index 834f3bb..eb30b4f 100644 --- a/user/pages/yishi/kuaisusetup/index.js +++ b/user/pages/yishi/kuaisusetup/index.js @@ -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)