青蛙卖大米小程序2024-11-24
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.
 
 
 

44 lines
695 B

<template>
<!-- 公告 -->
<view class="page">
<navbar title="公告" leftClick @leftClick="$utils.navigateBack" />
<view style="padding: 20rpx;">
<uv-parse :content="NewsById.content"></uv-parse>
</view>
</view>
</template>
<script>
export default {
data() {
return {
NewsById : {},
id : 0,
}
},
onLoad(args) {
this.id = args.id
this.queryNewsById()
},
methods: {
//公告信息-根据id查询公告信息
queryNewsById(){
this.$api('queryNewsById', {
newsId : this.id
}, res =>{
if(res.code == 200){
this.NewsById = res.result
}
})
},
}
}
</script>
<style scoped lang="scss">
.page {
}
</style>