diff --git a/App.vue b/App.vue index 21114c2..ee4b590 100644 --- a/App.vue +++ b/App.vue @@ -2,15 +2,18 @@ import dbStore from "@/store/db"; import accountStore from "@/store/account"; import { globalUnreadListenerManager } from "@/utils/global-unread-listener.js"; +import { initApiContextFromAppOptions } from "@/utils/api-base-config"; export default { - async onLaunch() { + async onLaunch(options) { + initApiContextFromAppOptions(options); console.log("App Launch: "); // 获取 openId 并初始化 IM // await this.initIMOnLaunch(); }, - onShow: function () { + onShow: function (options) { + initApiContextFromAppOptions(options); const db = dbStore(); if (db && typeof db.getJobs === "function") { db.getJobs(); diff --git a/pages/health/list.vue b/pages/health/list.vue index abfb968..b0dd924 100644 --- a/pages/health/list.vue +++ b/pages/health/list.vue @@ -8,7 +8,7 @@ - {{ tempType[type] || '全部' }} + {{ selectedTypeLabel }} @@ -36,12 +36,11 @@ {{ i.date }} - 门诊信息 - 住院信息 - 体检报告 + + {{ getTemplateLabel(i.medicalType) }} + 外院 @@ -81,9 +80,25 @@ + + + + {{ templateSelectorTitle }} + 取消 + + + + {{ item.label }} + + + + +