You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
2.7 KiB
153 lines
2.7 KiB
<template>
|
|
<view class="main">
|
|
<!-- nav -->
|
|
<navigation>{{ i18n.NotificationDetails }}</navigation>
|
|
<view class="body">
|
|
<!-- #ifdef H5 -->
|
|
<view class="userItemH5">
|
|
<view class="content">
|
|
<view class="title">{{detail.title}}</view>
|
|
<view class="article" v-html="detail.content"></view>
|
|
<view class="date">{{ i18n.Release }}: {{detail.timestr}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- #endif -->
|
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
<view class="userItem">
|
|
<view class="content">
|
|
<view class="title">{{detail.title}}</view>
|
|
<view class="article" v-html="detail.content"></view>
|
|
<view class="date">{{ i18n.Release }}: {{detail.timestr}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- #endif -->
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import api from '@/utils/api'
|
|
export default {
|
|
name: "notificationDetails",
|
|
data() {
|
|
return {
|
|
detail:{},
|
|
};
|
|
},
|
|
computed: {
|
|
i18n() {
|
|
return this.$t("me");
|
|
},
|
|
},
|
|
onLoad(res) {
|
|
this.getNoticeDetail(res.id)
|
|
},
|
|
onShow() {},
|
|
methods: {
|
|
getNoticeDetail(id){
|
|
api.noticeDetail({
|
|
noticeId: id
|
|
}).then(res => {
|
|
this.detail=res
|
|
this.detail.timestr = this.$index.formatyymmddhhmmss(this.detail.addTime)
|
|
})
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.main {
|
|
|
|
.body {
|
|
overflow: hidden;
|
|
padding: 0 24rpx;
|
|
|
|
.userItemH5{
|
|
position: relative;
|
|
background: #211F32;
|
|
border-radius: 32rpx;
|
|
margin-top: 20rpx;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
|
|
.content {
|
|
overflow: hidden;
|
|
|
|
.title {
|
|
width: 640rpx;
|
|
font-size: 28rpx;
|
|
padding: 20rpx 32rpx;
|
|
|
|
}
|
|
|
|
.article {
|
|
border-top: 2rpx solid #323045;
|
|
padding: 20rpx 32rpx;
|
|
font-size: 28rpx;
|
|
color: #A1A0A8;
|
|
}
|
|
|
|
.date {
|
|
width: 610rpx;
|
|
height: 64rpx;
|
|
line-height: 64rpx;
|
|
font-size: 28rpx;
|
|
color: #A1A0A8;
|
|
border-top: 2rpx solid #323045;
|
|
margin-top: 16rpx;
|
|
padding: 0 32rpx;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.userItem {
|
|
position: relative;
|
|
background: #211F32;
|
|
border-radius: 32rpx;
|
|
margin-top: 130rpx;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
|
|
.content {
|
|
overflow: hidden;
|
|
|
|
.title {
|
|
width: 640rpx;
|
|
font-size: 28rpx;
|
|
padding: 20rpx 32rpx;
|
|
|
|
}
|
|
|
|
.article {
|
|
border-top: 2rpx solid #323045;
|
|
padding: 20rpx 32rpx;
|
|
font-size: 28rpx;
|
|
color: #A1A0A8;
|
|
}
|
|
|
|
.date {
|
|
width: 610rpx;
|
|
height: 64rpx;
|
|
line-height: 64rpx;
|
|
font-size: 28rpx;
|
|
color: #A1A0A8;
|
|
border-top: 2rpx solid #323045;
|
|
margin-top: 16rpx;
|
|
padding: 0 32rpx;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
</style>
|
|
|