fix: 修复培训管理首次进入频繁认证人脸的问题
parent
48666f30c0
commit
1961068a5d
|
@ -38,7 +38,7 @@ export default {
|
|||
return {
|
||||
publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2zCyUYSD0pNrbtaYdvGfHfWoRV+fo/2N9O2PLLz/jZvMkigkq4eAq4JO+Ek0wDHI9WxP6iTSLYCHhIOs9CQTPvyldJFm8riZtQZlBTD8Plkb3rjrgwTqbBi3w3+HKYdkSvGFXJIdSOPbpXnj5BzN8vlVaybs24R/vpUzG9178lwIDAQAB',
|
||||
form: {
|
||||
userName: '14730797906',
|
||||
userName: '13444444444',
|
||||
userPwd: 'Aa@123456789'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,6 @@ import store from '@/store/index';
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
verification: store.state.verification, // 本地读取人脸检测验证状态
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
totalPage: 0,
|
||||
|
@ -71,11 +70,6 @@ export default {
|
|||
await this.resetList()
|
||||
},
|
||||
|
||||
async onLoad(query) {
|
||||
// await this.getUserFaceCompleted()
|
||||
// await this.resetList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
async resetList() {
|
||||
this.pageSize = 10
|
||||
|
@ -86,7 +80,7 @@ export default {
|
|||
async getData() {
|
||||
// verification --> 0: 未完成人脸认证
|
||||
// verification --> 1: 已完成人脸认证
|
||||
if (this.verification === '1') {
|
||||
if (store.getters.getVerification === '1') {
|
||||
let resData = await getClassList({
|
||||
showCount: this.pageSize,
|
||||
currentPage: this.currentPage
|
||||
|
@ -155,7 +149,7 @@ export default {
|
|||
// const userFaceData = await getIsUploadFace()
|
||||
// verification --> 0: 未完成人脸认证
|
||||
// verification --> 1: 已完成人脸认证
|
||||
if (this.verification === '0') {
|
||||
if (store.getters.getVerification === '0') {
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '检测到您还未完成人脸信息读取,请先完成人脸信息认证!',
|
||||
|
|
Loading…
Reference in New Issue