|
@@ -39,16 +39,12 @@
|
|
|
Send Giveaway
|
|
|
</div>
|
|
|
<div class="btn-wrapper">
|
|
|
- <div class="button "
|
|
|
- v-if="currencyInfo.currencyCode != 'USD'"
|
|
|
- @click="clickDeposit">Deposit</div>
|
|
|
+ <div class="button" @click="clickDeposit">Deposit</div>
|
|
|
<div class="button" @click="clickWithdraw">Withdrawal</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <div class="btn deposit-btn"
|
|
|
- v-if="currencyInfo.currencyCode != 'USD'"
|
|
|
- @click="clickDeposit">Deposit</div>
|
|
|
+ <div class="btn deposit-btn" @click="clickDeposit">Deposit</div>
|
|
|
<div class="btn withdrawal-btn" @click="clickWithdraw">Withdrawal</div>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -122,18 +118,20 @@ const clickWithdraw = () => {
|
|
|
|
|
|
const withdrawHandle = (_params) => {
|
|
|
withdraw_info.chainInfo = _params.chainInfo;
|
|
|
+ withdraw_info.source = 'home'
|
|
|
+ withdraw_info.balance = _params.balance
|
|
|
+ withdraw_info.token_symbol = _params.tokenSymbol || ''
|
|
|
+ withdraw_info.currency_name = _params.currencyName || ''
|
|
|
+ withdraw_info.token_chain = _params.tokenChain || ''
|
|
|
+ withdraw_info.currency_code = _params.currencyCode
|
|
|
+ withdraw_info.icon_token = _params.iconPath || ''
|
|
|
+ withdraw_info.icon_net = require('@/assets/svg/icon-BNB.svg')
|
|
|
+
|
|
|
if (_params.currencyCode == 'USD') {
|
|
|
withdraw_info.currency_code = _params.currencyCode
|
|
|
+ withdraw_info.paypal.amount_value = _params.balance
|
|
|
router.push('/withdraw/paypal')
|
|
|
} else {
|
|
|
- withdraw_info.source = 'home'
|
|
|
- withdraw_info.balance = _params.balance
|
|
|
- withdraw_info.token_symbol = _params.tokenSymbol || ''
|
|
|
- withdraw_info.currency_name = _params.currencyName || ''
|
|
|
- withdraw_info.token_chain = _params.tokenChain || 'BNB Chain'
|
|
|
- withdraw_info.currency_code = _params.currencyCode
|
|
|
- withdraw_info.icon_token = _params.iconPath || ''
|
|
|
- withdraw_info.icon_net = require('@/assets/svg/icon-BNB.svg')
|
|
|
console.log(withdraw_info.chainInfo.iconPath)
|
|
|
router.push('/withdraw/info')
|
|
|
}
|