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
a552b705
"vscode:/vscode.git/clone" did not exist on "fdaa34d58a4129d92cca6f091b0a93fa2fea0be3"
Unverified
Commit
a552b705
authored
Nov 17, 2019
by
linlinjava
Committed by
GitHub
Nov 17, 2019
Browse files
Merge pull request #299 from staneychan/master
增加小程序首页banner广告产品跳转
parents
506a8c01
aca4a2f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/goods/list.vue
View file @
a552b705
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
<el-form-item
label=
"品牌商ID"
>
<el-form-item
label=
"品牌商ID"
>
<span>
{{
props
.
row
.
brandId
}}
</span>
<span>
{{
props
.
row
.
brandId
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品ID"
>
<span>
{{
props
.
row
.
id
}}
</span>
</el-form-item>
</el-form>
</el-form>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
litemall-wx/pages/index/index.wxml
View file @
a552b705
...
@@ -8,9 +8,14 @@
...
@@ -8,9 +8,14 @@
</view>
</view>
<swiper class="banner" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
<swiper class="banner" indicator-dots="true" autoplay="true" interval="3000" duration="1000">
<swiper-item wx:for="{{banner}}" wx:key="id">
<swiper-item wx:for="{{banner}}" wx:key="id">
<!-- <navigator url="{{item.link}}"> -->
<block wx:if="{{item.link>0}}">
<image src="{{item.url}}" background-size="cover"></image>
<navigator url="/pages/goods/goods?id={{item.link}}">
<!-- </navigator> -->
<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-item>
</swiper>
</swiper>
<view class="m-menu">
<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