优化
This commit is contained in:
70
pages/me/privacy.vue
Normal file
70
pages/me/privacy.vue
Normal file
@@ -0,0 +1,70 @@
|
||||
<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" v-if="!isLogin">
|
||||
<view class="btn cancel" @click="cancel">拒绝</view>
|
||||
<view class="btn" @click="back">同意</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import config from '@/commons/config.js';
|
||||
import {selectUserById} from '@/api/user/user.js';
|
||||
import {commonType} from '@/api/init.js';
|
||||
|
||||
let data = reactive({
|
||||
content: '',
|
||||
isLogin:false
|
||||
})
|
||||
|
||||
onLoad(() => {
|
||||
getGuize()
|
||||
data.isLogin=uni.getStorageSync('token')?true:false
|
||||
})
|
||||
|
||||
async function getGuize() {
|
||||
let res = await commonType(155)
|
||||
this.content = res.data.value
|
||||
}
|
||||
|
||||
function cancel(){
|
||||
// #ifdef H5
|
||||
uni.navigateBack()
|
||||
// #endif
|
||||
// #ifdef APP
|
||||
plus.runtime.quit();
|
||||
// #endif
|
||||
}
|
||||
|
||||
function back(){
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
}
|
||||
.btn-box{
|
||||
gap: 20px;
|
||||
padding: 30rpx 130rpx;
|
||||
}
|
||||
.cancel{
|
||||
background-color: #eee;
|
||||
color: #999;
|
||||
}
|
||||
page{
|
||||
/* background: #1c1b20; */
|
||||
}
|
||||
</style>
|
||||
71
pages/me/xieyi.vue
Normal file
71
pages/me/xieyi.vue
Normal file
@@ -0,0 +1,71 @@
|
||||
<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" v-if="!isLogin">
|
||||
<view class="btn cancel" @click="cancel">拒绝</view>
|
||||
<view class="btn" @click="back">同意</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
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()
|
||||
},
|
||||
getGuize(){
|
||||
// this.$Request.getT('/agreement/find?id=1').then(res =>{
|
||||
// if(res.status === 0){
|
||||
// this.content = res.data.content;
|
||||
// }
|
||||
// });
|
||||
this.$u.get('app/common/type/154').then(res => {
|
||||
this.content = res.data.value
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
border-radius: 30px;
|
||||
background: #ff7581;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
}
|
||||
.btn-box{
|
||||
gap: 20px;
|
||||
padding: 30rpx 130rpx;
|
||||
}
|
||||
.cancel{
|
||||
background-color: #eee;
|
||||
color: #999;
|
||||
}
|
||||
page{
|
||||
/* background: #1c1b20; */
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user