From e240403d68e7928d5a69f37509bcb627c989c479 Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Fri, 17 Feb 2023 15:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BB=E7=9F=A5=E9=98=85=E8=AF=BB=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E7=9B=91=E5=90=AC=E6=B3=A8=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Guidance.vue | 52 +++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/views/Guidance.vue b/src/views/Guidance.vue index cf643b5..d89dc5a 100644 --- a/src/views/Guidance.vue +++ b/src/views/Guidance.vue @@ -53,32 +53,32 @@ export default { }, //已阅读 doRead() { - let readBox = this.$refs.scrollView; - console.log(readBox.scrollHeight, parseInt(readBox.scrollTop), readBox.clientHeight) - if (readBox.scrollHeight - parseInt(readBox.scrollTop) !== readBox.clientHeight) { - console.log('未阅读完成'); - this.isFlag = false; - } else { - this.isFlag = true; - } - if (!this.isFlag) { - //未阅读完整 - lightAppJssdk.notification.alert({ - message: "须知未完全阅读,请滑动屏幕完成阅读", - title: "提示",//可传空 - buttonName: "继续阅读", - success: function (data) { - //onSuccess将在点击button之后回调 - /*回调*/ - }, - fail: function (data) { //错误返回 - } - }); - } - else { - //阅读完整 - this.$router.replace({ name: 'examination', query: { id: this.$route.query.deptId } }) - } + this.$router.replace({ name: 'examination', query: { id: this.$route.query.deptId } }); + // let readBox = this.$refs.scrollView; + // console.log(readBox.scrollHeight, parseInt(readBox.scrollTop), readBox.clientHeight) + // if (readBox.scrollHeight - parseInt(readBox.scrollTop) !== readBox.clientHeight) { + // console.log('未阅读完成'); + // this.isFlag = false; + // } else { + // this.isFlag = true; + // } + // if (!this.isFlag) { + // //未阅读完整 + // lightAppJssdk.notification.alert({ + // message: "须知未完全阅读,请滑动屏幕完成阅读", + // title: "提示",//可传空 + // buttonName: "继续阅读", + // success: function (data) { + // /*回调*/ + // }, + // fail: function (data) { //错误返回 + // } + // }); + // } + // else { + // //阅读完整 + // this.$router.replace({ name: 'examination', query: { id: this.$route.query.deptId } }) + // } }, //监听阅读进度 scroll(e) {