1
0

index.vue 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="main">
  3. <view class="content">
  4. <view class="con">
  5. <u-parse :content="item.brief"></u-parse>
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. item: {}
  15. };
  16. },
  17. onLoad(e) {
  18. this.http.request({
  19. url: '/app/common/introduction/医院介绍',
  20. success: (res) => {
  21. this.item = res.data.data;
  22. this.item.brief = res.data.data.brief.replace(new RegExp('/profile/upload/', 'g'), this.http.ip + '/profile/upload/');
  23. }
  24. });
  25. },
  26. methods: {},
  27. //分享
  28. onShareAppMessage: function (res) {
  29. return {
  30. title: this.item.title,
  31. path: '/pages/news/detail?id=' + this.item.id,
  32. success: (res) => {},
  33. fail: (res) => {}
  34. };
  35. }
  36. };
  37. </script>
  38. <style lang="scss">
  39. .main {
  40. padding: 0px 10px 10px 10px;
  41. }
  42. .content {
  43. padding: 15px;
  44. background-color: white;
  45. border-radius: 8px;
  46. .con {
  47. font-size: 14px;
  48. line-height: 23px;
  49. image {
  50. border-radius: 5px !important;
  51. }
  52. }
  53. }
  54. </style>