From 3003b7486ddeffd169f2b2f564fc0ff8c2c58bb3 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Tue, 22 Jul 2025 09:56:04 +0800
Subject: [PATCH] 1
---
src/page/authentication/index.vue | 73 ++++++++++++++++++++++--------------
1 files changed, 45 insertions(+), 28 deletions(-)
diff --git a/src/page/authentication/index.vue b/src/page/authentication/index.vue
index 28cfacc..b657f3a 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,7 +40,7 @@
<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 />
@@ -40,13 +48,13 @@
</div>
<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 telephone number"
v-model="form.vaildNumber"
/>
<input
@@ -62,7 +70,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 +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"
@@ -214,7 +222,6 @@
},
beforeAvatarUpload2(file) {
this.imgStatus2 = true;
- // const _that = this
const isLt10M = file.size / 1024 / 1024 < 10;
if (!isLt10M) {
this.$message.error(this.$t("hj205"));
@@ -232,7 +239,7 @@
},
async getUserInfo() {
// 获取用户信息
- let data = await api.getUserInfo();
+ let data = await api.getUserInfodata();
if (data.status === 0) {
// 判断是否登录
this.$store.commit("dialogVisible", false);
@@ -247,7 +254,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,34 +274,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();
}
@@ -305,6 +305,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,
};
@@ -324,15 +325,31 @@
</script>
<style scoped lang="less">
+@green: #c4d600;
+ /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 {
@@ -404,7 +421,7 @@
display: flex;
align-items: center;
justify-content: center;
- background: #5c288c;
+ background: @green;
font-size: 0.4103rem;
color: #fff;
@@ -429,7 +446,7 @@
/deep/ .el-upload--picture-card {
background: none;
width: 100%;
- height: 1.6rem;
+ height: 100PX;
line-height: 1.6rem;
}
--
Gitblit v1.9.3