index.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!-- 幻灯片 -->
  2. <view class="swipe" wx:if="{{slider_list.length>0&&has_slider==1}}">
  3. <swiper indicatorDots class="swiper-content" duration="400" autoplay indicatorActiveColor="#FF5344"
  4. indicatorColor="#E7E9E7" interval="5000" circular>
  5. <swiper-item wx:for="{{slider_list}}" wx:key="id">
  6. <button class="banner nav-contact" openType="contact" wx:if="{{item.linktype==5}}">
  7. <i-img iClass="banner-img" loadImage="{{item.image}}"></i-img>
  8. </button>
  9. <view class='banner' bindtap='goBannerUrl' data-idx="{{index}}" wx:else>
  10. <i-img iClass="banner-img" loadImage="{{item.image}}"></i-img>
  11. </view>
  12. </swiper-item>
  13. </swiper>
  14. </view>
  15. <!--搜索框begin-->
  16. <form bindsubmit="goResult" style="display: block;width: 100%;" wx:if="{{false}}">
  17. <view class='search-bar'>
  18. <view class='search-box'>
  19. <input class='ipt' placeholder="搜索商品" confirm-type="搜索" type="text" name="keyword"></input>
  20. <view class='search-icon'>
  21. <text class="iconfont icon-sousuo1"></text>
  22. </view>
  23. </view>
  24. <button class="search-btn" formType="submit" style="color:{{skin.color}}">搜索</button>
  25. </view>
  26. </form>
  27. <!--搜索框end-->
  28. <!-- 列表 -->
  29. <view class="list twoCol mt10 safebottom">
  30. <i-spu-col wx:for="{{rushList}}" wx:if="{{rushList.length&&presale_layout==0}}" wx:key="actId" spuItem="{{item}}" skin="{{skin}}"></i-spu-col>
  31. <i-spu-row wx:for="{{rushList}}" wx:if="{{rushList.length&&presale_layout==1}}" wx:key="actId" spuItem="{{item}}" skin="{{skin}}"></i-spu-row>
  32. <view class="none-rush-list" wx:if="{{showEmpty}}">
  33. <image class="img-block" src="../../images/icon-index-empty.png"></image>
  34. <view class="h1">暂时没有商品</view>
  35. </view>
  36. </view>
  37. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal" needPosition="{{needPosition}}"></i-new-auth>