jiangping
2023-09-13 7cce6eae91aab7a6270174085ddc615fabf8f02c
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
<template>
    <view class="details">
        <view class="details_head">
            <text>{{info.title}}</text>
            <text>{{info.createDate}}</text>
        </view>
        <u-parse :content="content"></u-parse>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                info: {},
                content:  ''
            };
        },
        onLoad(option) {
            this.$u.api.getNoticeDetail({ id: option.content })
                .then(res => {
                    this.content = res.data.content
                    this.info = res.data
                })
        }
    }
</script>
 
<style>
    page {
        background-color: #ffffff;
    }
</style>
 
<style lang="scss">
    .details {
        width: 100%;
        padding: 30rpx;
        box-sizing: border-box;
        .details_head {
            width: 100%;
            display: flex;
            flex-direction: column;
            margin-bottom: 38rpx;
            text {
                &:first-child {
                    font-size: 40rpx;
                    font-family: PingFangSC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #222222;
                }
                &:last-child {
                    font-size: 26rpx;
                    font-family: PingFangSC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #999999;
                    margin-top: 30rpx;
                }
            }
        }
    }
</style>