diff --git a/pages_goods/public/js/list.js b/pages_goods/public/js/list.js index 84cefc0..a3e4641 100644 --- a/pages_goods/public/js/list.js +++ b/pages_goods/public/js/list.js @@ -253,13 +253,24 @@ export default { this.coupon_name = resolve }); } - mescroll.endSuccess(newArr.length); - //设置列表数据 - if (mescroll.num == 1) this.goodsList = []; //如果是第一页需手动制空列表 - this.goodsList = this.goodsList.concat(newArr); //追加新数据 - if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); + mescroll.endSuccess(newArr.length); + //设置列表数据 + if (mescroll.num == 1) this.goodsList = []; //如果是第一页需手动制空列表 + this.goodsList = this.goodsList.concat(newArr); //追加新数据 + if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); - this.waterfallflow((mescroll.num - 1) * 10); + // #ifdef MP-HARMONY + // 鸿蒙 ArkUI 对 v-for 数组响应式更新支持不完善,强制触发视图刷新 + setTimeout(() => { + const temp = this.isList; + this.isList = !temp; + setTimeout(() => { + this.isList = temp; + }, 0); + }, 50); + // #endif + + this.waterfallflow((mescroll.num - 1) * 10); }, fail: res => { //联网失败的回调