zhaojs
2023-07-27 280bbc8fca6c6b52a334996258cd7d86532369d7
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
<template>
    <view class="pageWapper wrapperLayer borderBox">
        <titleBar :titleText="pageType==1?'用户协议':'隐私政策'"></titleBar>
        <!-- <view class="pageContent" v-html="pageContent"></view> -->
        <u-parse class="pageContent" :html="pageContent"></u-parse>
    </view>
</template>
 
<script>
    import titleBar from '../../components/backTitlebar.vue'
    import utils from '../../utils/utils.js'
    export default {
        components: {
            titleBar
        },
        data() {
            return {
                pageType: 1,
                pageContent:''
            };
        },
        onLoad(options) {
            var appInfo = utils.getCacheSync('appInfo')
            console.log(appInfo)
            if (options.type == 'policy') {
                this.pageType = 2;
                this.pageContent = appInfo.privacyAgreement
            } else {
                this.pageType = 1;
                this.pageContent = appInfo.userAgreement
            }    
        },
        methods: {
            
        }
    }
</script>
 
<style lang="scss">
    .pageWapper{
        width: 100%;
        min-height: 100vh;
        background-color: #FFFFFF;
        .pageContent{
            padding: 32rpx;
        }
    }
</style>