fix
This commit is contained in:
@@ -28,14 +28,19 @@ const searchHistory = ref([
|
|||||||
])
|
])
|
||||||
|
|
||||||
let changeSearchBrandTime = null
|
let changeSearchBrandTime = null
|
||||||
|
|
||||||
const changeSearchBrand = () => {
|
const changeSearchBrand = () => {
|
||||||
merchantList.value = []
|
if(!searchBrand.value)return
|
||||||
clearTimeout(changeSearchBrandTime)
|
clearTimeout(changeSearchBrandTime)
|
||||||
|
changeSearchBrandTime = setTimeout(()=>{
|
||||||
|
merchantList.value = []
|
||||||
getDesignerList({
|
getDesignerList({
|
||||||
keyword: searchBrand.value,
|
keyword: searchBrand.value,
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
merchantList.value.push(...res)
|
merchantList.value.push(...res)
|
||||||
})
|
})
|
||||||
|
},500)
|
||||||
|
|
||||||
// changeSearchBrandTime = setTimeout(()=>{
|
// changeSearchBrandTime = setTimeout(()=>{
|
||||||
// getMerchantData.pageNum = 1
|
// getMerchantData.pageNum = 1
|
||||||
// getMerchantData.isShowMark = false
|
// getMerchantData.isShowMark = false
|
||||||
@@ -129,7 +134,7 @@ const {} = toRefs(data);
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<input type="text" v-model="searchBrand" @input="changeSearchBrand" :placeholder="$t('brand.search')">
|
<input type="text" v-model="searchBrand" @input="changeSearchBrand" :placeholder="$t('brand.search')">
|
||||||
<div class="icon">
|
<div class="icon" @click="changeSearchBrand">
|
||||||
<SvgIcon name="brand-search" size="32" />
|
<SvgIcon name="brand-search" size="32" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ defineExpose({})
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.header{
|
.header{
|
||||||
position: sticky;
|
// position: sticky;
|
||||||
top: 0;
|
// top: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.title{
|
.title{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ let detail:any = ref({
|
|||||||
shopName: '',
|
shopName: '',
|
||||||
updateTime: '',
|
updateTime: '',
|
||||||
gender: '',
|
gender: '',
|
||||||
|
sellerId: '',
|
||||||
})
|
})
|
||||||
const sketchList = ref([])
|
const sketchList = ref([])
|
||||||
const illustrationList = ref([])
|
const illustrationList = ref([])
|
||||||
@@ -75,11 +76,14 @@ const getListingDetail = ()=>{
|
|||||||
getListingDetailApi({
|
getListingDetailApi({
|
||||||
id:route.params.id + '',
|
id:route.params.id + '',
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
console.log(res)
|
|
||||||
if(res)detail.value = res
|
if(res)detail.value = res
|
||||||
setImgList(res.images)
|
setImgList(res.images)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const gobrand = () => {
|
||||||
|
if(!detail.value.sellerId)return
|
||||||
|
router.push({path: `/brand/${detail.value.sellerId}`})
|
||||||
|
}
|
||||||
// const vObserve = {
|
// const vObserve = {
|
||||||
// mounted (el,binding) {
|
// mounted (el,binding) {
|
||||||
// },
|
// },
|
||||||
@@ -146,7 +150,7 @@ defineExpose({})
|
|||||||
<div class="info">
|
<div class="info">
|
||||||
<img class="profile" v-avatarLoad="detail.avatar" alt="">
|
<img class="profile" v-avatarLoad="detail.avatar" alt="">
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<div class="name">{{ detail.shopName }}</div>
|
<div class="name" @click="gobrand">{{ detail.shopName }}</div>
|
||||||
<div class="release-time">
|
<div class="release-time">
|
||||||
<span>{{ $t('digitalDetail.ReleaseIn') }} {{ detail.updateTime }}</span>
|
<span>{{ $t('digitalDetail.ReleaseIn') }} {{ detail.updateTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -301,6 +305,7 @@ defineExpose({})
|
|||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
line-height: 120%;
|
line-height: 120%;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.img-price{
|
.img-price{
|
||||||
font-family: KaiseiOpti-Bold;
|
font-family: KaiseiOpti-Bold;
|
||||||
|
|||||||
Reference in New Issue
Block a user