工单小程序2024-11-20
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
653 B

6 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. queryNewsById(){
  24. this.$api('queryNewsById', {
  25. newsId : this.id
  26. }, res =>{
  27. if(res.code == 200){
  28. this.NewsById = res.result
  29. }
  30. })
  31. },
  32. }
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .page {
  37. }
  38. </style>