tips.vue 909 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view>
  3. <u-navbar :border-bottom="false" :is-back="true" :title="title"></u-navbar>
  4. <view class="u-content">
  5. <u-parse :autosetTitle="true"
  6. :html="content"
  7. :selectable="true"
  8. :show-with-animation="true"
  9. ></u-parse>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. title: '避坑指南',
  18. content: ``
  19. }
  20. },
  21. onLoad() {
  22. let url = "/api/cmsApi/getServiceItemByAjax?type=租房避坑指南"
  23. this.$u.get(url).then(res => {
  24. // console.log(res.data.content);
  25. this.content = res.data.content
  26. });
  27. },
  28. }
  29. </script>
  30. <style>
  31. page {
  32. background-color: #FFFFFF;
  33. }
  34. </style>
  35. <style lang="scss" scoped>
  36. .u-content {
  37. // margin:0 10rpx;
  38. // padding: 24rpx;
  39. font-size: 34 rpx;
  40. color: $u-main-color;
  41. line-height: 1.8;
  42. white-space: pre-wrap !important;
  43. }
  44. </style>