|
@@ -118,8 +118,19 @@ const resetSearch = () => {
|
|
setMaterials()
|
|
setMaterials()
|
|
}
|
|
}
|
|
const submitSearch = () => {
|
|
const submitSearch = () => {
|
|
|
|
+ translateType.value = ''
|
|
setMaterials()
|
|
setMaterials()
|
|
}
|
|
}
|
|
|
|
+const bannersLogoList = computed(() => {
|
|
|
|
+ return bannersLogo.value
|
|
|
|
+ .map((m) => {
|
|
|
|
+ if (m.bannerImgUrl && m.status === 0) {
|
|
|
|
+ return m.bannerImgUrl
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .filter((f) => f)
|
|
|
|
+})
|
|
|
|
+console.log('bannersLogoList', bannersLogoList.value)
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
await setMaterialDealerData()
|
|
await setMaterialDealerData()
|
|
console.log(materialDealerData.value)
|
|
console.log(materialDealerData.value)
|
|
@@ -133,7 +144,7 @@ onMounted(async () => {
|
|
setMaterials(),
|
|
setMaterials(),
|
|
])
|
|
])
|
|
|
|
|
|
- console.log('setBannersLogo', bannersLogo.value)
|
|
|
|
|
|
+ console.log('bannersLogoList', bannersLogoList.value)
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
<template>
|
|
<template>
|
|
@@ -181,12 +192,11 @@ onMounted(async () => {
|
|
<!-- <template v-for="({ brandLevelName, materialsList }, i) in materialDealerData" :key="i">
|
|
<!-- <template v-for="({ brandLevelName, materialsList }, i) in materialDealerData" :key="i">
|
|
<SectionHeading :title="brandLevelName" custom-class="mx-3.5"></SectionHeading>
|
|
<SectionHeading :title="brandLevelName" custom-class="mx-3.5"></SectionHeading>
|
|
</template> -->
|
|
</template> -->
|
|
- <div class="mx-14px bg-[#fff] rounded-2xl">
|
|
|
|
- <wd-swiper
|
|
|
|
- :list="bannersLogo && bannersLogo.map((m) => m.bannerImgUrl)"
|
|
|
|
- :height="330"
|
|
|
|
- autoplay
|
|
|
|
- ></wd-swiper>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="mx-14px bg-[#fff] rounded-2xl"
|
|
|
|
+ v-if="bannersLogoList && bannersLogoList.length > 0"
|
|
|
|
+ >
|
|
|
|
+ <wd-swiper :list="bannersLogoList" :height="330" autoplay></wd-swiper>
|
|
</div>
|
|
</div>
|
|
<div class="text-black/85 mx-14px">
|
|
<div class="text-black/85 mx-14px">
|
|
<div class="flex items-center justify-between py-3.5">
|
|
<div class="flex items-center justify-between py-3.5">
|
|
@@ -211,11 +221,7 @@ onMounted(async () => {
|
|
? '#0CBE7D'
|
|
? '#0CBE7D'
|
|
: ''
|
|
: ''
|
|
"
|
|
"
|
|
- :name="
|
|
|
|
- translateType === 'brandType' || searchParams.manageBrandSet.length > 0
|
|
|
|
- ? 'caret-down-small'
|
|
|
|
- : 'caret-up-small'
|
|
|
|
- "
|
|
|
|
|
|
+ :name="translateType === 'brandType' ? 'caret-up-small' : 'caret-down-small'"
|
|
size="14px"
|
|
size="14px"
|
|
></wd-icon>
|
|
></wd-icon>
|
|
</div>
|
|
</div>
|
|
@@ -238,11 +244,7 @@ onMounted(async () => {
|
|
? '#0CBE7D'
|
|
? '#0CBE7D'
|
|
: ''
|
|
: ''
|
|
"
|
|
"
|
|
- :name="
|
|
|
|
- translateType === 'manageType' || searchParams.manageTypeSet.length > 0
|
|
|
|
- ? 'caret-down-small'
|
|
|
|
- : 'caret-up-small'
|
|
|
|
- "
|
|
|
|
|
|
+ :name="translateType === 'manageType' ? 'caret-up-small' : 'caret-down-small'"
|
|
size="14px"
|
|
size="14px"
|
|
></wd-icon>
|
|
></wd-icon>
|
|
</div>
|
|
</div>
|