|
@@ -7,7 +7,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<a-verification-code size="large" style="width: 300px" v-model="face_form.face_code" :formatter="formatCode"
|
|
<a-verification-code size="large" style="width: 300px" v-model="face_form.face_code" :formatter="formatCode"
|
|
|
- @finish="getUserInfo" :error="code_error" :readonly="buttonLoading"/>
|
|
|
|
|
|
|
+ @finish="getUserInfo" :error="code_error" :readonly="buttonLoading" />
|
|
|
<div class="inputTip">请输入人脸采集码</div>
|
|
<div class="inputTip">请输入人脸采集码</div>
|
|
|
|
|
|
|
|
<a-button type="primary" shape="round" size="large" @click="getUserInfo"
|
|
<a-button type="primary" shape="round" size="large" @click="getUserInfo"
|
|
@@ -68,7 +68,7 @@ const getUserInfo = async () => {
|
|
|
try {
|
|
try {
|
|
|
buttonLoading.value = true
|
|
buttonLoading.value = true
|
|
|
const face_code = face_form.face_code
|
|
const face_code = face_form.face_code
|
|
|
- if (!face_code || face_code.length !== 6 )
|
|
|
|
|
|
|
+ if (!face_code || face_code.length !== 6)
|
|
|
return Message.error('请将信息填写完整')
|
|
return Message.error('请将信息填写完整')
|
|
|
|
|
|
|
|
const res = await BeginFaceReco({ face_code })
|
|
const res = await BeginFaceReco({ face_code })
|
|
@@ -88,8 +88,8 @@ const getUserInfo = async () => {
|
|
|
|
|
|
|
|
// 预加载模型
|
|
// 预加载模型
|
|
|
|
|
|
|
|
-onMounted(()=> {
|
|
|
|
|
- if(route.query.code) {
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ if (route.query.code) {
|
|
|
face_form.face_code = formatCode(route.query.code)
|
|
face_form.face_code = formatCode(route.query.code)
|
|
|
getUserInfo()
|
|
getUserInfo()
|
|
|
}
|
|
}
|
|
@@ -103,6 +103,8 @@ onMounted(()=> {
|
|
|
background: linear-gradient(to right, #74ebd5, #ACB6E5);
|
|
background: linear-gradient(to right, #74ebd5, #ACB6E5);
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
|
+ font-family: 'Arial', sans-serif;
|
|
|
|
|
+ text-align: center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
|
|
|