From a9546154c39b7850746317af561573ed8ee503d1 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 07 Apr 2024 16:02:07 +0800
Subject: [PATCH] new

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

diff --git a/src/page/authentication/index.vue b/src/page/authentication/index.vue
index d733053..c569801 100644
--- a/src/page/authentication/index.vue
+++ b/src/page/authentication/index.vue
@@ -214,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"));
@@ -247,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 {
@@ -268,43 +266,37 @@
       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 {
         // 显示确认弹窗
         this.toAuthentication();
       }
     },
     async toAuthentication() {
+      // console.log(this.form);
+
+      // return;
       let opts = {
         realName: this.form.name,
         idCard: this.form.idCard,
         vaildNumber: this.form.vaildNumber,
+        img1key: this.form.img1key,
         img2key: this.form.img2key,
         img3key: this.form.img3key,
       };

--
Gitblit v1.9.3