treaty.vue 781 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="content">
  3. <rich-text :nodes="couContent" ></rich-text>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. couContent: '',
  11. }
  12. },
  13. onLoad() {
  14. this.getDetailData()
  15. },
  16. methods: {
  17. getDetailData() {
  18. console.log('谢雨');
  19. uni.showLoading({
  20. title: '加载中'
  21. })
  22. let url = 'worldKeepCar/keepCarMy/queryTAbouts',
  23. params = {
  24. type:2,
  25. }
  26. this.$http(url, params, 'GET').then(res => {
  27. uni.hideLoading();
  28. if (res.data.contents) {
  29. this.couContent = res.data.contents.replace(/\<p/gi, '<p style="display: inline-block"');
  30. }
  31. })
  32. },
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .content {
  38. background: #F4F5F7;
  39. min-height: 100vh;
  40. padding: 30rpx 24rpx;
  41. }
  42. </style>