修改协议,增加拒绝按钮,app上拒绝退出app,h5返回。 登录后不展示同意拒绝

This commit is contained in:
2024-12-17 11:30:12 +08:00
parent f7650fb95f
commit 43c79cc554
2 changed files with 41 additions and 9 deletions

View File

@@ -1,9 +1,10 @@
<template>
<view style="font-size: 14px;line-height: 26px;padding: 32upx;" class="home1 ">
<view style="font-size: 28upx;" v-html="content"></view>
<view class="btn-box u-flex u-row-center">
<view class="btn" @click="back">同意</view>
</view>
<view class="btn-box u-flex u-row-center" v-if="!isLogin">
<view class="btn cancel" @click="cancel">拒绝</view>
<view class="btn" @click="back">同意</view>
</view>
</view>
</template>
@@ -11,13 +12,23 @@
export default {
data() {
return {
content: ''
content: '',
isLogin:false
}
},
onLoad() {
this.getGuize();
this.isLogin=uni.getStorageSync('token')?true:false
},
methods: {
cancel(){
// #ifdef H5
uni.navigateBack()
// #endif
// #ifdef APP
plus.runtime.quit();
// #endif
},
back(){
uni.navigateBack()
},
@@ -41,9 +52,14 @@
text-align: center;
}
.btn-box{
padding: 30rpx 230rpx;
gap: 20px;
padding: 30rpx 130rpx;
}
page {
.cancel{
background-color: #eee;
color: #999;
}
page{
/* background: #1c1b20; */
}
</style>

View File

@@ -1,7 +1,8 @@
<template>
<view style="line-height: 26px;padding: 32upx;" class="home1 ">
<view style="font-size: 28upx;" v-html="content"></view>
<view class="btn-box u-flex u-row-center">
<view class="btn-box u-flex u-row-center" v-if="!isLogin">
<view class="btn cancel" @click="cancel">拒绝</view>
<view class="btn" @click="back">同意</view>
</view>
</view>
@@ -11,13 +12,23 @@
export default {
data() {
return {
content:''
content:'',
isLogin:false
}
},
onLoad() {
this.getGuize();
this.isLogin=uni.getStorageSync('token')?true:false
},
methods: {
cancel(){
// #ifdef H5
uni.navigateBack()
// #endif
// #ifdef APP
plus.runtime.quit();
// #endif
},
back(){
uni.navigateBack()
},
@@ -47,7 +58,12 @@
text-align: center;
}
.btn-box{
padding: 30rpx 230rpx;
gap: 20px;
padding: 30rpx 130rpx;
}
.cancel{
background-color: #eee;
color: #999;
}
page{
/* background: #1c1b20; */