join.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="common-details-container" v-if="content?.intro || content?.image">
  3. <view class="common-header-wrapper join">
  4. <image :src="content.image" mode="scaleToFill" />
  5. </view>
  6. <view class="common-content-wrapper">
  7. <view class="common-card">
  8. <view class="common-card-content">
  9. <u-parse :html="content.intro" />
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="no-data-container" v-else>
  15. <u-empty />
  16. </view>
  17. </template>
  18. <script setup lang="ts">
  19. import { ref } from 'vue'
  20. import { onLoad } from '@dcloudio/uni-app'
  21. import { getParkServiceInvestment } from '@/api/home'
  22. import { useGlobal } from '../../composables/index'
  23. const { minioUrl } = useGlobal()
  24. // 招商加盟详情
  25. const joinInfo = ref<any>({})
  26. const content = ref<any>({})
  27. onLoad(async () => {
  28. const parkId = uni.getStorageSync('parkId')
  29. if (parkId) {
  30. const res = await getParkServiceInvestment(parkId)
  31. if (res.code === 200) {
  32. joinInfo.value = res.data
  33. content.value = JSON.parse(joinInfo.value.content)
  34. }
  35. }
  36. })
  37. </script>
  38. <style lang="scss" scoepd>
  39. @import '../base.scss';
  40. </style>