content-static.vue 853 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <script setup>
  2. import { useStaticCustomInfo } from '../../utils/hooks'
  3. import StaticCard from './components/static-card'
  4. const props = defineProps({
  5. source: {
  6. type: String,
  7. default: '',
  8. // required: true,
  9. },
  10. sourceDesc: {
  11. type: String,
  12. default: '',
  13. },
  14. popupTitle: {
  15. type: String,
  16. default: '联系客服,立享1V1管家式服务'
  17. },
  18. type: {
  19. type: String,
  20. default: '1'
  21. },
  22. setClass: {
  23. type: String,
  24. default: ''
  25. }
  26. })
  27. const {
  28. configInfo,
  29. } = useStaticCustomInfo({ props })
  30. console.log(configInfo)
  31. </script>
  32. <script>
  33. export default {
  34. name: 'PCContentStatic',
  35. }
  36. </script>
  37. <template>
  38. <div class="pc-content-static">
  39. <StaticCard :phone="configInfo.phone" :set-class="setClass" :type="props.type" :wxer="configInfo.wxer" />
  40. </div>
  41. </template>
  42. <style scoped lang="scss">
  43. </style>