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