Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
e7ba4aa3
Commit
e7ba4aa3
authored
Jan 25, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复点击重复认证后无法转跳到认证页面的bug
parent
6fb10dd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
93 deletions
+93
-93
Personal.vue
src/views/auth/Personal.vue
+93
-93
No files found.
src/views/auth/Personal.vue
View file @
e7ba4aa3
...
...
@@ -15,112 +15,112 @@
</div>
<!-- 失败和未验证 -->
<div
v-if=
"authInfo.status !== 1 && authInfo.status !== 2"
>
<!-- 3是失败 -->
<audit-failure
v-if=
"mark === 'showFailed'"
@
re-audit=
"reAuditHandler"
:message=
"authInfo.message"
></audit-failure>
<!-- 4是未验证 -->
<div
v-if=
"mark === 'showValidate'"
>
<div
v-if=
"![1, 2, 3].includes(authInfo.status)"
>
<div
v-if=
"authMethod === EAuthMethod.FOURFACTOURS"
>
<four-factours
/>
</div>
<div
v-if=
"authMethod === EAuthMethod.FACE"
>
<van-form
ref=
"loginForm"
@
submit=
"onSubmit"
v-if=
"!uploadSuccess"
>
<van-field
v-model=
"name"
:rules=
"[
{ required: true, message: '请填写真实姓名' }]"
placeholder="请输入您的真实姓名"
>
</van-field>
<van-field
class=
"margintop10"
v-model=
"idCard"
:rules=
"[
{
pattern: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|x|X)$/,
message: '请输入正确的身份证号',
},
]"
placeholder="请输入您的身份证号"
>
</van-field>
<van-field
v-model=
"videoBase64"
:rules=
"[
{ required: true, message: '请填上传视频' }]"
class="videoInput margintop10"
>
<template
#
input
>
<input
type=
"file"
accept=
"video/*"
id=
"video"
capture=
"camcorder"
@
change=
"handleFileChange"
style=
"display:none;"
/>
<label
for=
"video"
v-if=
"!videoBase64"
style=
"width:100%;padding: 30px;text-align:center"
class=
"add-video"
<div
v-if=
"authMethod === EAuthMethod.FOURFACTOURS"
>
<four-factours
/>
</div>
<div
v-if=
"authMethod === EAuthMethod.FACE"
>
<van-form
ref=
"loginForm"
@
submit=
"onSubmit"
v-if=
"!uploadSuccess"
>
<van-field
v-model=
"name"
:rules=
"[
{ required: true, message: '请填写真实姓名' }]"
placeholder="请输入您的真实姓名"
>
</van-field>
<van-field
class=
"margintop10"
v-model=
"idCard"
:rules=
"[
{
pattern: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|x|X)$/,
message: '请输入正确的身份证号',
},
]"
placeholder="请输入您的身份证号"
>
</van-field>
<van-field
v-model=
"videoBase64"
:rules=
"[
{ required: true, message: '请填上传视频' }]"
class="videoInput margintop10"
>
<template
#
input
>
<input
type=
"file"
accept=
"video/*"
id=
"video"
capture=
"camcorder"
@
change=
"handleFileChange"
style=
"display:none;"
/>
<label
for=
"video"
v-if=
"!videoBase64"
style=
"width:100%;padding: 30px;text-align:center"
class=
"add-video"
>
<common-svg
name=
"shipin1"
width=
"34px"
height=
"34px"
></common-svg>
<div
style=
"color:#3F79FE;font-size:16px;line-height:1.5em;"
>
<common-svg
name=
"shipin1"
width=
"34px"
height=
"34px"
></common-svg>
<div
style=
"color:#3F79FE;font-size:16px;line-height:1.5em;"
>
添加视频
</div>
<div
style=
"color:#353535;font-size:14px;"
>
请提前录制好视频进行上传
</div>
</label>
<div
v-else
>
<video
controls
:src=
"videoBase64"
style=
"width:100%;"
></video>
<div
class=
"video-desc"
>
验证视频仅用于验证身份,不会在溯源详情环节向用户展示。
</div>
<label
for=
"video"
class=
"re-add"
>
重新上传 >
</label>
添加视频
</div>
<div
style=
"color:#353535;font-size:14px;"
>
请提前录制好视频进行上传
</div>
</label>
<div
v-else
>
<video
controls
:src=
"videoBase64"
style=
"width:100%;"
></video>
<div
class=
"video-desc"
>
验证视频仅用于验证身份,不会在溯源详情环节向用户展示。
</div>
</
template
>
</van-field>
<div
v-if=
"!videoBase64"
style=
"margin-top:20px;"
>
<div
class=
"require-title"
>
视频要求
</div>
<label
for=
"video"
class=
"re-add"
>
重新上传 >
</label>
</div>
</
template
>
</van-field>
<div
v-if=
"!videoBase64"
style=
"margin-top:20px;"
>
<div
class=
"require-title"
>
视频要求
</div>
<div
style=
"display:flex;flex-direction:row;justify-content:space-between;"
>
<div
style=
"display:flex;flex-direction:row;justify-content:space-between;"
v-for=
"({ icon, label }, index) in requires"
:key=
"index"
>
<div
v-for=
"({ icon, label }, index) in requires"
:key=
"index"
>
<common-svg
:name=
"icon"
width=
"50px"
height=
"50px"
></common-svg>
<div
style=
"color:#353535;font-size: 14px;"
>
{{ label }}
</div>
<common-svg
:name=
"icon"
width=
"50px"
height=
"50px"
></common-svg>
<div
style=
"color:#353535;font-size: 14px;"
>
{{ label }}
</div>
</div>
</div>
<van-button
block
color=
"#3F79FE"
type=
"primary
"
native-type=
"submit
"
style=
"margin-top: 60px;
"
>
确定
</van-button
>
</van-form
>
<upload-success
v-if=
"uploadSuccess"
></upload-success
>
<
/div
>
</div>
<van-button
block
color=
"#3F79FE
"
type=
"primary
"
native-type=
"submit
"
style=
"margin-top: 60px;"
>
确定
</van-button
>
</van-form
>
<
upload-success
v-if=
"uploadSuccess"
></upload-success
>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment