tag 双击取消选中状态

This commit is contained in:
”chenxuelian“
2023-05-13 16:16:59 +08:00
parent c6e63a91a0
commit a6310d5db0

View File

@@ -178,7 +178,7 @@
goodsParam: {
sortType: 0,
cateId: 0,
tagIds: 0,
// tagIds: 0,
pageSize: 10,
pageNum: 1
},
@@ -194,7 +194,7 @@
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
tabCurrent: 0, //分类详情 上架时间, // 左边菜单item的高度
tagCurrent: 0, //分类详情 上架时间
tagCurrent: null, //分类详情 上架时间
imgUrl: '',
isAllData: false
}
@@ -252,13 +252,17 @@
});
this.selectedCategory = index
this.tabCurrent = 0
this.tagCurrent = 0
this.tagCurrent = null
this.menuCurrent = 0
this.getSeconedCategoryList()
this.showMask = false
},
changeSelectedTag(index) {
this.tagCurrent = index
if(this.tagCurrent === index) {
this.tagCurrent = null
} else {
this.tagCurrent = index
}
this.featureMask = false
this.getGoodsList(true)
},
@@ -361,7 +365,7 @@
...this.goodsParam,
sortType: this.tabCurrent + 1,
cateId: this.tabbar.length ? this.tabbar[this.menuCurrent].id : 0,
title: this.tagsList.length ? this.tagsList[this.tagCurrent].name : 0
title: this.tagsList.length && (this.tagCurrent || this.tagCurrent === 0) ? this.tagsList[this.tagCurrent].name : ''
// tagIds: this.tagsList.length ? this.tagsList[this.tagCurrent].id : 0
}
if (firstPage) {