Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
768e5f7c
Commit
768e5f7c
authored
Jul 23, 2020
by
zhijie.xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品和活动使用lazy-load
parent
f488d703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
activityList.wpy
src/components/custom/activityList.wpy
+1
-1
goodsList.wpy
src/components/custom/goodsList.wpy
+1
-1
No files found.
src/components/custom/activityList.wpy
View file @
768e5f7c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
interval="1500">
interval="1500">
<swiper-item wx:for="{{list}}" wx:key="index" catch:touchmove>
<swiper-item wx:for="{{list}}" wx:key="index" catch:touchmove>
<view class="imgwrap">
<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 class="text">{{item.content}}</view>
</view>
</view>
</swiper-item>
</swiper-item>
...
...
src/components/custom/goodsList.wpy
View file @
768e5f7c
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
data-item="{{item}}"
data-item="{{item}}"
class="list-item {{tools.computClass(currentIndex,index,list.length,circular)}}"
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-loading slot="loading" type="spinner" size="20" vertical />
</van-image>
</van-image>
<view class="title">{{item.title}}</view>
<view class="title">{{item.title}}</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment