home.wxml 2.2 KB

1
  1. <view class="home"><van-search vue-id="1da55560-1" value="{{value}}" placeholder="请输入搜索关键词" data-com-type="wx" bind:__l="__l"></van-search><view class="uni-margin-wrap"><swiper class="swiper" circular="{{true}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"><block wx:for="{{background}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><image class="pictures" src="{{item.imgUrl}}" mode></image></swiper-item></block></swiper></view><van-grid vue-id="1da55560-2" border="{{false}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><van-grid-item vue-id="{{('1da55560-3')+','+('1da55560-2')}}" icon="new-arrival-o" text="新品推荐" data-com-type="wx" bind:__l="__l"></van-grid-item><van-grid-item vue-id="{{('1da55560-4')+','+('1da55560-2')}}" icon="underway-o" text="限时特惠" data-com-type="wx" bind:__l="__l"></van-grid-item><van-grid-item vue-id="{{('1da55560-5')+','+('1da55560-2')}}" icon="hot-o" text="每日疯抢" data-com-type="wx" bind:__l="__l"></van-grid-item><van-grid-item vue-id="{{('1da55560-6')+','+('1da55560-2')}}" icon="coupon-o" text="领优惠券" data-com-type="wx" bind:__l="__l"></van-grid-item></van-grid><van-notice-bar vue-id="1da55560-7" left-icon="volume-o" scrollable="{{false}}" data-com-type="wx" bind:__l="__l" vue-slots="{{['default']}}"><swiper class="list" vertical="true" autoplay="{{3000}}" show-indicators="{{false}}"><block wx:for="{{noticeList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item>{{''+item.title+''}}</swiper-item></block></swiper></van-notice-bar><block wx:for="{{prodList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="product"><view class="title"><text>{{item.title}}</text><text>查看更多</text></view><view class="product_list"><block wx:for="{{item.productDtoList}}" wx:for-item="item1" wx:for-index="index1" wx:key="index1"><view data-event-opts="{{[['tap',[['goDetail',['$0'],[[['prodList','',index],['productDtoList','',index1]]]]]]]}}" class="main" bindtap="__e"><image src="{{item1.pic}}" mode></image><view class="name">{{''+item1.prodName+''}}</view><view class="price">{{'¥'+item1.price+''}}</view></view></block></view></view></block></view>