zhaojs
2023-05-26 802501cb668f2962c0daab7ecbd1489844284b77
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<template>
    <view class="articleDetails-container wrapperLayer">
    </view>
</template>
 
<script>
    import titleBar from '../../components/backTitlebar.vue';
    import replaceContent from '../../utils/replaceContent.js'
    import jyfParser from "@/components/jyf-parser/jyf-parser";
    export default {
        components: {
            jyfParser,
            titleBar
        },
        data() {
            return {
                pageInfo: ''
            }
        },
        onLoad(options) {
            this.id = options.id
            this.getDetails()
        },
        methods: {
            ccc(e){
                console.log(e);
            },
            getDetails() {
                this.$http.post('talentInfo/getTalentArticle', {
                    id: this.id
                }).then((res) => {
                    console.log(res, '========>页面数据');
                    res.articleLabel = replaceContent.replaceImg(res.articleLabel)
                    this.pageInfo = res
                })
            }
        }
    }
</script>
 
<style lang="scss">
    .articleDetails-container {
        background-color: #FFFFFF;
        min-height: 100vh;
 
        .pageContent-container {
            width: 100%;
 
            .topbannerbox {
                width: 100%;
                height: 415rpx;
            }
 
            .pageTitle {
                width: 100%;
                margin-top: 32rpx;
                color: #3c2b2a;
                font-weight: 600;
                font-size: 38rpx;
            }
 
            .authorinfo-container {
                width: 100%;
                padding-top: 40rpx;
                padding-bottom: 30rpx;
 
                .left-info {
                    width: 100%;
 
                    .avatorbox {
                        width: 90rpx;
                        height: 90rpx;
                        overflow: hidden;
                        border-radius: 50%;
                    }
 
                    .infobox {
                        margin-left: 20rpx;
 
                        .nickname {
                            font-size: 24rpx;
                            font-weight: 500;
                            color: #333333;
                        }
 
                        .timer {
                            font-size: 24rpx;
                            font-weight: 400;
                            color: #999999;
                        }
                    }
                }
 
                .right-watch-container {
                    font-size: 24rpx;
                    white-space: nowrap;
                    font-weight: 400;
                    color: #999999;
                }
            }
 
            .subTitle {
                font-size: 24rpx;
                font-weight: 400;
                color: #333333;
            }
 
            .article-newpage-write {
                width: 100%;
                margin-top: 50rpx;
 
                p {
                    color: #635959;
                    line-height: 64rpx;
                    margin: 0;
                    text-align: justify;
                }
            }
        }
    }
</style>