From 3c3904345a716a4f07d5d70cb630836a606c2f4a Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 15 Apr 2024 16:23:38 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E9=A6=96=E9=A1=B5):[#1113]=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E4=BB=8E=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=A6=96=E9=A1=B5=E6=97=B6=E5=88=B7=E6=96=B0=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=EF=BC=8C=E4=BB=A5=E8=BE=BE=E5=88=B0=E6=AF=8F=E6=AC=A1?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E9=A6=96=E9=A1=B5=E5=B0=96=E8=B4=A7=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E9=83=BD=E9=9A=8F=E6=9C=BA=E5=88=B7=E6=96=B0=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E7=9A=84=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 17 ++++++++++++++++- pkg_user/views/myFavorite.vue | 2 ++ 2 files changed, 18 insertions(+), 1 deletion(-) 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()