feat: add configurable points rules

This commit is contained in:
hajimi
2026-08-03 00:32:23 +08:00
parent 79e9ee2790
commit 7f7dd71c15
4 changed files with 29 additions and 6 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
//菜单主题类型
export enum AgreementEnum {
PRIVACY = 'privacy',
SERVICE = 'service'
SERVICE = 'service',
POINTS_RULE = 'points_rule'
}
@@ -124,7 +124,7 @@
<text>当前余额 </text>
<text class="is-primary">{{ userPointsText }}</text>
</view>
<view class="detail-unlock-card__link" @tap="openPoints">
<view class="detail-unlock-card__link" @tap="openPointsRule">
<text>积分规则</text>
<u-icon name="arrow-right" size="24" color="#1468f5" />
</view>
@@ -257,6 +257,7 @@ import {
import { openChat } from '@/api/chat'
import { useAppStore } from '@/stores/app'
import { useUserStore } from '@/stores/user'
import { AgreementEnum } from '@/enums/agreementEnums'
import { getToken } from '@/utils/auth'
const LIUHE_TAGS = ['旧澳六合', '新澳六合']
@@ -810,9 +811,8 @@ const handleAiAnalysisBtn = () => {
uni.navigateTo({ url: `/pages/ai_analysis/ai_analysis?type=post&id=${postId.value}&title=${title}` })
}
const openPoints = () => {
if (!checkLogin()) return
uni.navigateTo({ url: '/packages/pages/points_log/points_log' })
const openPointsRule = () => {
uni.navigateTo({ url: `/pages/agreement/agreement?type=${AgreementEnum.POINTS_RULE}` })
}
const goUserProfile = (userId: number) => {