qingyiay
2023-04-14 0becab45282781f281ad5aa04202b83039ab275e
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
<template>
    <view>
        <combined-title title="消息详情"></combined-title>
        <view class="compDetails">
            <uni-table border stripe emptyText="暂无更多数据">
                <uni-tr>
                    <uni-th align="left">消息标题</uni-th>
                    <uni-td align="left">{{ detail.title || '' }}</uni-td>
                </uni-tr>
                <uni-tr>
                    <uni-th align="left">消息内容</uni-th>
                    <uni-td align="left">{{ detail.content || '' }}</uni-td>
                </uni-tr>
                <uni-tr>
                    <uni-th align="left">创建时间</uni-th>
                    <uni-td align="left">{{ detail.createTime || '' }}</uni-td>
                </uni-tr>
            </uni-table>
        </view>
    </view>
</template>
 
<script>
export default {
    data() {
        return {
            index: '',
            detail: {},
            messageId: '',
            id: ''
        };
    },
    onLoad(v) {
        this.messageId = v.messageId;
        this.id = v.id;
    },
    onShow() {
        this.getDetail();
    },
    methods: {
        getDetail() {
            this.$reqGet('getMsgDetail', { messageId: this.messageId, id: this.id }).then(res => {
                this.detail = res.data;
            });
        }
    }
};
</script>
 
<style></style>