金诚优选前端代码
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.

54 lines
1.3 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="true" :showIcon="true" bgColor="#F8F8F8" title="文章详情"></lf-nav>
  4. <view style="height: 30rpx;"></view>
  5. <view class="lf-m-l-32 lf-m-r-32">
  6. <view>
  7. <view class="lf-font-36 lf-color-222 lf-m-b-20 lf-font-bold">
  8. 苦等一年阳澄湖大闸蟹又肥了让你安心吃螃蟹的文章也来了
  9. </view>
  10. <view class="lf-flex lf-m-b-24">
  11. <view class="lf-font-28" style="color: #2D6361;">
  12. 金诚优选线上商城
  13. </view>
  14. <view class="lf-color-777 lf-font-28 lf-m-l-25">
  15. 2021.09.01 16:28:22
  16. </view>
  17. </view>
  18. </view>
  19. <rich-text :nodes="content" v-if="content"></rich-text>
  20. <!-- <lf-nocontent v-else></lf-nocontent> -->
  21. <!-- 回到顶部 -->
  22. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data(){
  29. return {
  30. content: '',
  31. notice_id: 0,
  32. title_content: ''
  33. }
  34. },
  35. onLoad(e){
  36. this.notice_id = e.notice_id;
  37. if(this.notice_id) {
  38. // this.getData();
  39. }
  40. },
  41. methods: {
  42. getData(){
  43. this.$http(this.API.API_NOTICEDETAILS,{id:this.notice_id}).then(res => {
  44. this.content = res.data?.content;
  45. this.title_content = res.data
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style>
  52. </style>