审核端添加版本号;字体设置优化;

This commit is contained in:
2025-08-26 15:48:42 +08:00
parent e4ec2f1c69
commit ae10b928ba
5 changed files with 176 additions and 108 deletions
+33 -12
View File
@@ -2,7 +2,7 @@
<div v-if="true" class='box'>
<header>
<h3>Hello~{{ userName }}</h3>
<h4>呀 你又来审批预约了啊ㄟ( ▔, ▔ )ㄏ</h4>
<h4>呀 你又来审批预约了啊ㄟ( ▔, ▔ )ㄏ<br/>v{{ appVersion }}</h4>
<div class="plate-box">
<div @click="onClickGo('/Invitation')" class="plate-button">
@@ -31,7 +31,7 @@
<span @click="onClickGo('/visitorRecord')">查看全部</span>
</h2>
<div class="content-ul">
<div v-for="item in recordArr" class="wait-list" :key="item.id">
<div v-for="item in recordArr" @click="onClickItem(item)" class="wait-list" :key="item.id">
<h5>被拜访人:{{ item.visitingName }}</h5>
<h5>拜访时间:{{ item.hours }}</h5>
<div class="apply-box">
@@ -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;