Merge pull request '添加拒绝协议按钮' (#395) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/395
This commit is contained in:
commit
d552a03ab4
@ -39,7 +39,10 @@
|
||||
<scroll-view scroll-y class="scroll">
|
||||
<rich-text class="protocol_content" :nodes="agreement.document_content"></rich-text>
|
||||
</scroll-view>
|
||||
<view class="to_agree" @click="to_agree">我同意</view>
|
||||
<view class="agree-btn">
|
||||
<view class="refuse" @click="refuseAgreement">不同意并退出</view>
|
||||
<view class="to_agree" @click="to_agree">同意</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user