|
|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div class="search-pages">
|
|
|
<div class="nav-bos">
|
|
|
- <div v-for="(item, index) in navList" :key="index" class="data-list" @click="onPath(item.url)">
|
|
|
- <el-image class="img" :src="item.imageUrl" />
|
|
|
+ <div v-for="(item, index) in navList" :key="index" class="data-list" @click="onPath(item.advertUrl)">
|
|
|
+ <el-image class="img" :src="item.coverImage" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 筛选 -->
|
|
|
@@ -62,13 +62,13 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { getBrandByCategoryList, getBrandPage } from '@/api/search/index';
|
|
|
-import { getProductCategoryTree } from '@/api/home/index';
|
|
|
+import { getProductCategoryTree, getBandCenterList } from '@/api/home/index';
|
|
|
import { onPath } from '@/utils/siteConfig';
|
|
|
import { Search } from '@element-plus/icons-vue';
|
|
|
const total = ref(0);
|
|
|
const dataList = ref<any>([]);
|
|
|
const classifyList = ref<any>([]);
|
|
|
-const navList = ref<any>([{}, {}, {}, {}, {}]);
|
|
|
+const navList = ref<any>([]);
|
|
|
|
|
|
const httpObj = ref<any>({
|
|
|
categoryId: '',
|
|
|
@@ -128,6 +128,13 @@ const onName = () => {
|
|
|
getList();
|
|
|
};
|
|
|
|
|
|
+//热门方案列表
|
|
|
+getBandCenterList({}).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ navList.value = res.data;
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
getProductCategoryTree({ platform: 0 }).then((res) => {
|
|
|
if (res.code == 200) {
|