This commit is contained in:
parent
1f165d28e2
commit
e84f864229
|
|
@ -266,7 +266,7 @@ onMounted(() => {
|
||||||
const handleCommand = (command: string) => {
|
const handleCommand = (command: string) => {
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'profile':
|
case 'profile':
|
||||||
router.push('/profile/personal-center')
|
router.push('/profile/personalCenter')
|
||||||
break
|
break
|
||||||
case 'password':
|
case 'password':
|
||||||
router.push('/user/change-password')
|
router.push('/user/change-password')
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,23 @@
|
||||||
<div class="wallet-grid">
|
<div class="wallet-grid">
|
||||||
<div class="wallet-item">
|
<div class="wallet-item">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.feeHandling') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.feeHandling') }}</span>
|
||||||
<span class="wallet-value">{{ walletInfo.commission_fee_handling || '0.00'}}</span>
|
<span class="wallet-value">{{ walletInfo.commission_fee_handling || '0.00' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wallet-item">
|
<div class="wallet-item">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.pointDiff') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.pointDiff') }}</span>
|
||||||
<span class="wallet-value">{{ walletInfo.commission_point_diff || '0.00'}}</span>
|
<span class="wallet-value">{{ walletInfo.commission_point_diff || '0.00' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wallet-item">
|
<div class="wallet-item">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.service') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.service') }}</span>
|
||||||
<span class="wallet-value">{{ walletInfo.service || '0.00'}}</span>
|
<span class="wallet-value">{{ walletInfo.service || '0.00' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wallet-item" v-if="showRiskFee">
|
<div class="wallet-item" v-if="showRiskFee">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.risk') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.risk') }}</span>
|
||||||
<span class="wallet-value">{{ walletInfo.risk || '0.00'}}</span>
|
<span class="wallet-value">{{ walletInfo.risk || '0.00' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wallet-item">
|
<div class="wallet-item">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.profit') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.profit') }}</span>
|
||||||
<span class="wallet-value">{{ walletInfo.closing_profit || '0.00'}}</span>
|
<span class="wallet-value">{{ walletInfo.closing_profit || '0.00' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="wallet-item" v-if="roleId >= 5">
|
<div class="wallet-item" v-if="roleId >= 5">
|
||||||
<span class="wallet-label">{{ t('withdraw.wallet.available') }}</span>
|
<span class="wallet-label">{{ t('withdraw.wallet.available') }}</span>
|
||||||
|
|
@ -145,7 +145,7 @@
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button @click="handleBack">{{ t('common.cancel') }}</el-button>
|
<el-button @click="handleBack">{{ t('common.cancel') }}</el-button>
|
||||||
<el-button type="primary" :loading="submitLoading" @click="handleSubmit">{{ t('withdraw.dialog.confirmWithdraw')
|
<el-button type="primary" :loading="submitLoading" @click="handleSubmit">{{ t('withdraw.dialog.confirmWithdraw')
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
@ -405,7 +405,7 @@ const initData = async () => {
|
||||||
if (res) {
|
if (res) {
|
||||||
walletInfo.value = {
|
walletInfo.value = {
|
||||||
commission_fee_handling: res.commission_fee_handling || '0',
|
commission_fee_handling: res.commission_fee_handling || '0',
|
||||||
commission_point_diff: res.commission_point_diff || '0',
|
commission_point_diff: ''+(res.commission_point_diff - res.freeze||0) || '0',
|
||||||
service: res.service || '0',
|
service: res.service || '0',
|
||||||
risk: res.risk || '0',
|
risk: res.risk || '0',
|
||||||
closing_profit: res.closing_profit || '0',
|
closing_profit: res.closing_profit || '0',
|
||||||
|
|
@ -467,7 +467,7 @@ const calculateWithdraw = () => {
|
||||||
} else {
|
} else {
|
||||||
original = parseFloat(walletInfo.value[field] || '0')
|
original = parseFloat(walletInfo.value[field] || '0')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (original <= 0) continue
|
if (original <= 0) continue
|
||||||
|
|
||||||
const deducted = Math.min(remaining, original).toFixed(2)
|
const deducted = Math.min(remaining, original).toFixed(2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue