pooint pages
This commit is contained in:
@@ -204,7 +204,7 @@ export default {
|
||||
}
|
||||
|
||||
this.getUserPoints()
|
||||
this.loadUserInfo()
|
||||
await this.loadUserInfo()
|
||||
this.loadPointsList()
|
||||
},
|
||||
|
||||
@@ -447,7 +447,8 @@ export default {
|
||||
}),
|
||||
getIntegralList({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
limit: this.limit,
|
||||
type: 2
|
||||
})
|
||||
])
|
||||
|
||||
@@ -470,8 +471,8 @@ export default {
|
||||
|
||||
// 处理积分明细(使用 getIntegralList,需要过滤出 type === 2 的支出记录)
|
||||
if (pointsRes.code === 0 && pointsRes.data) {
|
||||
// 过滤出支出记录(type === 2)
|
||||
const expenseRecords = (pointsRes.data.list || []).filter(item => item.type === 2)
|
||||
// 过滤出支出记录(type === 2),兼容后端返回数字或字符串
|
||||
const expenseRecords = (pointsRes.data.list || []).filter(item => Number(item.type) === 2)
|
||||
pointsList = expenseRecords.map(item => ({
|
||||
id: `points_${item.id}`,
|
||||
source: 'points', // 标记来源:积分(与模板中的判断保持一致)
|
||||
|
||||
Reference in New Issue
Block a user