diff --git a/pages/login/login.vue b/pages/login/login.vue index a7c821a..7314d22 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -38,7 +38,7 @@ export default { return { publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2zCyUYSD0pNrbtaYdvGfHfWoRV+fo/2N9O2PLLz/jZvMkigkq4eAq4JO+Ek0wDHI9WxP6iTSLYCHhIOs9CQTPvyldJFm8riZtQZlBTD8Plkb3rjrgwTqbBi3w3+HKYdkSvGFXJIdSOPbpXnj5BzN8vlVaybs24R/vpUzG9178lwIDAQAB', form: { - userName: '14730797906', + userName: '13444444444', userPwd: 'Aa@123456789' } } diff --git a/pages/train_management/index.vue b/pages/train_management/index.vue index ce73b78..f89a303 100644 --- a/pages/train_management/index.vue +++ b/pages/train_management/index.vue @@ -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: '检测到您还未完成人脸信息读取,请先完成人脸信息认证!',