更新管理后台布局,优化菜单项标签,新增支付配置项。同时,调整API响应字段命名,确保一致性,提升代码可读性和维护性。
This commit is contained in:
@@ -157,12 +157,12 @@ Page({
|
||||
id: item.id,
|
||||
amount: (item.amount || 0).toFixed(2),
|
||||
package: item.package,
|
||||
created_at: item.created_at ? this.formatDateMy(item.created_at) : '--'
|
||||
createdAt: (item.createdAt ?? item.created_at) ? this.formatDateMy(item.createdAt ?? item.created_at) : '--'
|
||||
}))
|
||||
this.setData({
|
||||
pendingConfirmList: list,
|
||||
withdrawMchId: res.data.mch_id || '',
|
||||
withdrawAppId: res.data.app_id || ''
|
||||
withdrawMchId: res.data.mchId ?? res.data.mch_id ?? '',
|
||||
withdrawAppId: res.data.appId ?? res.data.app_id ?? ''
|
||||
})
|
||||
} else {
|
||||
this.setData({ pendingConfirmList: [], withdrawMchId: '', withdrawAppId: '' })
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
<view class="pending-confirm-item" wx:for="{{pendingConfirmList}}" wx:key="id">
|
||||
<view class="pending-confirm-info">
|
||||
<text class="pending-confirm-amount">¥{{item.amount}}</text>
|
||||
<text class="pending-confirm-time">{{item.created_at}}</text>
|
||||
<text class="pending-confirm-time">{{item.createdAt}}</text>
|
||||
</view>
|
||||
<view class="pending-confirm-btn" bindtap="confirmReceive" data-index="{{index}}">确认收款</view>
|
||||
</view>
|
||||
|
||||
@@ -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