|
@@ -13,6 +13,7 @@
|
|
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app' // 必须导入需要用到的页面生命周期(即使在当前页面上没有直接使用到)
|
|
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app' // 必须导入需要用到的页面生命周期(即使在当前页面上没有直接使用到)
|
|
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
|
|
+import { getEnum as _getEnum } from '@/api/common'
|
|
import { getWalletAccountInfo, unpaidOrder, walletFlowList } from '@/api/wallet'
|
|
import { getWalletAccountInfo, unpaidOrder, walletFlowList } from '@/api/wallet'
|
|
import DialogBox from '@/components/DialogBox/DialogBox.vue'
|
|
import DialogBox from '@/components/DialogBox/DialogBox.vue'
|
|
import { DialogUtils } from '@/components/DialogBox/utils'
|
|
import { DialogUtils } from '@/components/DialogBox/utils'
|
|
@@ -93,7 +94,13 @@ async function getUnpaidOrder() {
|
|
console.log(error)
|
|
console.log(error)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+const typeEnum = ref<any[]>([])
|
|
|
|
+async function getEnum() {
|
|
|
|
+ const res = await _getEnum({ id: 1 })
|
|
|
|
+ typeEnum.value = res.data
|
|
|
|
+}
|
|
onShow(() => {
|
|
onShow(() => {
|
|
|
|
+ getEnum()
|
|
getWalletInfo()
|
|
getWalletInfo()
|
|
getUnpaidOrder()
|
|
getUnpaidOrder()
|
|
})
|
|
})
|
|
@@ -141,7 +148,7 @@ onShow(() => {
|
|
{{ $t('wallet.record') }}
|
|
{{ $t('wallet.record') }}
|
|
</view>
|
|
</view>
|
|
<view class="mb-20rpx">
|
|
<view class="mb-20rpx">
|
|
- <wd-radio-group v-model="dayType" shape="button">
|
|
|
|
|
|
+ <wd-radio-group v-model="dayType" shape="button" @change="() => getWalletFlowList(1, 20)">
|
|
<wd-radio :value="1">
|
|
<wd-radio :value="1">
|
|
DT
|
|
DT
|
|
</wd-radio>
|
|
</wd-radio>
|
|
@@ -166,17 +173,17 @@ onShow(() => {
|
|
>
|
|
>
|
|
<view class="mb-8rpx flex items-center justify-between text-24rpx">
|
|
<view class="mb-8rpx flex items-center justify-between text-24rpx">
|
|
<text class="truncate">
|
|
<text class="truncate">
|
|
- Group Buying Reward:PPB123456789Reward:PPB123456789Reward:PPB123456789
|
|
|
|
|
|
+ Order ID:{{ item.bizNo }}
|
|
</text>
|
|
</text>
|
|
<text class="flex-shrink-0 pl-16rpx">
|
|
<text class="flex-shrink-0 pl-16rpx">
|
|
- ৳ 8
|
|
|
|
|
|
+ {{ item.type === 1 ? '-' : '+' }}৳{{ formatNumber(item.amount) }}
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<view class="flex items-center justify-between text-22rpx">
|
|
<view class="flex items-center justify-between text-22rpx">
|
|
<text class="text-#5B5B5B">
|
|
<text class="text-#5B5B5B">
|
|
- 2025/05/05 12:30:30
|
|
|
|
|
|
+ {{ item.createTime }}
|
|
</text>
|
|
</text>
|
|
- <wd-text type="success" text="Completed" />
|
|
|
|
|
|
+ <wd-text :type="item.bizType === 8001 || item.bizType === 9001 ? 'primary' : 'success'" :text="item.bizType === 8001 || item.bizType === 9001 ? typeEnum.find(i => i.code === item.bizType)?.name : 'Completed'" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -205,8 +212,12 @@ onShow(() => {
|
|
|
|
|
|
.wd-radio__label {
|
|
.wd-radio__label {
|
|
width: 100rpx !important;
|
|
width: 100rpx !important;
|
|
- height: 40rpx !important;
|
|
|
|
|
|
+ min-width: 100rpx !important;
|
|
|
|
+ max-width: 100rpx !important;
|
|
|
|
+ height: 36rpx !important;
|
|
|
|
+ line-height: 36rpx !important;
|
|
padding: 0 !important;
|
|
padding: 0 !important;
|
|
|
|
+ font-size: 22rpx !important;
|
|
background: rgba(255, 255, 255, 0.2) !important;
|
|
background: rgba(255, 255, 255, 0.2) !important;
|
|
border-color: rgba(151, 151, 151, 0.2) !important;
|
|
border-color: rgba(151, 151, 151, 0.2) !important;
|
|
}
|
|
}
|