From e44886e9d111d37a34b9de26491296b804455159 Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 19 Nov 2024 21:01:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=8C=BB=E7=94=9F=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E7=A1=AE=E8=AE=A4=202.=20=E7=97=85=E4=BE=8B?= =?UTF-8?q?=E5=BA=94=E8=97=8F=E4=BA=8C=E7=BA=A7=E4=BB=A5=E4=B8=8A=E7=9A=84?= =?UTF-8?q?=E9=A9=B3=E5=9B=9E=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module1/pages/setInfo/index.ts | 23 +++++++++++++++++------ src/module1/pages/setInfo/index.wxml | 3 ++- src/pages/cases/index.wxml | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/module1/pages/setInfo/index.ts b/src/module1/pages/setInfo/index.ts index 65679d4..accee82 100644 --- a/src/module1/pages/setInfo/index.ts +++ b/src/module1/pages/setInfo/index.ts @@ -68,6 +68,7 @@ Page({ }).then((res) => { this.setData({ inviteName: res.Name, + InviteDoctorId: dId, }); }); }, @@ -126,8 +127,22 @@ Page({ TitleType: value, }); }, + handleSubmitConform() { + wx.showModal({ + content: "您没有邀约医生,可能会影响您的审核", + confirmColor: "#00B4C5", + cancelColor: "#141515", + confirmText: "继续提交", + cancelText: "取消", + success: (res) => { + if (res.confirm) { + this.handleSubmit(); + } + }, + }); + }, handleSubmit() { - let { + const { AuditId, Name, HospitalId, @@ -139,10 +154,6 @@ Page({ RegisterImg, PositionImg, } = this.data; - const scene = app.globalData.scene; - if (scene?.doctorId) { - InviteDoctorId = scene.doctorId; - } if (!Name) { wx.showToast({ @@ -291,7 +302,7 @@ Page({ title: "确认退出登录?", success(res) { if (res.confirm) { - app.globalData.isLogin = 0 + app.globalData.isLogin = 0; wx.ajax({ method: "POST", url: "?r=takeda/account/reg-logout", diff --git a/src/module1/pages/setInfo/index.wxml b/src/module1/pages/setInfo/index.wxml index aee550f..77d82ad 100644 --- a/src/module1/pages/setInfo/index.wxml +++ b/src/module1/pages/setInfo/index.wxml @@ -115,6 +115,7 @@ 退出 - 提交 + 提交 + 提交 diff --git a/src/pages/cases/index.wxml b/src/pages/cases/index.wxml index 8a6e3ee..c679e58 100644 --- a/src/pages/cases/index.wxml +++ b/src/pages/cases/index.wxml @@ -133,7 +133,7 @@ - +