From 663e31b035fb3934b8dd144138eba5d1d6965f99 Mon Sep 17 00:00:00 2001 From: kola-web Date: Fri, 12 Jun 2026 19:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E8=AF=8A=E6=8F=90=E9=86=92=E4=B8=8A?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 2 +- src/app.ts | 17 ++++++------ src/components/popup/index.wxml | 2 +- src/components/toast/index.wxml | 2 +- src/patient/pages/followForm/index.scss | 2 ++ src/patient/pages/followForm/index.ts | 5 +++- src/patient/pages/followForm/index.wxml | 4 +-- src/patient/pages/index/index.scss | 1 + src/patient/pages/index/index.ts | 23 +++++++---------- src/patient/pages/index/index.wxml | 6 ++--- src/patient/pages/interactivePatient/index.ts | 37 +++++++++++---------------- src/patient/pages/my/index.ts | 28 +++++++++++++++++--- src/patient/pages/my/index.wxml | 2 +- 13 files changed, 73 insertions(+), 58 deletions(-) diff --git a/project.config.json b/project.config.json index 625d498..1d8faf4 100644 --- a/project.config.json +++ b/project.config.json @@ -71,5 +71,5 @@ } ] }, - "appid": "wxf9ce8010f1ad24aa" + "appid": "wx71ac9c27c3c3e3f4" } \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 91a9290..f027e32 100644 --- a/src/app.ts +++ b/src/app.ts @@ -18,15 +18,15 @@ App({ // 测试号 wx2b0bb13edf717c1d // dev // appid:wxf9ce8010f1ad24aa - url: 'https://m.xd.hbraas.com', - upFileUrl: 'https://m.xd.hbraas.com/', - imageUrl: 'https://m.xd.hbraas.com/xd/', + // url: 'https://m.xd.hbraas.com', + // upFileUrl: 'https://m.xd.hbraas.com/', + // imageUrl: 'https://m.xd.hbraas.com/xd/', // pro // appid:wx71ac9c27c3c3e3f4 - // url: 'https://m.xd.hbsaas.com', - // upFileUrl: 'https://m.xd.hbsaas.com/', - // imageUrl: 'https://m.xd.hbsaas.com/api/xd/', + url: 'https://m.xd.hbsaas.com', + upFileUrl: 'https://m.xd.hbsaas.com/', + imageUrl: 'https://m.xd.hbsaas.com/api/xd/', loginState: '', isLogin: 0, @@ -125,13 +125,14 @@ App({ this.handleUpdateMiniprogram() }, - onShow(options) { + onShow() { + const options = wx.getEnterOptionsSync() if (options.query.scene) { this.globalData.scene = parseScene(options.query.scene) } else if (options.query.proMethodId) { this.globalData.scene.proMethodId = options.query.proMethodId } - if (this.globalData.scene?.doctorId) { + if (this.globalData.scene?.doctorId && options.query.scene) { this.globalData.scanDoctor = true } }, diff --git a/src/components/popup/index.wxml b/src/components/popup/index.wxml index 64d7c0b..0cca21e 100644 --- a/src/components/popup/index.wxml +++ b/src/components/popup/index.wxml @@ -255,7 +255,7 @@ 档案已保存 - 下次就医时可出示该卡给医生 + 下次就医时可出示给医生 知道了 diff --git a/src/components/toast/index.wxml b/src/components/toast/index.wxml index fa0cb4a..7b88392 100644 --- a/src/components/toast/index.wxml +++ b/src/components/toast/index.wxml @@ -859,7 +859,7 @@ 记录复诊信息 - 持续更新健康情况 + 持续关注健康情况 去记录 diff --git a/src/patient/pages/followForm/index.scss b/src/patient/pages/followForm/index.scss index f07dd50..4d531cc 100644 --- a/src/patient/pages/followForm/index.scss +++ b/src/patient/pages/followForm/index.scss @@ -13,6 +13,7 @@ page { margin-left: -32rpx; font-size: 36rpx; color: rgba(33, 29, 46, 1); + font-weight: bold; display: flex; align-items: center; gap: 22rpx; @@ -28,6 +29,7 @@ page { text-align: right; font-size: 28rpx; color: rgba(185, 130, 255, 1); + font-weight: normal; } } .c-title1 { diff --git a/src/patient/pages/followForm/index.ts b/src/patient/pages/followForm/index.ts index 87be562..2688523 100644 --- a/src/patient/pages/followForm/index.ts +++ b/src/patient/pages/followForm/index.ts @@ -15,9 +15,11 @@ Page({ popupShow: false, popupType: 'popup19', popupParams: {} as any, + today: '', }, onLoad(options: any) { + this.setData({ today: this.formatDate(new Date()) }) app.waitLogin({ type: [1] }).then(() => { this.getEnum().then(() => { if (options.id) { @@ -206,7 +208,8 @@ Page({ const { popupType } = this.data this.setData({ popupShow: false }) if (popupType === 'popup19') { - this.handlePopupCancel() + wx.redirectTo({ url: '/patient/pages/follow/index' }) + this.setData({ popupShow: false }) } }, diff --git a/src/patient/pages/followForm/index.wxml b/src/patient/pages/followForm/index.wxml index 5f08c8f..5609716 100644 --- a/src/patient/pages/followForm/index.wxml +++ b/src/patient/pages/followForm/index.wxml @@ -1,7 +1,7 @@ 您的复诊时间 - + {{visitTime || '年 / 月 / 日'}} @@ -43,7 +43,7 @@ - 注:替妥尤单抗常规疗程共 8 次注射(每3周1次) + 替妥尤单抗常规疗程共 8 次注射(每21天1次) diff --git a/src/patient/pages/index/index.scss b/src/patient/pages/index/index.scss index 470e581..36e802b 100644 --- a/src/patient/pages/index/index.scss +++ b/src/patient/pages/index/index.scss @@ -111,6 +111,7 @@ page { display: flex; align-items: center; justify-content: center; + gap: 22rpx; .icon { width: 92rpx; height: 92rpx; diff --git a/src/patient/pages/index/index.ts b/src/patient/pages/index/index.ts index 1d8c5cf..dbf2c79 100644 --- a/src/patient/pages/index/index.ts +++ b/src/patient/pages/index/index.ts @@ -168,6 +168,7 @@ Page({ toastType: 'followGuide', toastParams: { close: true }, }) + return } const noteGuideShown = wx.getStorageSync('noteGuideShown') @@ -539,26 +540,20 @@ Page({ }) this.handleToastCancel(null, false) } else if (toastType === 'followGuide') { - if (!toastParams.scanDoctor) { - wx.ajax({ - method: 'POST', - url: '?r=zd/popup/add-record', - data: { type: 4 }, - }).then(() => { - wx.navigateTo({ - url: '/patient/pages/followForm/index', - }) - }) - } else { + wx.ajax({ + method: 'POST', + url: '?r=zd/popup/add-record', + data: { type: 4 }, + }).then(() => { wx.navigateTo({ url: '/patient/pages/followForm/index', }) - } + }) this.handleToastCancel(null, false) } }, handleToastCancel(_e = null, sure = true) { - const { toastType, toastParams } = this.data + const { toastType } = this.data if (toastType === 'doubleStandards' && sure) { wx.ajax({ method: 'POST', @@ -587,7 +582,7 @@ Page({ url: '?r=zd/popup/close-need-popup', data: { type: 1 }, }) - } else if (toastType === 'followGuide' && sure && !toastParams.scanDoctor) { + } else if (toastType === 'followGuide' && sure) { wx.ajax({ method: 'POST', url: '?r=zd/popup/add-record', diff --git a/src/patient/pages/index/index.wxml b/src/patient/pages/index/index.wxml index aa2460e..5874ac5 100644 --- a/src/patient/pages/index/index.wxml +++ b/src/patient/pages/index/index.wxml @@ -35,12 +35,12 @@ -