diff --git a/src/assets/images/icon-1.png b/src/assets/images/icon-1.png new file mode 100644 index 0000000..d29b7e5 Binary files /dev/null and b/src/assets/images/icon-1.png differ diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 9e8c363..7312a33 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -63,6 +63,7 @@ const newsList = ref([ }, ]); +const router = useRouter(); // 快捷入口 const quickActions = ref([ { id: 1, name: "签到", icon: calendarOutline, color: "#c32120" }, @@ -72,8 +73,14 @@ const quickActions = ref([ ]); function handleQuickAction(action: any) { - console.log("点击快捷入口:", action.name); - // TODO: 实现各个快捷入口的功能 + switch (action.id) { + case 1: + router.push("/signup"); + break; + case 2: + console.log("团队中心"); + break; + } } function handleAnnouncementClick(announcement: any) { diff --git a/src/views/signup/index.vue b/src/views/signup/index.vue index 27b679a..912a516 100644 --- a/src/views/signup/index.vue +++ b/src/views/signup/index.vue @@ -1,32 +1,196 @@ + - - 初心如磐 使命如坚 - - - 讲党性/树新风/作表率/当先锋 - - - 红色印记,燃动今日的奋斗之光 - - - 已连续 53 天签到 - + + + + + + + + 初心如磐 使命如坚 + + + + + 讲党性 / 树新风 / 作表率 / 当先锋 + + + 红色印记,燃动今日的奋斗之光 + + + - - - 立即签到 - + + + + + + + 连续签到 + + + {{ signupInfo.consecutiveDays }} + + + 天 + + + + + 累计签到 + + + {{ signupInfo.totalDays }} + + + 天 + + + + + + + + {{ signupInfo.isSignedToday ? '今日已签到' : '立即签到' }} + + + + + + + + + + + 本周签到 + + + + + + + + {{ day.date.split('-')[1] }} + + {{ day.day }} + + + + + + + + + + + + 签到奖励 + + + + + + + + 连续签到7天 + + +10积分 + + + + + 连续签到30天 + + +50积分 + + + + + 连续签到60天 + + +100积分 + + + + - +