From ae10b928baf6b6d2f4fc302866f0fb2917b629f7 Mon Sep 17 00:00:00 2001 From: lzyyj Date: Tue, 26 Aug 2025 15:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=AB=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9B=E5=AD=97=E4=BD=93=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BC=98=E5=8C=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/components/face-model.vue | 6 +- src/views/adminHome.vue | 45 +++++-- src/views/home.vue | 16 +-- src/views/visitorRecord.vue | 215 +++++++++++++++++++++------------- 5 files changed, 176 insertions(+), 108 deletions(-) diff --git a/.env b/.env index 724e510..94c3629 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_APP_VERSION=1.2.20250825-12 \ No newline at end of file +VITE_APP_VERSION=1.2.20250825-21 \ No newline at end of file diff --git a/src/components/face-model.vue b/src/components/face-model.vue index d6dbb87..b904d97 100644 --- a/src/components/face-model.vue +++ b/src/components/face-model.vue @@ -96,7 +96,7 @@ const onClickSave = () => { ; font-size: .5333rem /* 40/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #222222; padding: .8533rem /* 64/75 */ @@ -127,7 +127,7 @@ const onClickSave = () => { line-height: 4.4rem /* 330/75 */ ; font-size: $size30; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #999999; @@ -156,7 +156,7 @@ const onClickSave = () => { line-height: .5333rem /* 40/75 */ ; font-size: $md-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #5F6583; text-align: center; diff --git a/src/views/adminHome.vue b/src/views/adminHome.vue index cdb07d8..9d7169e 100644 --- a/src/views/adminHome.vue +++ b/src/views/adminHome.vue @@ -2,7 +2,7 @@

Hello~{{ userName }}

-

呀 你又来审批预约了啊ㄟ( ▔, ▔ )ㄏ

+

呀 你又来审批预约了啊ㄟ( ▔, ▔ )ㄏ
v{{ appVersion }}

@@ -31,7 +31,7 @@ 查看全部
-
+
被拜访人:{{ item.visitingName }}
拜访时间:{{ item.hours }}
@@ -65,6 +65,7 @@ import {rulesForm, resetForm, rulesPhone} from '@/com/index' import {getToken, getVisitorRecord, getWhiteCode} from '@/api/admin.js' /* @data */ +const appVersion = ref(import.meta.env.VITE_APP_VERSION || '1.0.0') const router = useRouter() const store = useStore() const isLoading = ref(false) @@ -176,6 +177,26 @@ const initializeApp = () => { } }; +const onClickItem = (item) => { + // 检查instanceUrl是否存在且非空 + let instanceUrl; + + if (item.instanceUrl && item.instanceUrl.trim() !== '') { + instanceUrl = item.instanceUrl; + }else{ + instanceUrl = `https://aflow.dingtalk.com/dingtalk/mobile/homepage.htm?corpid=ding03f8e88dde9b426835c2f4657eb6378f&dd_share=false&showmenu=false&dd_progress=false&back=native&procInstId=${item.instanceId}&taskId=&swfrom=isv&dinghash=approval&dtaction=os&dd_from=corp#approval`; + } + dd.openLink({ + url: instanceUrl, + success: () => { + }, + fail: () => { + }, + complete: () => { + }, + }); +} + // 在组件挂载时调用 onMounted(() => { initializeApp(); @@ -207,7 +228,7 @@ onMounted(() => { ; font-size: .48rem /* 36/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #222222; } @@ -216,7 +237,7 @@ onMounted(() => { line-height: .48rem /* 36/75 */ ; font-size: $sm-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #FFFFFF; padding: 0 .6933rem /* 52/75 */ @@ -281,7 +302,7 @@ onMounted(() => { line-height: .64rem /* 48/75 */ ; font-size: $lg-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #222222; } @@ -291,7 +312,7 @@ onMounted(() => { ; font-size: .2667rem /* 20/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #5F6583; margin-top: .1067rem /* 8/75 */ @@ -327,14 +348,14 @@ onMounted(() => { ; font-size: .48rem /* 36/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #222222; span { // line-height: 36px; font-size: $sm-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #999999; } @@ -359,7 +380,7 @@ onMounted(() => { height: .6667rem /* 50/75 */ ; font-size: $md-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #222222; } @@ -375,7 +396,7 @@ onMounted(() => { border-radius: .1333rem /* 10/75 */ ; font-size: $md-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #999999; line-height: .72rem /* 54/75 */ @@ -403,7 +424,7 @@ onMounted(() => { ; color: #FF6643; font-size: $sm-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; text-align: center; @@ -436,7 +457,7 @@ onMounted(() => { } // font-size: 15px; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #999999; text-align: center; diff --git a/src/views/home.vue b/src/views/home.vue index ae64975..9ae0b53 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -274,7 +274,7 @@ if (token.value) { ; font-size: .7467rem /* 56/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #FFFFFF; padding: .8533rem /* 64/75 */ @@ -292,7 +292,7 @@ if (token.value) { line-height: .5333rem /* 40/75 */ ; font-size: $sm-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #FFFFFF; @@ -337,7 +337,7 @@ if (token.value) { .entering-center { flex: 1; font-size: $md-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #FFFFFF; @@ -367,7 +367,7 @@ if (token.value) { ; outline: none; font-size: $size26; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #202F44; border: none; @@ -396,7 +396,7 @@ if (token.value) { ; font-size: .5333rem /* 40/75 */ ; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; color: #222222; } @@ -438,7 +438,7 @@ if (token.value) { ; font-size: $md-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #5F6583; margin-bottom: .28rem /* 21/75 */ @@ -499,7 +499,7 @@ if (token.value) { line-height: .9867rem /* 74/75 */ ; font-size: $size30; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #4B4C4E; } @@ -515,7 +515,7 @@ if (token.value) { border: none; outline: none; font-size: $sm-size; - font-family: Source Han Sans CN, serif; + font-family: Source Han Sans CN, 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; color: #999999; box-sizing: border-box; diff --git a/src/views/visitorRecord.vue b/src/views/visitorRecord.vue index 40b3aa0..c2ee893 100644 --- a/src/views/visitorRecord.vue +++ b/src/views/visitorRecord.vue @@ -1,14 +1,15 @@