Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-limited-sell-miniapp
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
李奇
6 years ago
Commit
970b56ba124c5e8439689dc129a12b4fb94d8363
2 parents
ac46e499
2cdef377
Merge branch 'hotfix/ui' into 'master'
图片lazyload和瘦身 See merge request
!10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
app/pages/product/detail/detail.wxml
app/pages/product/detail/detail.wxml
View file @
970b56b
...
...
@@ -23,22 +23,32 @@
<view class="detail-btn" bindtap="buyNow">查看商品详情</view>
</view>
<view class="line"></view>
<image class="banner-image" bindtap="goList" src="../../../static/images/banner.png"></image>
<image class="banner-image"
lazy-load
bindtap="goList" src="../../../static/images/banner.png"></image>
<view class="detail-container">
<view class="goodsInfo">
<view wx:for="{{productDesc}}">
<block wx:if="{{item.type === 4}}">
<image class="intro-image" src="{{item.imageUrl}}" wx:if="{{item.imageUrl}}" mode="widthFix"></image>
<block wx:if="{{item.type === 2}}">
<!--<video class="desc-video" src="{{item.imageUrl}}"></video>-->
</block>
<block wx:else>
<image class="intro-image" src="{{item.imageUrl}}" wx:if="{{item.imageUrl}}" mode="widthFix"></image>
<view class="desc">{{item.intro}}</view>
<block wx:if="{{item.type === 4}}">
<image lazy-load class="intro-image" src="{{item.imageUrl}}?imageslim"
wx:if="{{item.imageUrl}}"
mode="widthFix"></image>
</block>
<block wx:if="{{item.type === 1}}">
<image lazy-load class="intro-image" src="{{item.imageUrl}}?imageslim"
wx:if="{{item.imageUrl}}" mode="widthFix"></image>
</block>
<block wx:if="{{item.type === 3}}">
<view class="desc">{{item.intro}}</view>
</block>
</block>
</view>
</view>
</view>
<image class="bottom-image" bindtap="goYohobuy" src="../../../static/images/bottom.png"></image>
<image class="bottom-image"
lazy-load
bindtap="goYohobuy" src="../../../static/images/bottom.png"></image>
<view wx:if="{{showAssistList}}" style="height:70rpx;"></view>
<view style="height:100rpx;"></view>
...
...
Please
register
or
login
to post a comment