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.
 
 
 
 
high-mini/unpackage/dist/dev/mp-weixin/pages/tabBar/home/home.wxml

1 lines
3.3 KiB

<view><block wx:if="{{showHeader}}"><view class="status" style="{{'position:'+(headerPosition)+';'+('top:'+(statusTop)+';')+('opacity:'+(afterHeaderOpacity)+';')}}"></view></block><block wx:if="{{showHeader}}"><view class="header" style="{{'position:'+(headerPosition)+';'+('top:'+(headerTop)+';')+('opacity:'+(afterHeaderOpacity)+';')}}"><view class="addr"><view class="icon location"></view>{{''+city+''}}</view><view class="input-box"><input placeholder="默认关键字" placeholder-style="color:#c0c0c0;" data-event-opts="{{[['tap',[['toSearch']]]]}}" bindtap="__e"/><view class="icon search"></view></view><view class="icon-btn"><view class="icon yuyin-home"></view><view data-event-opts="{{[['tap',[['toMsg',['$event']]]]]}}" class="icon tongzhi" bindtap="__e"></view></view></view></block><block wx:if="{{showHeader}}"><view class="place"></view></block><view class="swiper"><view class="swiper-box"><swiper circular="true" autoplay="true" data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{swiperList}}" wx:for-item="swiper" wx:for-index="__i0__" wx:key="id"><swiper-item><image src="{{swiper.img}}" data-event-opts="{{[['tap',[['toSwiper',['$0'],[[['swiperList','id',swiper.id]]]]]]]}}" bindtap="__e"></image></swiper-item></block></swiper><view class="indicator"><block wx:for="{{swiperList}}" wx:for-item="swiper" wx:for-index="index" wx:key="index"><view class="{{['dots',currentSwiper>=index?'on':'']}}"></view></block></view></view></view><view class="category-list"><block wx:for="{{categoryList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toCategory',['$0'],[[['categoryList','',index]]]]]]]}}" class="category" bindtap="__e"><view class="img"><image src="{{row.img}}"></image></view><view class="text">{{row.name}}</view></view></block></view><view class="banner"><image src="/static/img/banner.jpg"></image></view><view class="promotion"><view class="text">优惠专区</view><view class="list"><block wx:for="{{Promotion}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toPromotion',['$0'],[[['Promotion','',index]]]]]]]}}" class="column" bindtap="__e"><view class="top"><view class="title">{{row.title}}</view><block wx:if="{{row.countdown}}"><view class="countdown"><view>{{row.countdown.h}}</view>:<view>{{row.countdown.m}}</view>:<view>{{row.countdown.s}}</view></view></block></view><view class="left"><view class="ad">{{row.ad}}</view><view class="into">点击进入</view></view><view class="right"><image src="{{row.img}}"></image></view></view></block></view></view><view class="goods-list"><view class="title"><image src="/static/img/hua.png"></image>猜你喜欢<image src="/static/img/hua.png"></image></view><view class="product-list"><block wx:for="{{productList}}" wx:for-item="product" wx:for-index="__i1__" wx:key="goods_id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['productList','goods_id',product.goods_id]]]]]]]}}" class="product" bindtap="__e"><image mode="widthFix" src="{{product.img}}"></image><view class="name">{{product.name}}</view><view class="info"><view class="price">{{product.price}}</view><view class="slogan">{{product.slogan}}</view></view></view></block></view><view class="loading-text">{{loadingText}}</view></view></view>