Переглянути джерело

Merge branch 'add-1.01-logic-4.24' into test

zhangwei 3 роки тому
батько
коміт
ccc8254672
2 змінених файлів з 6 додано та 3 видалено
  1. 6 2
      src/view/popup/withdraw/info.vue
  2. 0 1
      src/view/red-packet.vue

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

@@ -8,7 +8,7 @@
         <div class="token">
           <div class="title">Token</div>
           <div class="box">
-            <img :src="withdraw_info.icon_token" alt=""> 
+            <img :src="withdraw_info.icon_token" alt="">
             <span>{{ withdraw_info.token }}</span>
           </div>
         </div>
@@ -36,7 +36,8 @@
           <span>Balance: {{ state.balance || 0 }}</span>
         </div>
         <div class="box">
-          <input type="number" placeholder="0" @input="inputText" v-model="state.input_amount" :max="state.max_amount">
+          <input type="number" placeholder="0" @input="inputText" v-model="state.input_amount" :max="state.max_amount"
+            min="0">
           <span @click="clickWithdrawalAll">Withdrawal All</span>
         </div>
         <div class="error">{{ state.error_msg }}</div>
@@ -100,6 +101,9 @@ const inputWithdrawCalcFee = () => {
 }
 
 const inputText = () => {
+  if (!state.input_amount == undefined || state.input_amount < 0) {
+    state.input_amount = 0
+  }
   if (state.input_address.trim().length == 0) {
     state.error_msg = 'Wallet Address不能为空'
     state.is_enter_state = false

+ 0 - 1
src/view/red-packet.vue

@@ -43,7 +43,6 @@
               <div class="item-title">Like</div>
             </div>
             <img v-if="data.done.like" :src="require('@/assets/svg/icon-true.svg')" alt />
-1
             <div v-else class="btn" @click="clickLickBtn">Like</div>
           </template>
           <template v-if="item.type == 3">