update 我的消息
This commit is contained in:
@@ -501,6 +501,7 @@ module.exports = {
|
||||
message: {
|
||||
// 我的消息
|
||||
my: {
|
||||
myMessage: 'My Message',
|
||||
title: 'title',
|
||||
publisher: 'publisher',
|
||||
readingStatus: 'readingStatus',
|
||||
|
||||
@@ -531,6 +531,7 @@ module.exports = {
|
||||
message: {
|
||||
// 我的消息
|
||||
my: {
|
||||
myMessage: '我的消息',
|
||||
title: '标题',
|
||||
publisher: '发布人',
|
||||
readingStatus: '阅读状态',
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
<template>
|
||||
<internal-detail-page :title="title" :loading="loading" :content-padding="0">
|
||||
{{data}}
|
||||
<internal-detail-page :title="$t('message.my.myMessage')" :loading="loading" :content-padding="0">
|
||||
<div class="container">
|
||||
<div class="msg-header">
|
||||
<div class="title">{{ model.titile }}</div>
|
||||
<div class="subTitle">
|
||||
<span>{{ $t('message.my.notificationTime') }}:{{ model.sendTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="msg-content">
|
||||
{{ model.msgContent }}
|
||||
</div>
|
||||
</div>
|
||||
</internal-detail-page>
|
||||
</template>
|
||||
|
||||
@@ -12,9 +22,8 @@ export default {
|
||||
components: { InternalDetailPage },
|
||||
data () {
|
||||
return {
|
||||
title: '',
|
||||
loading: false,
|
||||
data: {}
|
||||
model: {}
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -22,14 +31,46 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
initPage () {
|
||||
getMsgDetail({ ids: this.$route.query.id }).then(res => {
|
||||
this.data = res
|
||||
this.loading = true
|
||||
getMsgDetail({ id: this.$route.query.id }).then(res => {
|
||||
if (res.success) {
|
||||
const data = res.result || {}
|
||||
this.model = data
|
||||
this.title = data.titile
|
||||
} else {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$message.warn(err)
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="less" scoped>
|
||||
.container {
|
||||
margin: 0 90px;
|
||||
|
||||
.msg-header {
|
||||
border-bottom: 1px solid #E5E6EB;
|
||||
.title {
|
||||
margin-top: 30px;
|
||||
font-size: 22px;
|
||||
font-family: PingFang SC-Semibold, PingFang SC, sans-serif;
|
||||
font-weight: 600;
|
||||
color: #1D2129;
|
||||
text-align: center;
|
||||
}
|
||||
.subTitle {
|
||||
text-align: right;
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
.msg-content {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user