Merge main into shccd159,保留 shccd159 配置(jjy/ccd 域名)
Made-with: Cursor
This commit is contained in:
@@ -204,7 +204,7 @@ export default {
|
||||
}
|
||||
|
||||
this.getUserPoints()
|
||||
this.loadUserInfo()
|
||||
await this.loadUserInfo()
|
||||
this.loadPointsList()
|
||||
},
|
||||
|
||||
@@ -347,7 +347,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
uni.navigateTo({
|
||||
url: '/pages/web-view/index?url=' + encodeURIComponent('https://xiashengjun.com/?#/pages/personal/index')
|
||||
url: '/pages/web-view/index?url=' + encodeURIComponent('https://jjy.fwxgpt.com/?#/pages/personal/index')
|
||||
})
|
||||
// #endif
|
||||
},
|
||||
@@ -449,7 +449,8 @@ export default {
|
||||
}),
|
||||
getIntegralList({
|
||||
page: this.page,
|
||||
limit: this.limit
|
||||
limit: this.limit,
|
||||
type: 2
|
||||
})
|
||||
])
|
||||
|
||||
@@ -472,8 +473,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