|
@@ -3,7 +3,7 @@
|
|
layout: 'default',
|
|
layout: 'default',
|
|
needLogin: true,
|
|
needLogin: true,
|
|
style: {
|
|
style: {
|
|
- navigationBarTitleText: 'Revenue Center',
|
|
|
|
|
|
+ navigationBarTitleText: '%income.title%',
|
|
navigationBarBackgroundColor: '#fff',
|
|
navigationBarBackgroundColor: '#fff',
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -16,6 +16,7 @@ import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging.js'
|
|
|
|
|
|
import { getEnum as _getEnum } from '@/api/common'
|
|
import { getEnum as _getEnum } from '@/api/common'
|
|
import { getAccountInfo as _getAccountInfo, envelopeList } from '@/api/wallet'
|
|
import { getAccountInfo as _getAccountInfo, envelopeList } from '@/api/wallet'
|
|
|
|
+import { t } from '@/locale'
|
|
import { formatNumber } from '@/utils'
|
|
import { formatNumber } from '@/utils'
|
|
import { toPage } from '@/utils/page'
|
|
import { toPage } from '@/utils/page'
|
|
|
|
|
|
@@ -81,7 +82,7 @@ onShow(() => {
|
|
<view class="mb-50rpx flex items-center justify-around text-center">
|
|
<view class="mb-50rpx flex items-center justify-around text-center">
|
|
<view>
|
|
<view>
|
|
<view class="text-22rpx">
|
|
<view class="text-22rpx">
|
|
- Total Earnings
|
|
|
|
|
|
+ {{ t('income.totalEarnings') }}
|
|
</view>
|
|
</view>
|
|
<view class="text-40rpx font-bold">
|
|
<view class="text-40rpx font-bold">
|
|
{{ formatNumber(walletInfo.totalEarnings) }}
|
|
{{ formatNumber(walletInfo.totalEarnings) }}
|
|
@@ -89,7 +90,7 @@ onShow(() => {
|
|
</view>
|
|
</view>
|
|
<view @click="toPage('/pages/wallet/myWallet')">
|
|
<view @click="toPage('/pages/wallet/myWallet')">
|
|
<view class="text-22rpx">
|
|
<view class="text-22rpx">
|
|
- Account Balance
|
|
|
|
|
|
+ {{ t('income.accountBalance') }}
|
|
</view>
|
|
</view>
|
|
<view class="relative text-40rpx font-bold">
|
|
<view class="relative text-40rpx font-bold">
|
|
<text>{{ formatNumber(walletInfo.balance) }}</text>
|
|
<text>{{ formatNumber(walletInfo.balance) }}</text>
|
|
@@ -101,7 +102,7 @@ onShow(() => {
|
|
<view>
|
|
<view>
|
|
<view class="text-22rpx">
|
|
<view class="text-22rpx">
|
|
<text class="mr-1px">
|
|
<text class="mr-1px">
|
|
- Settled Amount
|
|
|
|
|
|
+ {{ t('income.settledAmount') }}
|
|
</text>
|
|
</text>
|
|
<wd-icon name="help-circle" size="20rpx" />
|
|
<wd-icon name="help-circle" size="20rpx" />
|
|
</view>
|
|
</view>
|
|
@@ -113,7 +114,7 @@ onShow(() => {
|
|
<view>
|
|
<view>
|
|
<view class="text-22rpx">
|
|
<view class="text-22rpx">
|
|
<text class="mr-1px">
|
|
<text class="mr-1px">
|
|
- Pending Amount
|
|
|
|
|
|
+ {{ t('income.pendingAmount') }}
|
|
</text>
|
|
</text>
|
|
<wd-icon name="help-circle" size="20rpx" />
|
|
<wd-icon name="help-circle" size="20rpx" />
|
|
</view>
|
|
</view>
|
|
@@ -127,7 +128,7 @@ onShow(() => {
|
|
<view class="flex items-center justify-between">
|
|
<view class="flex items-center justify-between">
|
|
<view class="flex-[33.33%]">
|
|
<view class="flex-[33.33%]">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
- TD Earnings
|
|
|
|
|
|
+ {{ t('income.tdEarnings') }}
|
|
</view>
|
|
</view>
|
|
<view class="text-26rpx font-bold">
|
|
<view class="text-26rpx font-bold">
|
|
{{ formatNumber(walletInfo.tdeamings) }}
|
|
{{ formatNumber(walletInfo.tdeamings) }}
|
|
@@ -136,7 +137,7 @@ onShow(() => {
|
|
<wd-divider dashed custom-class="h-40rpx!" color="#A4A4A4" vertical />
|
|
<wd-divider dashed custom-class="h-40rpx!" color="#A4A4A4" vertical />
|
|
<view class="flex-[33.33%]">
|
|
<view class="flex-[33.33%]">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
- YD Earnings
|
|
|
|
|
|
+ {{ t('income.ydEarnings') }}
|
|
</view>
|
|
</view>
|
|
<view class="text-26rpx font-bold">
|
|
<view class="text-26rpx font-bold">
|
|
{{ formatNumber(walletInfo.ydeamings) }}
|
|
{{ formatNumber(walletInfo.ydeamings) }}
|
|
@@ -145,7 +146,7 @@ onShow(() => {
|
|
<wd-divider dashed custom-class="h-40rpx!" color="#A4A4A4" vertical />
|
|
<wd-divider dashed custom-class="h-40rpx!" color="#A4A4A4" vertical />
|
|
<view class="flex-[33.33%]">
|
|
<view class="flex-[33.33%]">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
<view class="text-22rpx text-#5B5B5B">
|
|
- MTD Earnings
|
|
|
|
|
|
+ {{ t('income.mtdEarnings') }}
|
|
</view>
|
|
</view>
|
|
<view class="text-26rpx font-bold">
|
|
<view class="text-26rpx font-bold">
|
|
{{ formatNumber(walletInfo.mtdeamings) }}
|
|
{{ formatNumber(walletInfo.mtdeamings) }}
|
|
@@ -156,37 +157,37 @@ onShow(() => {
|
|
<view class="mb-20rpx flex items-center justify-between gap-22rpx text-center text-32rpx">
|
|
<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)]" @click="toPage('/pages/myOrders/myOrders')">
|
|
<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">
|
|
<text class="pr-16rpx">
|
|
- My Group Data
|
|
|
|
|
|
+ {{ t('income.myGroupData') }}
|
|
</text>
|
|
</text>
|
|
<wd-icon name="chevron-right-circle" size="32rpx" />
|
|
<wd-icon name="chevron-right-circle" size="32rpx" />
|
|
</view>
|
|
</view>
|
|
<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 })">
|
|
<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">
|
|
<text class="pr-16rpx">
|
|
- Withdraw Now
|
|
|
|
|
|
+ {{ t('income.withdrawNow') }}
|
|
</text>
|
|
</text>
|
|
<wd-icon name="chevron-right-circle" size="32rpx" />
|
|
<wd-icon name="chevron-right-circle" size="32rpx" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<view class="mb-20rpx text-32rpx">
|
|
<view class="mb-20rpx text-32rpx">
|
|
- Revenue Record
|
|
|
|
|
|
+ {{ t('income.revenueRecord') }}
|
|
</view>
|
|
</view>
|
|
<view class="mb-20rpx">
|
|
<view class="mb-20rpx">
|
|
<wd-radio-group v-model="dayType" shape="button" @change="() => queryList(1, 20)">
|
|
<wd-radio-group v-model="dayType" shape="button" @change="() => queryList(1, 20)">
|
|
<wd-radio :value="1">
|
|
<wd-radio :value="1">
|
|
- DT
|
|
|
|
|
|
+ {{ t('income.filter.dt') }}
|
|
</wd-radio>
|
|
</wd-radio>
|
|
<wd-radio :value="2">
|
|
<wd-radio :value="2">
|
|
- YT
|
|
|
|
|
|
+ {{ t('income.filter.yt') }}
|
|
</wd-radio>
|
|
</wd-radio>
|
|
<wd-radio :value="3">
|
|
<wd-radio :value="3">
|
|
- L7D
|
|
|
|
|
|
+ {{ t('income.filter.l7d') }}
|
|
</wd-radio>
|
|
</wd-radio>
|
|
<wd-radio :value="4">
|
|
<wd-radio :value="4">
|
|
- MTD
|
|
|
|
|
|
+ {{ t('income.filter.mtd') }}
|
|
</wd-radio>
|
|
</wd-radio>
|
|
<wd-radio :value="5">
|
|
<wd-radio :value="5">
|
|
- YTD
|
|
|
|
|
|
+ {{ t('income.filter.ytd') }}
|
|
</wd-radio>
|
|
</wd-radio>
|
|
</wd-radio-group>
|
|
</wd-radio-group>
|
|
</view>
|
|
</view>
|