Unverified Commit a552b705 authored by linlinjava's avatar linlinjava Committed by GitHub
Browse files

Merge pull request #299 from staneychan/master

增加小程序首页banner广告产品跳转
parents 506a8c01 aca4a2f3
......@@ -34,6 +34,9 @@
<el-form-item label="品牌商ID">
<span>{{ props.row.brandId }}</span>
</el-form-item>
<el-form-item label="商品ID">
<span>{{ props.row.id }}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
......
......@@ -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">
......
Supports Markdown
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