Browse Source

修复积分商城瀑布流渲染问题

master
邓平艺 4 years ago
parent
commit
c74ec4f49e
  1. 12
      components/lf-waterfall-pointgoods/lf-waterfall.vue

12
components/lf-waterfall-pointgoods/lf-waterfall.vue

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<u-waterfall v-model="dataList" ref="uWaterfall" v-for="itemFather of listlength" :key="itemFather" v-if="itemFather == tabindex">
<u-waterfall v-model="dataList" ref="uWaterfall" :key="count">
<template v-slot:left="{leftList}"> <template v-slot:left="{leftList}">
<view class="list-warter" v-for="(item, index) in leftList" :key="index"> <view class="list-warter" v-for="(item, index) in leftList" :key="index">
<view @click="onClick(item.id)"> <view @click="onClick(item.id)">
@ -64,13 +64,13 @@
data(){ data(){
return { return {
// dataList: [] // dataList: []
count: 1
} }
}, },
computed: { computed: {
dataList: { dataList: {
get() { get() {
console.log('组件当前数据====',this.list)
console.log(this.ifsale)
this.clear();
return this.list; return this.list;
}, },
set(newValue) { console.log('newvalue',newValue) } set(newValue) { console.log('newvalue',newValue) }
@ -116,8 +116,10 @@
} }
}, },
clear() { clear() {
console.log('组件名',this.$refs)
this.$refs.uWaterfall[0].clear();
if(this.$isRight(this.$refs)){
this.count++;
this.$refs.uWaterfall.clear && this.$refs.uWaterfall.clear();
}
} }
} }
} }

Loading…
Cancel
Save