roamfuding-xcx/pages/gonggao.vue

45 lines
936 B
Vue
Raw Normal View History

2025-12-20 14:32:28 +08:00
<template>
<view class="page">
<u-navbar title="公告" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='46' id="navbar">
</u-navbar>
<u-parse :html="obj.content" style="width: 100%;height: 100vh;padding: 10rpx;box-sizing: border-box;margin-top: 20rpx;overflow: scroll;"></u-parse>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
obj:{}
}
},
onLoad(e) {
this.getgonggao(e.id)
},
methods: {
// 请求公告
getgonggao(id){
this.$u.get(`/app/article/detail/${id}`).then(res =>{
if(res.code == 200){
this.obj = res.data
}
})
},
}
}
</script>
<style lang="less">
::v-deep .u-icon__icon,
::v-deep .u-title{
padding-bottom: 22rpx !important;
}
page {
background: #fff;
}
</style>