前端首页下拉样式,头部样式,seller端批量上传

This commit is contained in:
mabo
2021-07-13 18:15:32 +08:00
parent 4c0aec2f42
commit 0e277a8e6d
8 changed files with 153 additions and 85 deletions

View File

@@ -53,6 +53,10 @@ export default {
store: { // 是否为店铺页面
type: Boolean,
default: false
},
hover: {
type: Boolean,
default: false
}
},
data () {
@@ -89,10 +93,14 @@ export default {
} else {
this.logoImg = this.Cookies.getItem('logo')
}
this.searchData = this.$route.query.keyword
hotWords({start: 1, end: 5}).then(res => {
if (res.success) this.promotionTags = res.result
})
if (!this.hover) { // 首页顶部固定搜索栏不调用热词接口
hotWords({start: 1, end: 5}).then(res => {
if (res.success) this.promotionTags = res.result
})
}
}
};
</script>