hls_crm/pages/news/noticeDetail.vue

61 lines
921 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="warp">
<view class="content title">
标题{{info.title}}
</view>
<view class="content time">
时间{{info.createtime}}
</view>
<view class="content">
内容
</view>
<view class="content" v-html="info.content"></view>
</view>
</template>
<script>
import { netNoticeDetail } from '@/api/clues.js'
export default{
data() {
return {
info:{},
id:''
}
},
onLoad(options) {
this.id = options.id
},
onShow() {
this.getDetail()
},
methods:{
getDetail() {
netNoticeDetail({id:this.id}).then(res=>{
this.info = res.data
})
}
}
}
</script>
<style lang="scss" scoped>
.warp{
padding:20rpx 24rpx;
background:#fff;
.content{
font-size:28rpx;
color:#666;
line-height: 45rpx;
width:100%;
}
.title{
font-size:32rpx;
color:#333;
}
.time{
color:#999;
font-size:26rpx;
}
}
</style>