Merge pull request 'tag 双击取消选中状态' (#116) from chenxuelian into dev
Reviewed-on: http://git.feashow.cn/feashow/pupil/pulls/116
This commit is contained in:
@@ -178,7 +178,7 @@
|
|||||||
goodsParam: {
|
goodsParam: {
|
||||||
sortType: 0,
|
sortType: 0,
|
||||||
cateId: 0,
|
cateId: 0,
|
||||||
tagIds: 0,
|
// tagIds: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNum: 1
|
pageNum: 1
|
||||||
},
|
},
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
menuHeight: 0, // 左边菜单的高度
|
menuHeight: 0, // 左边菜单的高度
|
||||||
menuItemHeight: 0, // 左边菜单item的高度
|
menuItemHeight: 0, // 左边菜单item的高度
|
||||||
tabCurrent: 0, //分类详情 上架时间, // 左边菜单item的高度
|
tabCurrent: 0, //分类详情 上架时间, // 左边菜单item的高度
|
||||||
tagCurrent: 0, //分类详情 上架时间
|
tagCurrent: null, //分类详情 上架时间
|
||||||
imgUrl: '',
|
imgUrl: '',
|
||||||
isAllData: false
|
isAllData: false
|
||||||
}
|
}
|
||||||
@@ -252,13 +252,17 @@
|
|||||||
});
|
});
|
||||||
this.selectedCategory = index
|
this.selectedCategory = index
|
||||||
this.tabCurrent = 0
|
this.tabCurrent = 0
|
||||||
this.tagCurrent = 0
|
this.tagCurrent = null
|
||||||
this.menuCurrent = 0
|
this.menuCurrent = 0
|
||||||
this.getSeconedCategoryList()
|
this.getSeconedCategoryList()
|
||||||
this.showMask = false
|
this.showMask = false
|
||||||
},
|
},
|
||||||
changeSelectedTag(index) {
|
changeSelectedTag(index) {
|
||||||
this.tagCurrent = index
|
if(this.tagCurrent === index) {
|
||||||
|
this.tagCurrent = null
|
||||||
|
} else {
|
||||||
|
this.tagCurrent = index
|
||||||
|
}
|
||||||
this.featureMask = false
|
this.featureMask = false
|
||||||
this.getGoodsList(true)
|
this.getGoodsList(true)
|
||||||
},
|
},
|
||||||
@@ -361,7 +365,7 @@
|
|||||||
...this.goodsParam,
|
...this.goodsParam,
|
||||||
sortType: this.tabCurrent + 1,
|
sortType: this.tabCurrent + 1,
|
||||||
cateId: this.tabbar.length ? this.tabbar[this.menuCurrent].id : 0,
|
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
|
// tagIds: this.tagsList.length ? this.tagsList[this.tagCurrent].id : 0
|
||||||
}
|
}
|
||||||
if (firstPage) {
|
if (firstPage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user