liangjin
2021-03-23 eb9443b959ad490ac735f2c04e4dee743d7365c7
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>
    <div class="getQRCode">
        <x-header class="message-head" title="内容详情" :left-options="{backText:''}"></x-header>
        <div class="overdue-body" v-html="bannerContent">
            <!-- {{ bannerContent }} -->
        </div>
    </div>
</template>
<script>
import { XHeader } from 'vux';
    export default {
        name: 'bannerContent',
        components: {
             XHeader,
        },
        data() {
            return {
                bannerId: this.$route.query.bannerId,
                bannerContent: '',
            }
        },
        created() {
            this. bannerContentInit();
        },
        methods: {
            bannerContentInit() {
                this.$api.indexDetail({id: this.bannerId}).then(res => {
                    // this.bannerContent = res.body.bannerInfoVos.filter(item => {
                    //     if(item.id == this.bannerId) {
                    //         return item.bannerContent;
                    //     }
                    // })
                    console.log(res.body)
                    this.bannerContent = res.body.bannerContent
                })
                
            }
        }
    }
</script>
<style lang="less" scoped>
.getQRCode{
    background: #F5F5F7;
    width: 100%;
    height: 100%;
}
.message-head{
    position: relative;
}
.overdue-body{
    width: 96%;
    margin: 0 2%;
    padding-top: 15px;
    padding-bottom: 50px;
    word-wrap: break-word;
}
</style>