45 lines
908 B
Vue
45 lines
908 B
Vue
<template>
|
|
<view class="page">
|
|
<u-navbar title="公告详情" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
|
|
title-size='36' height='36' id="navbar">
|
|
</u-navbar>
|
|
<u-parse :html="cont" style="width: 100%;height: 88vh;padding: 10rpx;box-sizing: border-box;margin-top: 20rpx;overflow: scroll;"></u-parse>
|
|
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
bgc: {
|
|
backgroundColor: "#fff",
|
|
},
|
|
id:'',
|
|
cont:''
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.id = option.id
|
|
this.getgonggao()
|
|
},
|
|
methods: {
|
|
// 获取公告详情
|
|
getgonggao(){
|
|
this.$u.get(`/app/article/detail?id=${this.id}`).then(res =>{
|
|
if(res.code == 200){
|
|
this.cont = res.data.content
|
|
}
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background: #fff;
|
|
}
|
|
|
|
</style> |