diff --git a/src/assets/camer.png b/src/assets/camer.png new file mode 100644 index 0000000..29fe704 Binary files /dev/null and b/src/assets/camer.png differ diff --git a/src/assets/card1.png b/src/assets/card1.png new file mode 100644 index 0000000..8bb402e Binary files /dev/null and b/src/assets/card1.png differ diff --git a/src/assets/card2.png b/src/assets/card2.png new file mode 100644 index 0000000..ab634f1 Binary files /dev/null and b/src/assets/card2.png differ diff --git a/src/assets/yyzz.png b/src/assets/yyzz.png new file mode 100644 index 0000000..38d63e8 Binary files /dev/null and b/src/assets/yyzz.png differ diff --git a/src/router/index.ts b/src/router/index.ts index b3c53c8..d3a3459 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -174,6 +174,12 @@ const routes: RouteRecordRaw[] = [ name: "History", component: () => import("@/views/admin/account/history/index.vue"), }, + { + path: "accountSet", + name: "accountSet", + component: () => + import("@/views/admin/account/accountSet/index.vue"), + }, { path: "security", name: "Security", @@ -191,6 +197,18 @@ const routes: RouteRecordRaw[] = [ component: () => import("@/views/admin/account/enterRealAuth/index.vue"), }, + { + path: "personalRealAuth", + name: "PersonalRealAuth", + component: () => + import("@/views/admin/account/personalRealAuth/index.vue"), + }, + { + path: "myCertificate", + name: "MyCertificate", + component: () => + import("@/views/admin/account/myCertificate/index.vue"), + }, { path: "image", name: "Image", diff --git a/src/views/admin/account/accountSet/index.vue b/src/views/admin/account/accountSet/index.vue new file mode 100644 index 0000000..651693b --- /dev/null +++ b/src/views/admin/account/accountSet/index.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/src/views/admin/account/enterRealAuth/index.vue b/src/views/admin/account/enterRealAuth/index.vue index a5b9dfc..3ead09d 100644 --- a/src/views/admin/account/enterRealAuth/index.vue +++ b/src/views/admin/account/enterRealAuth/index.vue @@ -2,206 +2,133 @@ @@ -220,9 +147,14 @@ import { } from 'ant-design-vue'; import { UserOutlined, - IdcardOutlined -} from '@ant-design/icons-vue'; + IdcardOutlined, + ArrowLeftOutlined, + DownloadOutlined +} from '@ant-design/icons-vue'; +import { useRouter } from 'vue-router'; +import SmsCodeInput from '@/components/SmsCodeInput.vue'; +const router = useRouter(); // 表单引用 const formRef = ref(); @@ -238,6 +170,9 @@ interface FormState { name: string; idNumber: string; agreed: boolean; + phone: string; + code: string; + realName: string; } const formState = reactive({ @@ -250,7 +185,10 @@ const formState = reactive({ idCardBackUrl: null, name: '', idNumber: '', - agreed: false + agreed: false, + phone: '', + code: '', + realName: '', }); // 文件大小限制:10MB @@ -297,7 +235,7 @@ const handleIdCardBackChange = (info: UploadChangeParam) => { // 自定义校验函数 const validateBusinessLicense = () => { if (!formState.businessLicenseUrl) { - return Promise.reject(new Error('请上传企业证件')); + return Promise.reject(new Error('请上传证件照')); } return Promise.resolve(); }; @@ -342,7 +280,7 @@ const handleCancel = () => { .enterprise-real-name-auth { padding: 24px; background-color: #fff; - min-height: 100vh; + /* min-height: 100vh; */ } .steps { @@ -365,7 +303,7 @@ const handleCancel = () => { .upload-placeholder { text-align: center; - color: #999; + color: #666; } .upload-placeholder i { @@ -413,7 +351,31 @@ const handleCancel = () => { margin-right: 0; } } + +::v-deep .avatar-uploader .ant-upload.ant-upload-select { + width: 200px; + overflow: hidden; + border: none !important; + background: url("@/assets/card1.png") no-repeat center; + background-size: contain; + /* 或者 'contain' 根据需求选择 */ +} + +::v-deep .avatar-uploader2 .ant-upload.ant-upload-select { + width: 200px; + overflow: hidden; + border: none !important; + background: url("@/assets/card2.png") no-repeat center; + background-size: contain; + /* 或者 'contain' 根据需求选择 */ +} + +::v-deep .avatar-uploader3 .ant-upload.ant-upload-select { + width: 200px; + overflow: hidden; + border: none !important; + background: url("@/assets/yyzz.png") no-repeat center; + background-size: contain; + /* 或者 'contain' 根据需求选择 */ +} - - - diff --git a/src/views/admin/account/myCertificate/index.vue b/src/views/admin/account/myCertificate/index.vue new file mode 100644 index 0000000..ac55e3f --- /dev/null +++ b/src/views/admin/account/myCertificate/index.vue @@ -0,0 +1,66 @@ + + \ No newline at end of file diff --git a/src/views/admin/account/personalRealAuth/index.vue b/src/views/admin/account/personalRealAuth/index.vue new file mode 100644 index 0000000..72071e6 --- /dev/null +++ b/src/views/admin/account/personalRealAuth/index.vue @@ -0,0 +1,323 @@ + + + + + + diff --git a/src/views/admin/account/realAuther/index.vue b/src/views/admin/account/realAuther/index.vue new file mode 100644 index 0000000..651693b --- /dev/null +++ b/src/views/admin/account/realAuther/index.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/src/views/admin/account/realnameAuth/index.vue b/src/views/admin/account/realnameAuth/index.vue index 57829f3..4f88f6c 100644 --- a/src/views/admin/account/realnameAuth/index.vue +++ b/src/views/admin/account/realnameAuth/index.vue @@ -38,7 +38,7 @@
@@ -50,13 +50,13 @@
营业执照等企业资质认证
-
+
@@ -82,7 +82,7 @@
* - +
@@ -112,7 +112,8 @@ import { CheckCircleOutlined, ClockCircleOutlined } from '@ant-design/icons-vue'; -import router from '../../../../router'; +import { useRouter } from 'vue-router'; +const router = useRouter(); // 控制个人认证弹窗 const personalAuthModalVisible = ref(false); @@ -125,7 +126,8 @@ const personalForm = reactive({ // 打开个人认证弹窗 const openPersonalAuthModal = () => { - personalAuthModalVisible.value = true; + // personalAuthModalVisible.value = true; + router.push('/layout/admin/personalRealAuth'); }; // 跳转到企业认证页面 diff --git a/src/views/admin/index.vue b/src/views/admin/index.vue index 47d8279..3404133 100644 --- a/src/views/admin/index.vue +++ b/src/views/admin/index.vue @@ -80,6 +80,9 @@ const menuItems: MenuItem[] = [ children: [ { path: '/layout/admin/security', name: '账号安全', visible: true }, { path: '/layout/admin/history', name: '访问记录', visible: true }, + { path: '/layout/admin/accountSet', name: '账户设置', visible: true }, + { path: '/layout/admin/realnameAuth', name: '实名认证', visible: true }, + { path: '/layout/admin/myCertificate', name: '我的算力券', visible: true }, ], }, ];