From de550aa169a381a1a82b0960a3c47439f3d11284 Mon Sep 17 00:00:00 2001 From: kola-web Date: Fri, 20 Mar 2026 18:35:55 +0800 Subject: [PATCH] =?UTF-8?q?push=20id=20=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.private.config.json | 14 +++++++------- src/pages/home/index.wxml | 3 +-- src/patient/pages/liveDetail/index.ts | 13 +++++++++++++ src/patient/pages/qol/index.ts | 16 ++++++++++++++-- 4 files changed, 35 insertions(+), 11 deletions(-) diff --git a/project.private.config.json b/project.private.config.json index 219f902..e713fa2 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -23,6 +23,13 @@ "miniprogram": { "list": [ { + "name": "患者-qol", + "pathName": "patient/pages/qol/index", + "query": "pushId=81", + "scene": null, + "launchMode": "default" + }, + { "name": "医生-患者量表", "pathName": "pages/d_qolDetail/index", "query": "id=178", @@ -121,13 +128,6 @@ "scene": null }, { - "name": "患者-qol", - "pathName": "patient/pages/qol/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { "name": "患者-录入个人信息", "pathName": "patient/pages/enterInfo/index", "query": "", diff --git a/src/pages/home/index.wxml b/src/pages/home/index.wxml index 9ff7f0b..4a84d6f 100644 --- a/src/pages/home/index.wxml +++ b/src/pages/home/index.wxml @@ -146,8 +146,7 @@ - 统计数据截止到昨天 - 每天00:05更新 + 患者数据看板 diff --git a/src/patient/pages/liveDetail/index.ts b/src/patient/pages/liveDetail/index.ts index 6977ec1..bce8bfc 100644 --- a/src/patient/pages/liveDetail/index.ts +++ b/src/patient/pages/liveDetail/index.ts @@ -38,12 +38,15 @@ Page({ answer: false, isAnswer: false, + + pushId: '', }, videoContext: {} as WechatMiniprogram.VideoContext, onLoad(options) { this.setData({ id: options.id, answer: options.answer === '1', + pushId: options.pushId, }) if (options.jump == '1') { this.setData({ @@ -101,6 +104,16 @@ Page({ app.getZdUserInfo(this, true, () => { this.getPosterParams() }) + if (this.data.pushId) { + wx.ajax({ + method: 'POST', + url: '?r=xd/push-click/update-click-status', + data: { + pushId: this.data.pushId, + }, + showMsg: false, + }) + } }) }, async getPopup() { diff --git a/src/patient/pages/qol/index.ts b/src/patient/pages/qol/index.ts index 8015e50..b296ef3 100644 --- a/src/patient/pages/qol/index.ts +++ b/src/patient/pages/qol/index.ts @@ -2,8 +2,20 @@ const app = getApp() Page({ data: {}, - onLoad() { - app.waitLogin({ type: [1] }).then(() => {}) + onLoad(options) { + app.waitLogin({ type: [1] }).then(() => { + const pushId = options.pushId + if (pushId) { + wx.ajax({ + method: 'POST', + url: '?r=xd/push-click/update-click-status', + data: { + pushId, + }, + showMsg: false, + }) + } + }) }, handleAdd() { wx.navigateTo({