zhangwei 3 lat temu
rodzic
commit
d43083d41a

+ 3 - 1
src/view/popup/top-up/home.vue

@@ -17,7 +17,9 @@ let top_up_info = inject('top_up_info')
 
 function selectCurrency(_params) {
     top_up_info.token = _params.currencyName || ''
-    top_up_info.token_chain = _params.tokenChain || 'BNB Chain'
+    top_up_info.token_chain = _params.tokenChain 
+    // top_up_info.token_chain = 'BNB Smart Chain (BEP20)'
+    top_up_info.token_symbol = _params.tokenSymbol || ''
     top_up_info.currency_code = _params.currencyCode
     top_up_info.icon_token = _params.iconPath || ''
     top_up_info.icon_net = require('@/assets/svg/icon-BNB.svg')

+ 9 - 11
src/view/popup/top-up/info.vue

@@ -11,7 +11,7 @@
                     <div class="title">Token</div>
                     <div class="box">
                         <img :src="top_up_info.icon_token" alt="">
-                        <span>{{ top_up_info.token }}</span>
+                        <span>{{ top_up_info.token_symbol }}</span>
                     </div>
                 </div>
 
@@ -19,7 +19,8 @@
                     <div class="title">NetWork</div>
                     <div class="box">
                         <img :src="top_up_info.icon_net" alt="">
-                        <span>{{ top_up_info.token_chain }}</span>
+                        <!-- <span>{{ top_up_info.token_chain }}</span> -->
+                        <span>BNB Smart Chain (BEP20)</span>
                     </div>
                 </div>
             </div>
@@ -81,7 +82,7 @@ const asyncTokenRechRecord = (cb) => {
                 router.back()
                 break
             default:
-                message.error(res.msg)
+                // message.error(res.msg)
                 break
         }
     })
@@ -158,24 +159,21 @@ onMounted(() => {
     height: 100%;
 
     .content {
-        padding: 16px 16px 0 16px;
+        padding: 12px 16px 0 16px;
 
         .area-input-1 {
-            display: flex;
-            flex-wrap: nowrap;
-            justify-content: space-between;
+            
 
             .token {
-                padding-right: 7px;
+                
             }
 
             .net {
-                padding-left: 7px;
+                margin-top: 12px;
             }
 
             .token,
             .net {
-                width: 50%;
 
 
                 .title {
@@ -224,7 +222,7 @@ onMounted(() => {
             background: #F7F7F7;
             border-radius: 18px;
             padding-bottom: 20px;
-            margin-top: 20px;
+            margin-top: 12px;
 
             canvas {
                 margin-top: 17px;

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

@@ -17,7 +17,8 @@
                 </div>
                 <div class="item">
                     <div class="key">Network</div>
-                    <div class="val">{{ withdraw_info.token_chain }}</div>
+                    <!-- <div class="val">{{ withdraw_info.token_chain }}</div> -->
+                    <div class="val">BNB Smart Chain (BEP20)</div>
                 </div>
                 <div class="info-warn">
                     Ensure the network is correct

+ 1 - 0
src/view/popup/withdraw/home.vue

@@ -25,6 +25,7 @@ function selectCurrency(_params) {
         withdraw_info.token_symbol = _params.tokenSymbol || ''
         withdraw_info.currency_name = _params.currencyName || ''
         withdraw_info.token_chain = _params.tokenChain || 'BNB Chain'
+        // withdraw_info.token_chain = 'BNB Smart Chain (BEP20)'
         withdraw_info.currency_code = _params.currencyCode
         withdraw_info.icon_token = _params.iconPath || ''
         withdraw_info.icon_net = require('@/assets/svg/icon-BNB.svg')

+ 16 - 16
src/view/popup/withdraw/info.vue

@@ -17,7 +17,8 @@
           <div class="title">NetWork</div>
           <div class="box">
             <img :src="withdraw_info.icon_net" alt="">
-            <span>{{ withdraw_info.token_chain }}</span>
+            <!-- <span>{{ withdraw_info.token_chain }}</span> -->
+            <span>BNB Smart Chain (BEP20)</span>
             <!-- <img :src="require('@/assets/svg/icon-botton-up.svg')" alt="" class="up"> -->
           </div>
         </div>
@@ -49,8 +50,7 @@
         <div class="tips-content">
           <p>1.Make sure you also selected </p>
           <p style="color: red;">BNB Smart Chain (BEP20) </p>
-          <p>BNB Smart Chain (BEP20)
-            on the platform where you are depositing funds to. Otherwise, you'll lose your assets.</p>
+          <p>on the platform where you are depositing funds to. Otherwise, you'll lose your assets.</p>
           <p>2.As the withdrawal is transferred out, you can check the transaction history. </p>
         </div>
       </div>
@@ -83,7 +83,7 @@ let state = reactive({
   input_address: '',
   input_amount: '',
   is_enter_state: false,
-  error_msg: 'Wallet Address不能为空'
+  error_msg: 'Please enter wallet address'
 })
 
 const inputWithdrawCalcFee = () => {
@@ -115,18 +115,18 @@ const inputText = () => {
     state.input_amount = 0
   }
   if (state.input_address.trim().length == 0) {
-    state.error_msg = 'Wallet Address不能为空'
+    state.error_msg = 'Please enter wallet address'
     state.is_enter_state = false
     return
   }
   if (Number(state.input_amount) > Number(state.balance)) {
-    state.error_msg = `输入金额超过钱包余额`
+    state.error_msg = `Insufficient ${withdraw_info.token_symbol} balance`
     state.is_enter_state = false
     state.amount = 0
     return
   }
   if (Number(state.input_amount) < Number(state.min_amount)) {
-    state.error_msg = `输入金额需要高于最小提现额 ${state.min_amount}`
+    state.error_msg = `Minimum amount: ${state.min_amount} ${withdraw_info.token_symbol}`
     state.is_enter_state = false
     state.amount = 0
     return
@@ -164,7 +164,7 @@ const initConfig = () => {
           state.withdraw_switch = res.data.withdrawSwitch
           // 关闭提现功能
           if (!res.data.withdrawSwitch) {
-            state.error_msg = '关闭提现功能'
+            state.error_msg = 'Withdrawal function temporarily closed'
             return
           }
 
@@ -199,24 +199,24 @@ const clickWithdrawalAll = () => {
   height: 100%;
 
   .content {
-    padding: 16px 16px 0 16px;
+    height: calc(100% - 48px - 80px);
+    overflow: auto;
+    padding: 13px 16px 0 13px;
 
     .area-input-1 {
-      display: flex;
-      flex-wrap: nowrap;
-      justify-content: space-between;
+
 
       .token {
-        padding-right: 7px;
+        // padding-right: 7px;
       }
 
       .net {
-        padding-left: 7px;
+        // padding-left: 7px;
+        margin-top: 16px;
       }
 
       .token,
       .net {
-        width: 50%;
 
         .title {
           font-weight: 500;
@@ -259,7 +259,7 @@ const clickWithdrawalAll = () => {
 
     .area-input-2,
     .area-input-3 {
-      margin-top: 25px;
+      margin-top: 16px;
 
       .title {
         font-weight: 500;