detail.vue 461 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <view class="cmain">
  3. <u-divider :dot="true"></u-divider>
  4. <u-parse :content="content"></u-parse>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. content:''
  12. };
  13. },
  14. onLoad(e) {
  15. if (e.id) {
  16. this.http.request({
  17. url: '/level-one-server/app/TbPortNews/getPortNewsDetails',
  18. data: { id: e.id },
  19. success: res => {
  20. this.content = res.data.data;
  21. }
  22. });
  23. }
  24. }
  25. };
  26. </script>
  27. <style lang="scss"></style>