|  | @@ -83,8 +83,8 @@ const inputWithdrawCalcFee = () => {
 | 
											
												
													
														|  |    withdrawCalcFee({
 |  |    withdrawCalcFee({
 | 
											
												
													
														|  |      params: {
 |  |      params: {
 | 
											
												
													
														|  |        "amountValue": state.input_amount,
 |  |        "amountValue": state.input_amount,
 | 
											
												
													
														|  | -      "currencyCode": state.currency_code,
 |  | 
 | 
											
												
													
														|  | -      "withdrawNetwork": 0
 |  | 
 | 
											
												
													
														|  | 
 |  | +      "currencyCode": withdraw_info.currency_code,
 | 
											
												
													
														|  | 
 |  | +      "withdrawNetwork": withdraw_info.net
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    }).then((res) => {
 |  |    }).then((res) => {
 | 
											
												
													
														|  |      if (res.code == 0) {
 |  |      if (res.code == 0) {
 | 
											
										
											
												
													
														|  | @@ -101,6 +101,9 @@ const inputWithdrawCalcFee = () => {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const inputText = () => {
 |  |  const inputText = () => {
 | 
											
												
													
														|  | 
 |  | +  if (!state.withdraw_switch) {
 | 
											
												
													
														|  | 
 |  | +    return
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  |    if (!state.input_amount == undefined || state.input_amount < 0) {
 |  |    if (!state.input_amount == undefined || state.input_amount < 0) {
 | 
											
												
													
														|  |      state.input_amount = 0
 |  |      state.input_amount = 0
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
										
											
												
													
														|  | @@ -109,9 +112,10 @@ const inputText = () => {
 | 
											
												
													
														|  |      state.is_enter_state = false
 |  |      state.is_enter_state = false
 | 
											
												
													
														|  |      return
 |  |      return
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  | -  if (state.input_amount > state.max_amount || state.input_amount < state.min_amount) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +  if (Number(state.input_amount) > Number(state.max_amount) || Number(state.input_amount) < Number(state.min_amount)) {
 | 
											
												
													
														|  |      state.error_msg = `最小为${state.min_amount},最大${state.max_amount}`
 |  |      state.error_msg = `最小为${state.min_amount},最大${state.max_amount}`
 | 
											
												
													
														|  |      state.is_enter_state = false
 |  |      state.is_enter_state = false
 | 
											
												
													
														|  | 
 |  | +    state.amount = 0
 | 
											
												
													
														|  |    } else {
 |  |    } else {
 | 
											
												
													
														|  |      state.error_msg = ''
 |  |      state.error_msg = ''
 | 
											
												
													
														|  |      inputWithdrawCalcFee()
 |  |      inputWithdrawCalcFee()
 | 
											
										
											
												
													
														|  | @@ -126,40 +130,43 @@ const clickBtn = () => {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const initConfig = () => {
 |  |  const initConfig = () => {
 | 
											
												
													
														|  | -  state.fee_amount = 0.1
 |  | 
 | 
											
												
													
														|  |    state.balance = withdraw_info.balance
 |  |    state.balance = withdraw_info.balance
 | 
											
												
													
														|  | -  // 单次提现最小金额
 |  | 
 | 
											
												
													
														|  | -  state.min_amount = 11
 |  | 
 | 
											
												
													
														|  | -  // 单次提现最小金额
 |  | 
 | 
											
												
													
														|  | -  state.max_amount = 123
 |  | 
 | 
											
												
													
														|  | -  state.currency_code = 'USD'
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -  // getWithdrawConfig({
 |  | 
 | 
											
												
													
														|  | -  //   params: {
 |  | 
 | 
											
												
													
														|  | -  //     "currencyCode": "string",
 |  | 
 | 
											
												
													
														|  | -  //     "withdrawNetwork": 0
 |  | 
 | 
											
												
													
														|  | -  //   }
 |  | 
 | 
											
												
													
														|  | -  // }).then((res) => {
 |  | 
 | 
											
												
													
														|  | -  //   switch (res.code.toString()) {
 |  | 
 | 
											
												
													
														|  | -  //     case '0':
 |  | 
 | 
											
												
													
														|  | -  //       // 关闭提现功能
 |  | 
 | 
											
												
													
														|  | -  //       if (!res.data.withdrawSwitch) {
 |  | 
 | 
											
												
													
														|  | -  //         state.error_msg = '关闭提现功能'
 |  | 
 | 
											
												
													
														|  | -  //         return
 |  | 
 | 
											
												
													
														|  | -  //       }
 |  | 
 | 
											
												
													
														|  | -  //       state.fee_amount = res.data.withdrawFee
 |  | 
 | 
											
												
													
														|  | -  // state.min_amount = res.data.withdrawPerMinAmount
 |  | 
 | 
											
												
													
														|  | -  // 
 |  | 
 | 
											
												
													
														|  | -  // state.max_amount = res.data.withdrawPerMaxAmount
 |  | 
 | 
											
												
													
														|  | -  //       break;
 |  | 
 | 
											
												
													
														|  | -  //     case '0':
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -  //       break;
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -  //     default:
 |  | 
 | 
											
												
													
														|  | -  //       break;
 |  | 
 | 
											
												
													
														|  | -  //   }
 |  | 
 | 
											
												
													
														|  | -  // })
 |  | 
 | 
											
												
													
														|  | 
 |  | +  if (withdraw_info.source == 'confirm') {
 | 
											
												
													
														|  | 
 |  | +    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.net
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  }).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.max_amount = res.data.withdrawPerMaxAmount
 | 
											
												
													
														|  | 
 |  | +        break;
 | 
											
												
													
														|  | 
 |  | +      case '0':
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        break;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      default:
 | 
											
												
													
														|  | 
 |  | +        break;
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  })
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  onMounted(() => {
 |  |  onMounted(() => {
 |