Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
ceeec0c5
Unverified
Commit
ceeec0c5
authored
Nov 17, 2019
by
staney
Committed by
GitHub
Nov 17, 2019
Browse files
首页banner添加产品跳转
首页banner添加产品跳转,需要在litemall-admin管理后台的推广管理-〉广告管理下的广告产品对应项:link 下填写商品ID
parent
7023b205
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/index/index.wxml
View file @
ceeec0c5
...
...
@@ -8,9 +8,14 @@
</view>
<swiper class="banner" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
<swiper-item wx:for="{{banner}}" wx:key="id">
<!-- <navigator url="{{item.link}}"> -->
<image src="{{item.url}}" background-size="cover"></image>
<!-- </navigator> -->
<block wx:if="{{item.link>0}}">
<navigator url="/pages/goods/goods?id={{item.link}}">
<image src="{{item.url}}" background-size="cover"></image>
</navigator>
</block>
<block wx:else>
<image src="{{item.url}}" background-size="cover"></image>
</block>
</swiper-item>
</swiper>
<view class="m-menu">
...
...
Write
Preview
Supports
Markdown
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