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.
huitong/pages/goods_details/noticeItem.vue

50 lines
763 B

9 months ago
<template>
7 months ago
<view style="padding: 24rpx;">
<view class="title">
{{title}}
</view>
<view class="time">
{{time}}
</view>
9 months ago
<u-parse :content="content"></u-parse>
7 months ago
</view>
9 months ago
</template>
<script>
import { getNoticeList } from '@/api/user.js';
export default{
data(){
return{
content:'',
7 months ago
title:'',
time:''
9 months ago
}
},
onLoad(option) {
console.log(option);
getNoticeList().then(res=>{
let list= res.data.list;
list.forEach(item=>{
if(item.notice_id==option.id){
7 months ago
this.title = item.notice_title
this.time = item.create_time
this.content = item.notice_content;
9 months ago
}
})
})
}
}
</script>
<style lang="scss" scoped>
7 months ago
.title{
font-size: 40rpx;
}
.time{
text-align: right;
margin: 20rpx 0;
color: #aaaaaa;
}
9 months ago
</style>