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

43 lines
695 B

4 months ago
  1. <template>
  2. <!-- 公告 -->
  3. <view class="page">
  4. <navbar title="公告" leftClick @leftClick="$utils.navigateBack" />
  5. <view style="padding: 20rpx;">
  6. <uv-parse :content="NewsById.content"></uv-parse>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. NewsById : {},
  15. id : 0,
  16. }
  17. },
  18. onLoad(args) {
  19. this.id = args.id
  20. this.queryNewsById()
  21. },
  22. methods: {
  23. //公告信息-根据id查询公告信息
  24. queryNewsById(){
  25. this.$api('queryNewsById', {
  26. newsId : this.id
  27. }, res =>{
  28. if(res.code == 200){
  29. this.NewsById = res.result
  30. }
  31. })
  32. },
  33. }
  34. }
  35. </script>
  36. <style scoped lang="scss">
  37. .page {
  38. }
  39. </style>