Commit 768e5f7c authored by zhijie.xue's avatar zhijie.xue

商品和活动使用lazy-load

parent f488d703
......@@ -11,7 +11,7 @@
interval="1500">
<swiper-item wx:for="{{list}}" wx:key="index" catch:touchmove>
<view class="imgwrap">
<image class="img" src="{{item.avatarUrl}}"></image>
<image lazy-load="{{true}}" class="img" src="{{item.avatarUrl}}"></image>
<view class="text">{{item.content}}</view>
</view>
</swiper-item>
......
......@@ -24,7 +24,7 @@
data-item="{{item}}"
class="list-item {{tools.computClass(currentIndex,index,list.length,circular)}}"
>
<van-image use-loading-slot src="{{item.images}}" class="img" width="220rpx" height="210rpx" radius="10rpx" fit="cover">
<van-image lazy-load="{{true}}" use-loading-slot src="{{item.images}}" class="img" width="220rpx" height="210rpx" radius="10rpx" fit="cover">
<van-loading slot="loading" type="spinner" size="20" vertical />
</van-image>
<view class="title">{{item.title}}</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment