index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!--pages/index/index.wxml-->
  2. <view class="head" style="background-color: {{bg_color}}">
  3. <image class="head-logo" src="/static/img/logo.png"></image>
  4. <!-- <image class="head-ok" src="/static/img/ok.png"></image> -->
  5. <swiper class="head-banner" autoplay="true" indicator-active-color="#fff" current="{{bannerIndex}}" interval="2000" duration="1000" circular="true" bindchange="bindchange">
  6. <swiper-item class="head-banner-item" wx:for="{{bannerData}}" wx:key="bannerId">
  7. <image mode="widthFix" src="{{item.imgUrl}}" bindtap="toUrl" data-url="{{item.jumpUrl}}"></image>
  8. </swiper-item>
  9. </swiper>
  10. <view class="banner-dots">
  11. <text wx:for="{{bannerData}}" wx:key="bannerId" style="{{bannerIndex==index?'background-color: #fff;':''}}"></text>
  12. </view>
  13. </view>
  14. <view class="list-item" bindtap="toWebView">
  15. <image src="/static/img/index_beer4.png"></image>
  16. <text>惊喜订购</text>
  17. <text>底价盲盒,季节限定,新鲜罐装,应有尽有</text>
  18. </view>
  19. <view class="list-item" bindtap="toBeerWall">
  20. <image src="/static/img/index_beer1.png"></image>
  21. <text>精酿鲜啤</text>
  22. <text>酒厂直供,最新鲜的鲜啤原浆</text>
  23. </view>
  24. <view class="list-item" bindtap="toFactory">
  25. <image src="/static/img/index_beer2.png"></image>
  26. <text>酿酒厂</text>
  27. <text>纯粹好原料,才有鲜活好口感</text>
  28. </view>
  29. <view class="list-item" bindtap="toBeerStore">
  30. <image src="/static/img/index_beer3.png"></image>
  31. <text>到店品鉴</text>
  32. <text>数百款啤酒,类型丰富、免费试喝</text>
  33. </view>