From f8e9af35a267b7b9a2bf605187a11536889a6e38 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 20 May 2024 11:00:10 +0800
Subject: [PATCH] 修改:绑定银行卡 多语言

---
 src/page/list/tradingList/dazy.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/page/list/tradingList/dazy.vue b/src/page/list/tradingList/dazy.vue
index eff8166..eb0d1de 100644
--- a/src/page/list/tradingList/dazy.vue
+++ b/src/page/list/tradingList/dazy.vue
@@ -11,16 +11,17 @@
         <div class="erty tghj">
           <input
             :placeholder="$t('hj262')"
-            type="number"
+            type="text"
+            :minlength="4"
             class="inpy"
             v-model="num"
-            @input="num = num.replace(/^(0+)|[^\d]+/g, '')"
+            @input="priceinput"
           />
-          <a>{{ $t("hj117") }}</a>
+          <a>{{ $t("hj274") }}</a>
         </div>
         <p class="plm">
           <span>{{ $t("hj263") }}</span>
-          <a>{{ currentItem.nowPrice | _toString }}</a>
+          <a>{{ currentItem.nowPrice*num | _toString }}</a>
         </p>
         <div class="erty">
           <input
@@ -47,6 +48,13 @@
 
 export default {
   methods: {
+    priceinput(e){
+      this.num = this.num.replace(/^(0+)|[^\d]+/g, '')
+      var maxnum = this.enableAmt/this.currentItem.nowPrice
+      if(this.num>=maxnum){
+        this.num = Math.floor(maxnum)
+      }
+    },
     async getxiadan() {
       if (!this.num) {
         this.show = false;
@@ -58,6 +66,7 @@
         this.$toast(this.$t("hj264"));
         return;
       }
+
       var opt = {
         stockCode: this.currentItem.code,
         password: this.password,
@@ -210,4 +219,4 @@
     font-size: 0.37rem;
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3