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) {