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