dcc
2024-05-31 27601483c5031b5358368d08e4babed6d31c1d0e
src/page/authentication/index.vue
@@ -62,7 +62,7 @@
          <el-upload
            :with-credentials="true"
            class="avatar-uploader"
            :action="admin + '/user/upload.do'"
            :action="admin + 'user/upload.do'"
            list-type="picture-card"
            name="upload_file"
            :show-file-list="false"
@@ -88,7 +88,7 @@
          <el-upload
            :with-credentials="true"
            class="avatar-uploader"
            :action="admin + '/user/upload.do'"
            :action="admin + 'user/upload.do'"
            list-type="picture-card"
            name="upload_file"
            :show-file-list="false"
@@ -204,6 +204,14 @@
    },
    beforeAvatarUpload(file) {
      this.imgStatus = true;
     const isLt10M = file.size / 1024 / 1024 < 10;
     if (!isLt10M) {
       this.$message.error(this.$t("hj205"));
       return false;
     } else {
       this.form.img1key = URL.createObjectURL(file);
       compress(file, function (val) {});
     }
    },
    handleError() {
      this.imgStatus = false;
@@ -283,15 +291,16 @@
        Toast(this.$t("hj207"));
      } else if (isNull(this.form.idCard)) {
        Toast(this.$t("hj208"));
      } else if (!this.form.img1key) {
        Toast(this.$t("hj209"));
      } else if (!this.form.img2key) {
        Toast(this.$t("hj209"));
      } else {
        // 显示确认弹窗
        this.toAuthentication();
      }
    },
    async toAuthentication() {
      // console.log(this.form);
      // return;
      let opts = {
        realName: this.form.name,
        idCard: this.form.idCard,
@@ -366,7 +375,7 @@
    margin-top: 0.3rem;
    .lefts {
      width: 36%;
      // width: 36%;
      height: 100%;
      display: flex;
      align-items: center;