From 064c13c7b0328d5fb269bda7d8c17f9baef3001e Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 25 Sep 2025 16:30:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=AE=BF=E5=AE=A2=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E7=9A=84=E5=90=8C=E6=84=8F=E5=92=8C=E6=8B=92=E7=BB=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/env.d.ts | 10 +- src/pages/integrated/visitor/detail.vue | 29 +++- .../integrated/visitor/invitation-record.vue | 146 +++++++++--------- src/pages/tabbar/integrated.vue | 10 -- 4 files changed, 106 insertions(+), 89 deletions(-) diff --git a/src/env.d.ts b/src/env.d.ts index d27eb5a..cffc168 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,8 +1,8 @@ /// -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types - const component: DefineComponent<{}, {}, any> - export default component +declare module "*.vue" { + import { DefineComponent } from "vue" + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + const component: DefineComponent + export default component } diff --git a/src/pages/integrated/visitor/detail.vue b/src/pages/integrated/visitor/detail.vue index be74412..f320cdd 100644 --- a/src/pages/integrated/visitor/detail.vue +++ b/src/pages/integrated/visitor/detail.vue @@ -2,8 +2,21 @@ - - {{ alertList[detail.checkStatus].text }} + + {{ alertListType2[detail.checkStatus].text }} + + + {{ alertListType1[detail.checkStatus].text }} 访客信息 @@ -16,7 +29,7 @@ {{ detail.mobile }} - 来访公司名称 + 访客公司名称 {{ detail.companyName }} @@ -75,12 +88,18 @@ import { ref } from "vue" import { onLoad } from "@dcloudio/uni-app" import { invitationApi } from "@/sheep/api" -const alertList = { - 1: { color: "#2db7f5", text: "访客未接受邀约" }, +const alertListType2 = { + 1: { color: "#2db7f5", text: "访客还未接受邀约" }, 2: { color: "#52c41a", text: "访客待到访" }, 3: { color: "#f5a623", text: "访客拒绝了邀约" }, 5: { color: "#f5222d", text: "您取消了邀约" }, } +const alertListType1 = { + 1: { color: "#2db7f5", text: "您还未接受访客申请" }, + 2: { color: "#52c41a", text: "访客待到访" }, + 3: { color: "#f5a623", text: "您拒绝了访客申请" }, + 5: { color: "#f5222d", text: "访客申请者取消了申请" }, +} const detail = ref({}) const visitorReasonList = ref<{ title: string; id: string }[]>([]) diff --git a/src/pages/integrated/visitor/invitation-record.vue b/src/pages/integrated/visitor/invitation-record.vue index 7883819..b4bd7b7 100644 --- a/src/pages/integrated/visitor/invitation-record.vue +++ b/src/pages/integrated/visitor/invitation-record.vue @@ -15,7 +15,7 @@ @scroll="pageHook.scroll" >