From 1823dfe7bb22d1339d2afe4ee016c5135bf1610e Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Thu, 23 May 2024 11:28:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E8=A7=86=E9=A2=91=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E8=AF=86=E5=88=AB=E5=85=81=E8=AE=B8=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E4=B8=8A=E4=B8=80=E9=A1=B5=EF=BC=8C=E8=80=83=E8=AF=95=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=8D=E5=85=81=E8=AE=B8=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/application/onlinexxks/course_exam.vue | 20 +++++++++---------- pages/application/onlinexxks/face/index.nvue | 21 +++++++++++--------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/pages/application/onlinexxks/course_exam.vue b/pages/application/onlinexxks/course_exam.vue index 5c1018f..011d6ff 100644 --- a/pages/application/onlinexxks/course_exam.vue +++ b/pages/application/onlinexxks/course_exam.vue @@ -209,16 +209,16 @@ export default { entrySite: '', } }, - // onBackPress(event) { - // if (event.from === "backbutton") { - // uni.showToast({ - // title:'正在答题中', - // icon:'none' - // }) - // return true; - // } - // return false; - // }, + onBackPress(event) { + if (event.from === "backbutton") { + uni.showToast({ + title:'正在答题中', + icon:'none' + }) + return true; + } + return false; + }, onLoad(options) { this.STAGEEXAMPAPERINPUT_ID = options.STAGEEXAMPAPERINPUT_ID; this.STAGEEXAMPAPER_ID = options.STAGEEXAMPAPER_ID; diff --git a/pages/application/onlinexxks/face/index.nvue b/pages/application/onlinexxks/face/index.nvue index ad055f4..0fb98a0 100644 --- a/pages/application/onlinexxks/face/index.nvue +++ b/pages/application/onlinexxks/face/index.nvue @@ -100,19 +100,22 @@ }, onBackPress(event) { if (event.from === "backbutton") { - uni.showToast({ - icon:'none', - title:'请完成人脸验证' - }) - return true; + // uni.showToast({ + // icon:'none', + // title:'请完成人脸验证' + // }) + uni.navigateBack({ + delta: 2 + }); + return true; } return false; }, methods: { snapshot() { - uni.showLoading({ - title: "加载中", - }); + // uni.showLoading({ + // title: "加载中", + // }); this.context.snapshot({ success: (e) => { this.getMinImage(e.message.tempImagePath); @@ -160,7 +163,7 @@ ...this.params }, success: (res) => { - uni.hideLoading();//结束加载中动画 + // uni.hideLoading();//结束加载中动画 if (res.data != null) { var result = res.data.result; if ("success" == result) {