diff --git a/pages/home/index.vue b/pages/home/index.vue index 54a59b5..615ed52 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -410,8 +410,12 @@ export default { this.getUnreadMsgList(); } - //获取团购商品 + // 获取团购商品 this.getGroupGoods(); + // fix bug#1113 + if (this.bastList.length > 0) { + this.getBastList() + } }, onShareAppMessage() { return { @@ -528,6 +532,17 @@ export default { }); }); }, + getBastList() { + getHomeData().then(res => { + const { success, data } = res + if (success) { + for (let i = 0; i < data.bastList.length; i++) { + data.bastList[i].hide = true + } + this.$set(that, 'bastList', data.bastList) + } + }) + }, getGroupGoods() { var params = { page: 1, diff --git a/pkg_user/views/myFavorite.vue b/pkg_user/views/myFavorite.vue index 4838ea1..abceba5 100644 --- a/pkg_user/views/myFavorite.vue +++ b/pkg_user/views/myFavorite.vue @@ -186,6 +186,8 @@ export default { changeTabs(index) { if (this.isManage) return + // fix bug#1111 + this.isAll = false this.tabsIndex = index this.page = 1 this.fetchData()