index.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!-- @format -->
  2. <script lang="ts" setup>
  3. import { ConstKeys } from '~/enums/const-enums'
  4. const list = ref([
  5. {
  6. title: 'Real-Time Trend Curation',
  7. subTitle:
  8. 'EJET Spark catalog description, spark the trend, ignate sales. EJET Spark cat description, spark the trend, ignate sales. EJET Spark catalog description, spark the trend, ignate sales. ',
  9. img: 'https://picsum.photos/300/300',
  10. slug: 'test',
  11. },
  12. {
  13. title: 'Real-Time Trend Curation',
  14. subTitle:
  15. 'EJET Spark catalog description, spark the trend, ignate sales. EJET Spark cat description, spark the trend, ignate sales. EJET Spark catalog description, spark the trend, ignate sales. ',
  16. img: 'https://picsum.photos/300/300',
  17. slug: 'test2',
  18. },
  19. {
  20. title: 'Real-Time Trend Curation',
  21. subTitle:
  22. 'EJET Spark catalog description, spark the trend, ignate sales. EJET Spark cat description, spark the trend, ignate sales. EJET Spark catalog description, spark the trend, ignate sales. ',
  23. img: 'https://picsum.photos/300/300',
  24. slug: 'test3',
  25. },
  26. ])
  27. // const { data, pending, error, refresh } = await useAsyncData(
  28. // 'brand-detail',
  29. // () => $fetch(`${ConstKeys.DOMAINPRO}/client/brand/list/default`, { params: { pageNo: 1, pageSize: 8 } }),
  30. // )
  31. // list.value = data.value?.result.records
  32. </script>
  33. <template>
  34. <div class="bg-#fff py-120px">
  35. <div class="w-1200-auto text-center">
  36. <h2 class="text-36px fw-800 text-#333 !mb-20px">
  37. Download with The Latest <span class="custom-title-bg">Trends</span>
  38. </h2>
  39. <div class="text-#999 w-850px text-22px mb-80px mx-auto lh-34px">
  40. Spot emerging hits, viral styles, and seasonal must-haves. Curated with
  41. real-time market insights to help you stock ahead of the trend curve.
  42. </div>
  43. <div class="flex flex-col gap-40px">
  44. <div v-for="(item, index) in list" :key="index">
  45. <business-trends-comp-item v-if="index % 2 === 0" :item="item" />
  46. <business-trends-comp-item2 v-else :item="item" />
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </template>
  52. <style lang="less" scoped>
  53. .custom-title-bg {
  54. position: relative;
  55. display: inline-block;
  56. background: url(~/assets/images/title_bg.png);
  57. background-repeat: no-repeat;
  58. background-position: center 100%;
  59. background-size: 100% auto;
  60. padding-bottom: 8px;
  61. }
  62. </style>