You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<view>
|
|
|
|
<scroll-view scroll-y="true" height="100%">
|
|
|
|
<swiper style="height:180px" indicator-dots="true"
|
|
|
|
autoplay="true" interval="5000" duration="1000">
|
|
|
|
<block wx:for="{{slides}}" wx:for-item="slide">
|
|
|
|
<swiper-item>
|
|
|
|
<navigator url="{{slide.url}}">
|
|
|
|
<image src="{{slide.img}}"/>
|
|
|
|
</navigator>
|
|
|
|
</swiper-item>
|
|
|
|
</block>
|
|
|
|
</swiper>
|
|
|
|
|
|
|
|
<block wx:for="{{items}}" wx:for-item="item">
|
|
|
|
<navigator url="../show_product/show_product?id={{item.id}}">
|
|
|
|
<view>
|
|
|
|
<image class="head-img" src="{{item.attributes['image-url']}}" background-size="cover"></image>
|
|
|
|
</view>
|
|
|
|
<view>
|
|
|
|
<text> {{item.attributes.name}} </text>
|
|
|
|
<text> {{item.attributes.price}} </text>
|
|
|
|
</view>
|
|
|
|
</navigator>
|
|
|
|
</block>
|
|
|
|
</scroll-view>
|
|
|
|
</view>
|