feat:页面修改

This commit is contained in:
weiwei committed 2025-09-16 12:03:32 +08:00
1 parent 181f305f91
commit bc24d80a33
3 files changed
+37 -38

No files matched your search

+11 -11
View File
@@ -9,7 +9,7 @@
<div v-for="item in services" :key="item.name" class="service-item" @click="goPage(item)">
<div class="service-icon-wrapper">
<image :src="item.icon" class="service-icon" />
<view v-if="item.name === 'todo' && todoCount > 0" class="badge">{{ todoCount > 99 ? '99+' : todoCount }}</view>
<view v-if="item.name === 'todo' && todoCount > 0" class="badge">{{ todoCount > 99 ? "99+" : todoCount }}</view>
</div>
<div class="service-label">{{ item.label }}</div>
</div>
@@ -80,7 +80,7 @@ async function fetchTodoCount() {
todoCount.value = responseData.data.total || 0
}
} catch (error) {
console.error('获取待办数量失败:', error)
console.error("获取待办数量失败:", error)
todoCount.value = 0
}
}
@@ -96,15 +96,15 @@ onMounted(() => {
function goPage(item) {
// 访客邀约功能正在开发中
if (item.name === 'visitor') {
uni.showToast({
title: '访客邀约功能正在开发中',
icon: 'none',
duration: 2000
})
return
}
// if (item.name === 'visitor') {
// uni.showToast({
// title: '访客邀约功能正在开发中',
// icon: 'none',
// duration: 2000
// })
// return
// }
if (item.url) {
uni.navigateTo({ url: item.url })
}