This commit is contained in:
@QQNZX 2024-01-19 16:18:40 +08:00
parent f39a17efae
commit 060236f6ce
2 changed files with 85 additions and 7 deletions

View File

@ -19,12 +19,20 @@
{
"root": "pagesLogin",
"pages": [{
"path": "login/login",
"style": {
"navigationBarTitleText": "登录",
"navigationStyle": "custom"
"path": "login/login",
"style": {
"navigationBarTitleText": "登录",
"navigationStyle": "custom"
}
},
{
"path": "login/webview",
"style": {
"navigationBarTitleText": "声明",
"navigationStyle": "custom"
}
}
}]
]
},
{
"root": "pagesHome",

View File

@ -1,8 +1,78 @@
<template>
<view class="">
<view class="my-header">
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
<view class="my-text">声明</view>
<view class="my-icons"></view>
</view>
<view class="">
<view class="content" v-html="text">
</view>
</view>
</view>
</template>
<script>
import {
str
} from "../../utils/privacyPolicy.js";
export default {
data() {
return {
text: ""
}
},
onShow() {
this.text = str;
},
methods: {
goback() {
uni.navigateBack()
}
}
}
</script>
<style>
</style>
<style socped lang="less">
.content {
padding: 20rpx;
}
.content {
background: #fff;
}
.container {
width: 100%;
height: 100vh;
box-sizing: border-box;
padding-top: 88px;
}
.my-header {
width: 100%;
height: 88px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
color: #000;
box-sizing: border-box;
padding: 0px 15px;
padding-top: 40px;
z-index: 99999;
.my-icons {
width: 20px;
}
position: fixed;
top: 0px;
}
</style>