更新管理后台布局,优化菜单项标签,新增支付配置项。同时,调整API响应字段命名,确保一致性,提升代码可读性和维护性。
This commit is contained in:
@@ -34,7 +34,7 @@ Page({
|
||||
amount: (item.amount != null ? item.amount : 0).toFixed(2),
|
||||
status: this.statusText(item.status),
|
||||
statusRaw: item.status,
|
||||
created_at: item.created_at ? this.formatDate(item.created_at) : '--'
|
||||
createdAt: (item.createdAt ?? item.created_at) ? this.formatDate(item.createdAt ?? item.created_at) : '--'
|
||||
}))
|
||||
this.setData({ list, loading: false })
|
||||
} else {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<view class="item" wx:for="{{list}}" wx:key="id">
|
||||
<view class="item-left">
|
||||
<text class="amount">¥{{item.amount}}</text>
|
||||
<text class="time">{{item.created_at}}</text>
|
||||
<text class="time">{{item.createdAt}}</text>
|
||||
</view>
|
||||
<text class="status status-{{item.statusRaw}}">{{item.status}}</text>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user