|
@@ -2,36 +2,17 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ConstKeys } from '~/enums/const-enums'
|
|
|
+import { Api } from '@/api/model/url'
|
|
|
|
|
|
-const list = ref([
|
|
|
- {
|
|
|
- title: 'Real-Time Trend Curation',
|
|
|
- subTitle:
|
|
|
- '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. ',
|
|
|
- img: 'https://picsum.photos/300/300',
|
|
|
- slug: 'test',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'Real-Time Trend Curation',
|
|
|
- subTitle:
|
|
|
- '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. ',
|
|
|
- img: 'https://picsum.photos/300/300',
|
|
|
- slug: 'test2',
|
|
|
- },
|
|
|
- {
|
|
|
- title: 'Real-Time Trend Curation',
|
|
|
- subTitle:
|
|
|
- '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. ',
|
|
|
- img: 'https://picsum.photos/300/300',
|
|
|
- slug: 'test3',
|
|
|
- },
|
|
|
-])
|
|
|
+const list = ref([])
|
|
|
|
|
|
-// const { data, pending, error, refresh } = await useAsyncData(
|
|
|
-// 'brand-detail',
|
|
|
-// () => $fetch(`${ConstKeys.DOMAINPRO}/client/brand/list/default`, { params: { pageNo: 1, pageSize: 8 } }),
|
|
|
-// )
|
|
|
-// list.value = data.value?.result.records
|
|
|
+const requestUrl = `${ConstKeys.DOMAINDEV}${Api.CatalogueList}`
|
|
|
+const params = { pageNo: 1, pageSize: 3, state: 1, trend: 1, order: 'desc' }
|
|
|
+const { data, pending, error, refresh } = await useAsyncData(
|
|
|
+ 'catalogue-list',
|
|
|
+ () => $fetch(requestUrl, { params }),
|
|
|
+)
|
|
|
+list.value = data.value?.result.records
|
|
|
</script>
|
|
|
|
|
|
<template>
|