footer collectionstory语言适配

This commit is contained in:
X1627315083@163.com
2026-05-26 10:01:07 +08:00
parent 9b86a9f65e
commit ab556a17e7
8 changed files with 66 additions and 19 deletions

View File

@@ -29,11 +29,11 @@ const searchHistory = ref([
let changeSearchBrandTime = null
const changeSearchBrand = () => {
merchantList.value = []
clearTimeout(changeSearchBrandTime)
getDesignerList({
keyword: searchBrand.value,
}).then((res)=>{
merchantList.value = []
merchantList.value.push(...res)
})
// changeSearchBrandTime = setTimeout(()=>{
@@ -103,6 +103,11 @@ const viewProfile = (item) => {
})
}
const setSearchHistory = (item) => {
searchBrand.value = item
changeSearchBrand()
}
onMounted(()=>{
const value = localStorage.getItem('brandSearchHistory');
if(value)searchHistory.value = JSON.parse(value)
@@ -113,7 +118,7 @@ defineExpose({})
const {} = toRefs(data);
</script>
<template>
<div class="brand">
<div class="brand">
<div class="header-img" :class="{'active': searchBrand.length > 0}">
<img src="@/assets/images/brand/brandBg.png" alt="">
<div class="text-box">
@@ -129,7 +134,7 @@ const {} = toRefs(data);
</div>
</div>
<div class="merchantList" v-if="searchBrand.length > 0">
<brand-item v-for="item in merchantList" :key="item.name" :item="item" @viewProfile="viewProfile"></brand-item>
<brand-item v-for="item in merchantList" :key="item.sellerId" :item="item" @viewProfile="viewProfile"></brand-item>
<div class="end" v-show="!getMerchantData.isNoData && !getMerchantData.isShowMark">- The End-</div>
<!-- <div v-show="!getMerchantData.isNoData" class="material_content_list_loding">
<span class="page_loading" v-show="!getMerchantData.isShowMark" v-observe="getBrandList"></span>
@@ -153,7 +158,7 @@ const {} = toRefs(data);
<span>Searching History</span>
</div>
<div class="history">
<div v-for="item in searchHistory" :key="item" @click.stop="searchBrand = item" class="item">
<div v-for="item in searchHistory" :key="item" @click.stop="setSearchHistory(item)" class="item">
<span>{{item}}</span>
<div class="icon" @click.stop="deleteHistory(item)">
<SvgIcon name="brand-delete" size="18" />
@@ -287,7 +292,7 @@ const {} = toRefs(data);
.end{
font-family: 'KaiseiOpti-Regular';
font-weight: 400;
font-size: 12px;
font-size: 1.2rem;
line-height: 140%;
height: 7rem;
display: flex;