当nvue循环图片,一行图片有三个的时候,就不能再<cell>
里面循环了,然后不在<cell>
里面的话, loadmore 只触发一次就只触发一次。
解决方法:
<list ref="list1" style="width: 750rpx;" :style="'height:'+(win_h-header_h-60)+'px;'"
v-if="current ==0" @loadmore="loadItem1">
<cell class="list1">
<view class="item1 border" v-for="(item,index) in num1">
<image src="../../static/image/imgs/2.jpg" mode="aspectFill"></image>
</view>
</cell>
</list>
loadItem1(){
console.log("到底了")
this.num1=this.num1+3;
this.resetLoadMore1();
},
//重置下拉刷新
resetLoadMore1() {
this.$refs["list1"].resetLoadmore();
}