From b8f6f514b675fa6a006dfafbc99303b3c5c8ba85 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Fri, 17 May 2024 10:52:12 +0800
Subject: [PATCH] 一鍵平倉增加英文多语言,IFSC改成Select recharge account

---
 src/page/authentication/index.vue |   40 ++++++++++++++--------------------------
 1 files changed, 14 insertions(+), 26 deletions(-)

diff --git a/src/page/authentication/index.vue b/src/page/authentication/index.vue
index f5e83dd..1f82da7 100644
--- a/src/page/authentication/index.vue
+++ b/src/page/authentication/index.vue
@@ -38,7 +38,7 @@
           <input v-if="!showBtn" type="text" v-model="form.idCard" readonly />
         </div>
       </div>
-      <div class="bank_name">
+      <!-- <div class="bank_name">
         <div class="lefts">
           <span>{{ "Vaild Number" + ":" }}</span>
         </div>
@@ -56,7 +56,7 @@
             readonly
           />
         </div>
-      </div>
+      </div> -->
       <div class="uploads">
         <div class="lefts">
           <el-upload
@@ -157,7 +157,7 @@
 import { Toast } from "mint-ui";
 import { isNull, idCardReg, isName } from "@/utils/utils";
 import { compress } from "@/utils/imgupload";
-
+import apiUrl from "@/axios/api.url.js";
 export default {
   name: "bankCard",
   data() {
@@ -175,7 +175,7 @@
       img2Key: "",
       img3Key: "",
       showBtn: true,
-      admin: "",
+      admin: apiUrl.baseURL,
       imgStatus: false,
       imgStatus2: false,
       messFlag: this.$store.state.userInfo.isActive == 3 ? true : false,
@@ -196,11 +196,6 @@
       document.body.classList.remove("black-bg");
       document.body.classList.add("red-bg");
     }
-    this.admin = process.env.API_HOST;
-    console.log(this.admin);
-    if (this.admin == undefined) {
-      this.admin = "https://api.guosen.org";
-    }
   },
   methods: {
     handleAvatarSuccess(res, file) {
@@ -219,7 +214,6 @@
     },
     beforeAvatarUpload2(file) {
       this.imgStatus2 = true;
-      // const _that = this
       const isLt10M = file.size / 1024 / 1024 < 10;
       if (!isLt10M) {
         this.$message.error(this.$t("hj205"));
@@ -237,7 +231,7 @@
     },
     async getUserInfo() {
       // 获取用户信息
-      let data = await api.getUserInfo();
+      let data = await api.getUserInfodata();
       if (data.status === 0) {
         // 判断是否登录
         this.$store.commit("dialogVisible", false);
@@ -252,7 +246,6 @@
           this.form.name = this.$store.state.userInfo.realName;
           this.form.img1key = this.$store.state.userInfo.img1Key;
           this.form.img2key = this.$store.state.userInfo.img2Key;
-          //   this.form.img3key = this.$store.state.userInfo.img3Key
           this.showBtn = false;
         }
       } else {
@@ -273,34 +266,28 @@
       if (i) {
         Toast(this.$t("hj206"));
       } else {
-        // Indicator.open('Loading...')
         this.img1Key = file;
-        // this.$refs.formDate.submit()
-        // this.uploadIdImg({upload_file:file})
         var reader = new FileReader();
         reader.onload = (data) => {
           let res = data.target || data.srcElement;
           this.form.img1Key = res.result;
           // Indicator.close()
         };
-        // reader.onloadend = () => {
-        //   Indicator.close()
-        // }
+
         reader.readAsDataURL(file);
       }
     },
     toSure() {
       // 实名认证弹框
       if (isNull(this.form.name)) {
-        // if (isNull(this.form.name) || !isName(this.form.name)) {
         Toast(this.$t("hj207"));
       } else if (isNull(this.form.idCard)) {
         Toast(this.$t("hj208"));
-      }
-      // else if (isNull(this.form.img1key) || isNull(this.form.img2key)) {
-      //   Toast(this.$t('hj209'));
-      // }
-      else {
+      } else if (!this.form.img1key) {
+        Toast(this.$t("hj209"));
+      } else if (!this.form.img2key) {
+        Toast(this.$t("hj209"));
+      } else {
         // 显示确认弹窗
         this.toAuthentication();
       }
@@ -310,6 +297,7 @@
         realName: this.form.name,
         idCard: this.form.idCard,
         vaildNumber: this.form.vaildNumber,
+        img1key: this.form.img1key,
         img2key: this.form.img2key,
         img3key: this.form.img3key,
       };
@@ -331,7 +319,7 @@
 <style scoped lang="less">
 .bank_card_page {
   width: 100%;
-  height: 100%;
+  // height: 100%;
   background: #fff;
   position: relative;
 
@@ -379,7 +367,7 @@
     margin-top: 0.3rem;
 
     .lefts {
-      width: 36%;
+      // width: 36%;
       height: 100%;
       display: flex;
       align-items: center;

--
Gitblit v1.9.3