mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 08:27:20 +08:00
【修复】修复首页瀑布流组件应用于组合tabs切换的情况下,数据越多渲染越慢的情况。
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="coreshop-text-black">
|
<view class="coreshop-text-black">
|
||||||
<custom-waterfalls-flow :value="newData.list" :column="newData.column" @wapperClick="wapperClick" @imageClick="imageClick" v-if="newData.column>1">
|
<custom-waterfalls-flow ref="waterfallsFlowRef" :value="newData.list" :column="newData.column" @wapperClick="wapperClick" @imageClick="imageClick" v-if="newData.column>1">
|
||||||
<!-- #ifdef MP-WEIXIN -->
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<view class="goods coreshop-padding-bottom-10 coreshop-bg-main" v-for="(item,index) in newData.list" :key="index" slot="slot{{index}}">
|
<view class="goods coreshop-padding-bottom-10 coreshop-bg-main" v-for="(item,index) in newData.list" :key="index" slot="slot{{index}}">
|
||||||
<view class="coreshop-padding-top-6 coreshop-padding-bottom-3 coreshop-padding-left-8 coreshop-padding-right-8 coreshop-bg-main coreshop-border-radius-bl-18">
|
<view class="coreshop-padding-top-6 coreshop-padding-bottom-3 coreshop-padding-left-8 coreshop-padding-right-8 coreshop-bg-main coreshop-border-radius-bl-18">
|
||||||
@@ -188,6 +188,7 @@
|
|||||||
for (var i = 0; i < _this.coreshopData.parameters.list.length; i++) {
|
for (var i = 0; i < _this.coreshopData.parameters.list.length; i++) {
|
||||||
if (_this.current == i) {
|
if (_this.current == i) {
|
||||||
_this.newData = this.coreshopData.parameters.list[i];
|
_this.newData = this.coreshopData.parameters.list[i];
|
||||||
|
_this.$refs.waterfallsFlowRef.refresh();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|||||||
Reference in New Issue
Block a user