用工小程序前端代码
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
675 B

3 months ago
3 months ago
  1. <template>
  2. <view class="se-p-20">
  3. <view class="se-c-black se-fw-6 se-fs-28">
  4. {{detail.title}}
  5. </view>
  6. <view class="se-mt-20">
  7. <u-parse :content="detail.content" :previewImg="true"></u-parse>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import {
  13. getNotice
  14. } from "@/common/api.js"
  15. export default {
  16. data(){
  17. return{
  18. id:"",
  19. detail:{}
  20. }
  21. },
  22. onLoad(options) {
  23. this.id = options.id
  24. this.onNotice()
  25. },
  26. methods:{
  27. onNotice(){
  28. let that = this;
  29. let params={
  30. newsId:that.id
  31. }
  32. getNotice(params).then(response=>{
  33. that.detail = response.result
  34. }).catch(error=>{
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style>
  41. </style>