|
@@ -3,50 +3,50 @@
|
|
|
<el-button id="returnBtn" @click="returnBtn">返回</el-button>
|
|
|
<div class="noticeDetails">
|
|
|
<div class="title">消息详情</div>
|
|
|
- <h3 id="noticeTitle">数字邮局正式上线,创世版首发!</h3>
|
|
|
+ <h3 id="noticeTitle" :data="newsTitle"> {{ newsTitle }}</h3>
|
|
|
<!-- <div class="noticeTitle">数字邮局正式上线,创世版首发!</div> -->
|
|
|
- <h4 id="noticeTime">2023-01-13 11:46:38</h4>
|
|
|
- <div class="noticeContent">
|
|
|
- 邮贝数字邮局,是由中国邮政集团有限公司北京市公司设立,同时使用人民日报全国党媒联盟链进行数字邮品和数字产品的登记、认证与确权,服务广大集邮用户和数字收藏爱好者的邮政官方数字邮品和数字产品发行平台。邮贝数字邮局由北京游贝数字科技有限公司负责运营。
|
|
|
- 1
|
|
|
+ <h4 id="noticeTime" :data="createTime">{{ createTime }}</h4>
|
|
|
+ <div class="noticeContent" :data="newsContent">
|
|
|
+ {{ newsContent }}
|
|
|
</div>
|
|
|
- <p>{{ row_ }}</p>
|
|
|
- </div>
|
|
|
-
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { moreMessage } from '../../api/message/message.js'
|
|
|
-import mitt from '@/utils/mitt.js';
|
|
|
export default {
|
|
|
props:["row_"],
|
|
|
data() {
|
|
|
return {
|
|
|
num:1,
|
|
|
- _row : row_ ,
|
|
|
+ _row : 1 ,
|
|
|
+ newsTitle:"" ,
|
|
|
+ createTime :"" ,
|
|
|
+ newsContent:""
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log("1");
|
|
|
+ let queryObj = this.$route.query.id
|
|
|
+ this._row = queryObj
|
|
|
+ // console.log("----", this._row);
|
|
|
this.getList();
|
|
|
- let queryObj = this.$route.query
|
|
|
-
|
|
|
-
|
|
|
- console.log(queryObj);
|
|
|
- mitt.on("searchMore",(data)=>{
|
|
|
- console.log("*******");
|
|
|
- console.log(data);
|
|
|
- })
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
- moreMessage().then((res) => {
|
|
|
+ // console.log("get" , this._row);
|
|
|
+ moreMessage( this._row ).then((res) => {
|
|
|
console.log(res);
|
|
|
+ this.newsTitle = res.data.newsTitle
|
|
|
+ this.createTime = res.data.createTime
|
|
|
+ this.newsContent = res.data.newsContent
|
|
|
})
|
|
|
},
|
|
|
+ returnBtn(){
|
|
|
+ this.$router.go(-1)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -102,26 +102,3 @@ export default {
|
|
|
</style>
|
|
|
|
|
|
|
|
|
-<script>
|
|
|
-export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- noticeTitle: "",
|
|
|
- noticeTime: "",
|
|
|
- };
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- //获取到当前公告的标题和时间
|
|
|
- this.noticeTitle = document.querySelector("#noticeTitle");
|
|
|
- this.noticeTime = document.querySelector("#noticeTime");
|
|
|
- noticeTitle.innerHTML = this.$route.query.title;
|
|
|
- noticeTime.innerHTML = this.$route.query.publishTime;
|
|
|
- },
|
|
|
- methods:{
|
|
|
- //返回上一页
|
|
|
- returnBtn(){
|
|
|
- this.$router.go(-1)
|
|
|
- }
|
|
|
- }
|
|
|
-};
|
|
|
-</script>
|