From b302103c15cbdbb6ebde957b8a1e2287a3e2ca42 Mon Sep 17 00:00:00 2001
From: zzc <1761997216@qq.com>
Date: Sat, 28 Feb 2026 20:31:45 +0800
Subject: [PATCH] fix: lucky page
---
pages/index/index.vue | 115 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 114 insertions(+), 1 deletion(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 2d96734..14758f0 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -20,9 +20,19 @@
{{ userInfo.nickName || "点击登录" }}
-
+
积分
{{ userPoints }}
+
@@ -238,6 +248,40 @@
+
+
+
+
+
+
+
+
+ 分享好友:+10积分 (每日限3次)
+
+
+
+ 每日登录:+20积分
+
+
+
+ 每日签到:+40积分
+
+
+
+ 观看广告:+50积分
+
+
+
+
+
@@ -269,6 +313,7 @@ const statusBarHeight = ref(getStatusBarHeight());
const loginPopupRef = ref(null);
const luckyPopupRef = ref(null);
const rewardAdRef = ref(null);
+const rulesPopup = ref(null);
const userInfo = computed(() => userStore?.userInfo || {});
const isLoggedIn = computed(() => !!userStore.userInfo.nickName);
const userPoints = computed(() => userStore.userInfo.points || 0);
@@ -548,6 +593,14 @@ onShareTimeline(() => {
title: "开启你的2026新春好运!",
};
});
+
+const showPointsRules = () => {
+ rulesPopup.value.open();
+};
+
+const closeRules = () => {
+ rulesPopup.value.close();
+};