|
@@ -139,41 +139,43 @@ const clickBtn = () => {
|
|
|
const initConfig = () => {
|
|
|
state.balance = withdraw_info.balance
|
|
|
if (withdraw_info.source == 'confirm') {
|
|
|
+ state.withdraw_switch = withdraw_info.data.withdraw_switch
|
|
|
state.input_address = withdraw_info.data.input_address
|
|
|
state.input_amount = withdraw_info.data.input_amount
|
|
|
state.amount = withdraw_info.data.amount
|
|
|
- }
|
|
|
- inputText()
|
|
|
-
|
|
|
- getWithdrawConfig({
|
|
|
- params: {
|
|
|
- "currencyCode": withdraw_info.currency_code,
|
|
|
- "withdrawNetwork": withdraw_info.token_chain
|
|
|
- }
|
|
|
- }).then((res) => {
|
|
|
- switch (res.code.toString()) {
|
|
|
- case '0':
|
|
|
- state.withdraw_switch = res.data.withdrawSwitch
|
|
|
- // 关闭提现功能
|
|
|
- if (!res.data.withdrawSwitch) {
|
|
|
- state.error_msg = '关闭提现功能'
|
|
|
- return
|
|
|
- }
|
|
|
+ state.withdraw_fee_desc = withdraw_info.data.withdraw_fee_desc
|
|
|
+ inputText()
|
|
|
+ } else {
|
|
|
+ getWithdrawConfig({
|
|
|
+ params: {
|
|
|
+ "currencyCode": withdraw_info.currency_code,
|
|
|
+ "withdrawNetwork": withdraw_info.token_chain
|
|
|
+ }
|
|
|
+ }).then((res) => {
|
|
|
+ switch (res.code.toString()) {
|
|
|
+ case '0':
|
|
|
+ state.withdraw_switch = res.data.withdrawSwitch
|
|
|
+ // 关闭提现功能
|
|
|
+ if (!res.data.withdrawSwitch) {
|
|
|
+ state.error_msg = '关闭提现功能'
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
- state.fee_amount = res.data.withdrawFee
|
|
|
- // 单次提现最小金额
|
|
|
- state.min_amount = res.data.withdrawPerMinAmount
|
|
|
+ state.fee_amount = res.data.withdrawFee
|
|
|
+ // 单次提现最小金额
|
|
|
+ state.min_amount = res.data.withdrawPerMinAmount
|
|
|
|
|
|
- state.withdraw_fee_desc = res.data.withdrawFeeDesc
|
|
|
- break;
|
|
|
- case '0':
|
|
|
+ state.withdraw_fee_desc = res.data.withdrawFeeDesc
|
|
|
+ break;
|
|
|
+ case '0':
|
|
|
|
|
|
- break;
|
|
|
+ break;
|
|
|
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- })
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|