update 我的消息
This commit is contained in:
@@ -501,6 +501,7 @@ module.exports = {
|
|||||||
message: {
|
message: {
|
||||||
// 我的消息
|
// 我的消息
|
||||||
my: {
|
my: {
|
||||||
|
myMessage: 'My Message',
|
||||||
title: 'title',
|
title: 'title',
|
||||||
publisher: 'publisher',
|
publisher: 'publisher',
|
||||||
readingStatus: 'readingStatus',
|
readingStatus: 'readingStatus',
|
||||||
|
|||||||
@@ -531,6 +531,7 @@ module.exports = {
|
|||||||
message: {
|
message: {
|
||||||
// 我的消息
|
// 我的消息
|
||||||
my: {
|
my: {
|
||||||
|
myMessage: '我的消息',
|
||||||
title: '标题',
|
title: '标题',
|
||||||
publisher: '发布人',
|
publisher: '发布人',
|
||||||
readingStatus: '阅读状态',
|
readingStatus: '阅读状态',
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<internal-detail-page :title="title" :loading="loading" :content-padding="0">
|
<internal-detail-page :title="$t('message.my.myMessage')" :loading="loading" :content-padding="0">
|
||||||
{{data}}
|
<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>
|
</internal-detail-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -12,9 +22,8 @@ export default {
|
|||||||
components: { InternalDetailPage },
|
components: { InternalDetailPage },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
title: '',
|
|
||||||
loading: false,
|
loading: false,
|
||||||
data: {}
|
model: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -22,14 +31,46 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initPage () {
|
initPage () {
|
||||||
getMsgDetail({ ids: this.$route.query.id }).then(res => {
|
this.loading = true
|
||||||
this.data = res
|
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>
|
</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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user