zhaojs
2023-06-03 96823abe1433b1e639da1ffa45521fb58b630b46
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
<template>
    <view class="problemExplain-wrapper wrapperLayer">
        <titleBar :titleText='pageTitle' :pageForm='"problemExplain"'></titleBar>
        <view class="pageContent colCen borderBox">
            <u-parse :html="content"></u-parse>
        </view>
    </view>
</template>
 
<script>
    import titleBar from '../../../components/backTitlebar.vue';
    export default {
        components: {
            titleBar
        },
        data() {
            return {
                pageTitle: '',
                id: '',
                content: ''
            }
        },
        onLoad(options) {
            this.id = options.id
            this.getData()
        },
        methods: {
            getData() {
                var that = this;
                this.$u.api.getHelpDetail({
                    id:this.id
                }).then(e => {
                    if(e.code != 0) return that.$alert(e.msg)
                    that.pageTitle = e.data.info.title
                    this.content = e.data.info.content
                }).catch(function (err) {
                })
                
            }
        }
    }
</script>
 
<style lang="scss">
    .problemExplain-wrapper {
        width: 100%;
        min-height: 100vh;
        background-color: #FFFFFF;
 
        .pageContent {
            width: 100%;
            padding: 32rpx;
            text-indent: 2em;
            font-size: 32rpx;
            line-height: 48rpx;
        }
    }
</style>