<template>
|
<view class="page_bg">
|
<uv-navbar :title="title" :autoBack="true" :placeholder="true" leftIconColor="#fff" bgColor="rgba(0,0,0,0)" titleStyle="color:#fff"></uv-navbar>
|
|
<view class="policy" v-if="id == 1">
|
请仔细阅读以下条款,为获得聚合包装提供的服务,服务使用人(以下称“用户”)应当审慎阅读、充分理解各条款内容,并按照页面上的提示完成全部的注册程序。用户在进行注册程序过程中点击“同意”按钮即表示用户完全接受本协议项下的全部条款。
|
请仔细阅读以下条款,为获得聚合包装提供的服务,服务使用人(以下称“用户”)应当审慎阅读、充分理解各条款内容,并按照页面上的提示完成全部的注册程序。用户在进行注册程序过程中点击“同意”按钮即表示用户完全接受本协议项下的全部条款。
|
</view>
|
|
<view class="policy" v-if="id == 2">
|
<uv-parse :content="infoData"></uv-parse>
|
</view>
|
|
</view>
|
</template>
|
|
<script>
|
import { content } from '@/api/api.js'
|
export default {
|
data() {
|
return {
|
infoData: '',
|
id: 0,
|
title: ''
|
}
|
},
|
onLoad(opt) {
|
if(opt.id){
|
this.id = opt.id
|
const titleMap = {
|
1: '用户协议',
|
2: '隐私协议'
|
}
|
this.title = titleMap[this.id]
|
}
|
this.getContent()
|
},
|
methods: {
|
getContent(){
|
content(1).then(res=>{
|
console.log(res.data.content)
|
this.infoData = res.data.content
|
})
|
}
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.page_bg{
|
width: 100%;
|
min-height: calc(100vh - var(--window-bottom));
|
background:url('/static/img/bg_2.jpg') no-repeat center top;
|
background-size: 100% auto;
|
}
|
.policy{
|
padding:20rpx 30rpx;
|
font-size: 28rpx;
|
line-height: 40rpx;
|
background: #fff;
|
min-height: calc(100vh - var(--window-bottom));
|
}
|
</style>
|