Compare commits

...

1 Commits

3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ const steps: GuideStep[] = [
tab: 'home',
title: '新建每日签到任务',
targets: ['[data-guide="home-create-task"]'],
descByKind: () => '点击蓝色的「+ 新的签到任务」按钮,选择任务名称(如 晚签到),然后填好对应签到信息并保存,任务就创建好了。',
descByKind: () => '点击蓝色的「+ 新的打卡任务」按钮,选择任务名称(如 晚签到),然后填好对应签到信息并保存,任务就创建好了。',
},
{
tab: 'home',
+3 -3
View File
@@ -252,8 +252,8 @@ onUnmounted(() => {
<template>
<div class="flex flex-col h-full">
<!-- 顶部用户信息栏(仅在首页显示) -->
<div v-if="activeTab === 'home'" class="flex-shrink-0 bg-gradient-to-r from-blue-500 to-blue-600 text-white px-4 pt-3 pb-3">
<!-- 顶部用户信息栏(首页与请/销假页显示,两页保持一致) -->
<div v-if="activeTab === 'home' || activeTab === 'leave'" class="flex-shrink-0 bg-gradient-to-r from-blue-500 to-blue-600 text-white px-4 pt-3 pb-3">
<div v-if="userInfo" class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-white/20 flex items-center justify-center flex-shrink-0 overflow-hidden">
<img v-show="userInfo.avatar && !avatarFailed" :src="userInfo.avatar" class="w-full h-full object-cover" @error="avatarFailed = true" />
@@ -263,7 +263,7 @@ onUnmounted(() => {
<p class="font-semibold text-sm truncate">{{ userInfo.realName || userInfo.username }}</p>
<p class="text-xs text-white/70 truncate">{{ userInfo.schoolName }}</p>
</div>
<!-- 公告铃铛(仅首页显示) -->
<!-- 公告铃铛(首页与请/销假页均显示) -->
<button class="relative w-9 h-9 rounded-full bg-white/15 flex items-center justify-center hover:bg-white/25 transition-colors flex-shrink-0" @click="openAnnouncementPanel">
<Bell class="w-5 h-5 text-white" />
<span v-if="totalUnread > 0" class="absolute -top-0.5 -right-0.5 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[9px] font-bold flex items-center justify-center leading-none">{{ totalUnread > 99 ? '99+' : totalUnread }}</span>
+6 -6
View File
@@ -863,7 +863,7 @@ function getGPSLocation(source: string) {
<div class="bg-white rounded-xl border border-gray-100 p-4 shadow-sm">
<div class="flex items-center justify-between mb-3">
<div>
<p class="text-sm font-semibold text-gray-900">签到管理</p>
<p class="text-sm font-semibold text-gray-900">打卡管理</p>
<p class="text-xs text-gray-400 mt-0.5">创建并执行每日签到任务</p>
</div>
<div class="w-10 h-10 rounded-full bg-blue-50 flex items-center justify-center">
@@ -876,7 +876,7 @@ function getGPSLocation(source: string) {
class="w-full flex items-center justify-center gap-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg py-2.5 text-sm font-medium transition-colors"
>
<Plus class="w-4 h-4" />
新的签到任务
新的打卡任务
</button>
</div>
@@ -906,7 +906,7 @@ function getGPSLocation(source: string) {
<!-- 任务列表(不显示 WID) -->
<div data-guide="home-task-list" class="bg-white rounded-xl border border-gray-100 p-4 shadow-sm">
<h3 class="text-sm font-semibold text-gray-900 mb-3">签到任务</h3>
<h3 class="text-sm font-semibold text-gray-900 mb-3">打卡任务</h3>
<div v-if="tasks.length > 0" class="space-y-2">
<div
@@ -997,14 +997,14 @@ function getGPSLocation(source: string) {
<div v-else data-guide="home-task-empty" class="flex items-center justify-center py-8">
<div class="text-center">
<ListTodo class="w-8 h-8 text-gray-200 mx-auto mb-2" />
<p class="text-xs text-gray-400">暂无签到任务</p>
<p class="text-xs text-gray-400">暂无打卡任务</p>
</div>
</div>
</div>
<!-- 任务日志列表 -->
<div class="bg-white rounded-xl border border-gray-100 p-4 shadow-sm mt-4">
<h3 class="text-sm font-semibold text-gray-900 mb-3">执行日志</h3>
<h3 class="text-sm font-semibold text-gray-900 mb-3">打卡日志</h3>
<div v-if="loadingLogs" class="flex items-center justify-center py-6">
<LoaderCircle class="w-5 h-5 text-blue-400 animate-spin" />
@@ -1051,7 +1051,7 @@ function getGPSLocation(source: string) {
</div>
<div v-else class="flex items-center justify-center py-6">
<p class="text-xs text-gray-400">暂无执行日志</p>
<p class="text-xs text-gray-400">暂无打卡日志</p>
</div>
</div>