rk
2025-09-28 2304d7b140c5c5b4bf3a83f9ced8bff37d20c42e
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
64
65
66
67
68
69
70
71
72
73
<template>
    <view class="u-content">
        <u-parse :content="content"></u-parse>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                flag:1,
                title:'',
                content: ''
            };
        },
        onLoad(options) {
            console.log(options)
            var flag = options.flag
            this.flag = flag
            this.content =''
            switch(flag){
                case '1':
                    this.title = '服务介绍'
                    break;
                case '2':
                    this.title = '收费标准'
                    break;
                case '3':
                    this.title = '关于我们'
                    break;
                case '4':
                    this.title = '用户协议'
                    break;
                case '5':
                    this.title = '隐私协议政策'
                    break; 
                default:
                    this.flag= 3
                    this.title = '关于我们'
                    break; 
            }
            uni.setNavigationBarTitle({
                title:this.title
            })
            this.getContnet()
        },
        methods:{
            getContnet() {
                var that = this;
                this.$u.api.getPlatformAboutUs({}).then(res =>{ 
                    if (res&&res.code ===200) { 
                        if(this.flag == 1){
                            that.content = res.data.serverIntroduce||''
                        }else if(this.flag == 2){
                            that.content = res.data.feeStandards||''
                        }  else if(this.flag == 4){
                            that.content = res.data.userAgreement||''
                        } else if(this.flag == 5){
                            that.content = res.data.privacyAgreement||''
                        } else{
                            that.content = res.data.aboutUs||''
                        }
                    } 
                })
            },
        }
    }
</script>
 
<style lang="scss" scoped>
    .u-content {
        padding: 30rpx;
    }
</style>