|
@@ -1,6 +1,7 @@
|
|
|
<route lang="json5">
|
|
|
{
|
|
|
layout: 'default',
|
|
|
+ needLogin: true,
|
|
|
style: {
|
|
|
navigationBarTitleText: 'Revenue Center',
|
|
|
navigationBarBackgroundColor: '#fff',
|
|
@@ -16,6 +17,7 @@ import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
|
|
|
|
import { getWalletInfo as _getWalletInfo, envelopeList } from '@/api/wallet'
|
|
|
import { formatNumber } from '@/utils'
|
|
|
+import { toPage } from '@/utils/page'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'Income', // 收益
|
|
@@ -72,7 +74,7 @@ onShow(() => {
|
|
|
{{ formatNumber(walletInfo.totalEarnings) }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view>
|
|
|
+ <view @click="toPage('/pages/wallet/myWallet')">
|
|
|
<view class="text-22rpx">
|
|
|
Account Balance
|
|
|
</view>
|
|
@@ -139,13 +141,13 @@ onShow(() => {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="mb-20rpx flex items-center justify-between gap-22rpx text-center text-32rpx">
|
|
|
- <view class="flex-1 rounded-16rpx bg-[rgba(var(--wot-color-theme-rgb),0.5)] py-32rpx shadow-[4rpx_4rpx_8rpx_0rpx_rgba(0,0,0,0.5)]">
|
|
|
+ <view class="flex-1 rounded-16rpx bg-[rgba(var(--wot-color-theme-rgb),0.5)] py-32rpx shadow-[4rpx_4rpx_8rpx_0rpx_rgba(0,0,0,0.5)]" @click="toPage('/pages/myOrders/myOrders')">
|
|
|
<text class="pr-16rpx">
|
|
|
My Group Data
|
|
|
</text>
|
|
|
<wd-icon name="chevron-right-circle" size="32rpx" />
|
|
|
</view>
|
|
|
- <view class="flex-1 rounded-16rpx bg-#FEE750/50 py-32rpx shadow-[4rpx_4rpx_8rpx_0rpx_rgba(0,0,0,0.5)]">
|
|
|
+ <view class="flex-1 rounded-16rpx bg-#FEE750/50 py-32rpx shadow-[4rpx_4rpx_8rpx_0rpx_rgba(0,0,0,0.5)]" @click="toPage('/pages/wallet/withdraw', { balance: walletInfo.balance, type: 2 })">
|
|
|
<text class="pr-16rpx">
|
|
|
Withdraw Now
|
|
|
</text>
|
|
@@ -157,7 +159,7 @@ onShow(() => {
|
|
|
Revenue Record
|
|
|
</view>
|
|
|
<view class="mb-20rpx">
|
|
|
- <wd-radio-group v-model="dayType" shape="button">
|
|
|
+ <wd-radio-group v-model="dayType" shape="button" @change="() => queryList(1, 20)">
|
|
|
<wd-radio :value="1">
|
|
|
DT
|
|
|
</wd-radio>
|
|
@@ -177,20 +179,20 @@ onShow(() => {
|
|
|
</view>
|
|
|
<view class="rounded-16rpx bg-white px-20rpx">
|
|
|
<view
|
|
|
- v-for="i in dataList" :key="i" class="py-20rpx"
|
|
|
- :class="{ 'border-b-1 border-b-solid border-b-#E1E1E1': i !== 3 }"
|
|
|
+ v-for="(item, index) in dataList" :key="item.id" class="py-20rpx"
|
|
|
+ :class="{ 'border-b-1 border-b-solid border-b-#E1E1E1': index !== dataList.length - 1 }"
|
|
|
>
|
|
|
<view class="mb-8rpx flex items-center justify-between text-24rpx">
|
|
|
<text class="truncate">
|
|
|
- Group Buying Reward:PPB123456789Reward:PPB123456789Reward:PPB123456789
|
|
|
+ Group Buying Reward:PPB123456789
|
|
|
</text>
|
|
|
<text class="flex-shrink-0 pl-16rpx">
|
|
|
- ৳ 8
|
|
|
+ ৳ {{ formatNumber(item.amount) }}
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="flex items-center justify-between text-22rpx">
|
|
|
<text class="text-#5B5B5B">
|
|
|
- 2025/05/05 12:30:30
|
|
|
+ {{ item.updateTime }}
|
|
|
</text>
|
|
|
<wd-text type="success" text="Completed" />
|
|
|
</view>
|