Bladeren bron

[edit][bug]

zhangwei 3 jaren geleden
bovenliggende
commit
3b119dacb5
2 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  1. 5 1
      src/view/popup/withdraw/confirm.vue
  2. 3 2
      src/view/popup/withdraw/info.vue

+ 5 - 1
src/view/popup/withdraw/confirm.vue

@@ -61,7 +61,7 @@
 </template>
 
 <script setup>
-import { reactive, inject } from 'vue'
+import { reactive, inject, onMounted } from 'vue'
 import VHead from '@/view/popup/components/head.vue'
 import { withdrawRequest } from "@/http/account";
 import router from "@/router/popup.js";
@@ -100,7 +100,11 @@ const clickBtn = () => {
     })
 
 }
+onMounted(()=>{
+    state.img_enter_state = withdraw_info.enter_state
+})
 const clickRisk = () => {
+    withdraw_info.enter_state = state.img_enter_state
     router.push('/withdraw/risk')
 }
 

+ 3 - 2
src/view/popup/withdraw/info.vue

@@ -98,8 +98,8 @@ const inputWithdrawCalcFee = () => {
         state.currency_code = res.data.currencyCode || ''
         state.fee_amount = res.data.feeAmountValue || 0
         state.amount = res.data.finalAmountValue || 111
-
         state.is_enter_state = true
+        inputText()
       }
     }
 
@@ -118,7 +118,7 @@ const inputText = () => {
     state.is_enter_state = false
     return
   }
-
+  console.log(state.input_address.trim().length)
   if (state.input_address.trim().length != 42 || state.input_address.trim().substring(0, 2).toLowerCase() != '0x') {
     state.error_msg = 'Incorrect wallet address input'
     state.is_enter_state = false
@@ -189,6 +189,7 @@ const initConfig = () => {
 
 onMounted(() => {
   initConfig()
+  withdraw_info.enter_state = false
 })
 
 const clickWithdrawalAll = () => {