<template>
    <view class="page">
        <view class="list">
            <view class="list_content">{{ officialListDetail.content?officialListDetail.content:'' }}</view>
            <view class="list_time">{{ officialListDetail.createtime_text?officialListDetail.createtime_text:'' }}</view>
        </view>
    </view>
</template>

<script>
import {
    MsgRed,
} from '@/utils/api.js'
import notHave from '@/components/not-have.vue';
import topSafety from '@/components/top-safety.vue';
import tabBar from '@/components/tab-bar.vue';
export default {
    components: {
        notHave,
        topSafety,
        tabBar,
    },
    data() {
        return {
            form: {
                msg_id: '',
            },
            officialListDetail: {}
        }
    },
    onLoad(options) {
        this.officialListDetail = JSON.parse(options.item)
        console.log(this.officialListDetail)
        this.form.msg_id = this.officialListDetail.id
        console.log(this.form.msg_id)
        this.msgRed()
    },
    methods: {
        msgRed() {
            MsgRed(this.form).then(res => {
                return
            })
        },
    }
}
</script>

<style>
page {
    background: #F6F8FA;
}
</style>
<style>
.page {
    position: relative;
    padding: 30rpx;
}

.list {
    position: relative;
    padding: 30rpx;
    background: #FFFFFF;
    border-radius: 16rpx;
}

.list_content {
    font-size: 30rpx;
    color: #333333;
    line-height: 50rpx;
}

.list_time {
    font-size: 24rpx;
    color: #999999;
}
</style>