From 9f6bcdfa94c87b72ec3b316b337de810a6d5d2db Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Fri, 20 Nov 2020 10:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8B=92=E7=BB=9D=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/remaining/remaining.vue | 60 +++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 10 deletions(-) diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue index a448f9f..03b101c 100644 --- a/components/remaining/remaining.vue +++ b/components/remaining/remaining.vue @@ -39,7 +39,10 @@ - 我同意 + + 不同意并退出 + 同意 + @@ -75,7 +78,7 @@ duration: 500, swiper_index: "", tiaoguo:false, - weizhi:0 + weizhi:0, }; }, onReady: function(res) { @@ -166,6 +169,21 @@ url: '/pageA/login/login' }); }, + // 拒绝协议 + refuseAgreement() { + //退出app + // #ifdef APP-PLUS + if (plus.os.name.toLowerCase() === 'android') { + plus.runtime.quit(); + } else{ + const threadClass = plus.ios.importClass("NSThread"); + const mainThread = plus.ios.invoke(threadClass, "mainThread"); + plus.ios.invoke(mainThread, "exit"); + // ios11 + plus.ios.import("UIApplication").sharedApplication().performSelector("exit") + } + // #endif + }, // 视频引入 bindInputBlur: function(e) { this.inputValue = e.target.value; @@ -328,15 +346,37 @@ } } - .to_agree { - width: 558rpx; - font-size: 30rpx; - font-weight: bold; - color: rgba(255, 121, 16, 1); - text-align: center; - padding-top: 27rpx; - border-top: #D8D8D8 solid 1px; + .agree-btn { + border-top: #D8D8D8 solid 1rpx; + // padding-top: 27rpx; + display: flex; + height: 80rpx; + > view { + height: inherit; + flex: 1; + font-size: 30rpx; + font-weight: bold; + text-align: center; + line-height: 80rpx; + } + .refuse { + color: #999; + position: relative; + &:after { + content: ""; + height: 80rpx; + width: 1rpx; + background-color: #D8D8D8; + position: absolute; + right: 0; + top: 0; + } + } + .to_agree { + color: rgba(255, 121, 16, 1); + } } + } } \ No newline at end of file