Compare commits

...

3 Commits

Author SHA1 Message Date
dzl
52db033d58 添加了默认数据 2025-09-09 15:14:26 +08:00
dzl
f4c49f537b 更改默认条数显示 2025-09-09 14:40:20 +08:00
dzl
ea06c56c46 更改报错 2025-09-09 11:11:37 +08:00
3 changed files with 31 additions and 2 deletions

View File

@@ -187,6 +187,33 @@ const loadBeansHistory = async () => {
beansHistory.value = data.data.history
pagination.total = data.data.total
} catch (error) {
beansHistory.value = [{
id: 1,
username: 'test1',
type: 'register',
beans: 100,
balance_after: 100,
description: '注册奖励',
created_at: '2025-09-09 00:00:00'
},
{
id: 2,
username: 'test2',
type: 'purchase',
beans: -100,
balance_after: 0,
description: '商品兑换',
created_at: '2025-09-09 00:00:00'
},
{
id: 3,
username: 'test3',
type: 'refund',
beans: 100,
balance_after: 100,
description: '订单退款',
created_at: '2025-09-09 00:00:00'
}]
ElMessage.error('加载融豆历史失败')
} finally {
loading.value = false

View File

@@ -702,7 +702,9 @@ onMounted(() => {
.account-info,
.payment-info {
space-y: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.info-item {

View File

@@ -229,7 +229,7 @@ const currentUser = ref({})
// 分页数据
const pagination = reactive({
page: 1,
limit: 10,
limit: 20,
total: 0
})