feat: add configurable points rules
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user