lefengyang
2026-08-16 8fd32e992f0fe12a81712aea90513bf6a5fa2790
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<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>