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(); +};