From a32c2be0fc5fc132ba2fdcd20de6139638b2d4a5 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 01 Aug 2024 18:02:01 +0800
Subject: [PATCH] fdsafsad

---
 src/page/authentication/index.vue |   59 ++++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 42 insertions(+), 17 deletions(-)

diff --git a/src/page/authentication/index.vue b/src/page/authentication/index.vue
index f66a74b..f768aa2 100644
--- a/src/page/authentication/index.vue
+++ b/src/page/authentication/index.vue
@@ -1,14 +1,22 @@
 <template>
   <div class="bank_card_page">
+    <van-nav-bar
+      :placeholder="true"
+      :safe-area-inset-top="true"
+      title="KYC"
+      left-arrow
+      @click-left="$router.go(-1)"
+    >
+    </van-nav-bar>
     <div class="content">
-      <div class="top_back">
+<!--      <div class="top_back">
         <div class="left_back_icon" @click="$router.go(-1)">
           <img src="../../assets/img/zuojiantou.png" alt />
         </div>
-      </div>
-      <div class="titles">
+      </div> -->
+     <!-- <div class="titles">
         <span>{{ $t("hj146") }}</span>
-      </div>
+      </div> -->
       <div class="bank_name">
         <div class="lefts">
           <span>{{ $t("hj195") + ":" }}</span>
@@ -32,21 +40,21 @@
           <input
             v-if="showBtn"
             type="text"
-            placeholder="Please enter your ID card"
+            placeholder="Please enter your Aadhaar card"
             v-model="form.idCard"
           />
           <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>
+          <span>{{ $t("有效號碼") + ":" }}</span>
         </div>
         <div class="rights">
           <input
             v-if="showBtn"
             type="text"
-            placeholder="Please enter your ID card"
+            placeholder="Please enter your Valid number"
             v-model="form.vaildNumber"
           />
           <input
@@ -56,13 +64,13 @@
             readonly
           />
         </div>
-      </div> -->
+      </div>
       <div class="uploads">
         <div class="lefts">
           <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 +96,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"
@@ -281,9 +289,11 @@
       // 实名认证弹框
       if (isNull(this.form.name)) {
         Toast(this.$t("hj207"));
-      } else if (isNull(this.form.idCard)) {
-        Toast(this.$t("hj208"));
-      } else if (!this.form.img1key) {
+      } else if (isNull(this.form.idCard) || this.form.idCard.length != 12) {
+        Toast(this.$t("限制长度为12位数"));
+      } else if (isNull(this.form.vaildNumber) || this.form.vaildNumber.length != 10) {
+        Toast(this.$t("限制长度为10位数"));
+      }  else if (!this.form.img1key) {
         Toast(this.$t("hj209"));
       } else if (!this.form.img2key) {
         Toast(this.$t("hj209"));
@@ -317,15 +327,30 @@
 </script>
 
 <style scoped lang="less">
+  /deep/ .van-nav-bar__content {
+    height: 65px;
+  }
+  /deep/ .van-nav-bar__title {
+    font-family: "DINPro";
+    width: 100%;
+    height: 1.17333rem;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    font-style: normal;
+    font-weight: 500;
+    font-size: 0.48rem;
+    color: #14181f;
+  }
 .bank_card_page {
   width: 100%;
-  // height: 100%;
+  height: 100%;
   background: #fff;
   position: relative;
 
   .content {
     width: 100%;
-    height: 100%;
+    height: 100vh;
     padding: 0 0.6rem;
 
     .top_back {
@@ -422,7 +447,7 @@
 /deep/ .el-upload--picture-card {
   background: none;
   width: 100%;
-  height: 1.6rem;
+  height: 100PX;
   line-height: 1.6rem;
 }
 

--
Gitblit v1.9.3