beerWall.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--pages/beerShop/beerShop.wxml-->
  2. <view class="shop-head">
  3. <view class="page-title">
  4. <text>精酿鲜啤</text>
  5. <text></text>
  6. </view>
  7. <view class="head-box">
  8. <view class="head-view" bindtap="bindHead" data-id="1">
  9. <text style="{{head_item==1?'color:#FF5700':''}}">风格</text>
  10. <image hidden="{{head_item==1}}" src="/static/img/arrow_down.png"></image>
  11. <image hidden="{{head_item!=1}}" src="/static/img/arrow_up.png"></image>
  12. </view>
  13. <view class="head-view" bindtap="bindHead" data-id="2">
  14. <text style="{{head_item==2?'color:#FF5700':''}}">酿酒厂</text>
  15. <image hidden="{{head_item==2}}" src="/static/img/arrow_down.png"></image>
  16. <image hidden="{{head_item!=2}}" src="/static/img/arrow_up.png"></image>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="kong"></view>
  21. <view hidden="{{!choice_show}}" class="choice-show" catchtap="choiceShow">
  22. <view wx:if="{{head_item==1}}" class="choice-view">
  23. <view class="choice-box" wx:for="{{styleList}}" wx:key="beerTypeId" catchtap="chooseStyle" data-id="{{item.beerTypeId}}">
  24. <text style="{{beerTypeId==item.beerTypeId?'color:#FF5700':''}}">{{item.beerTypeName}}</text>
  25. <image style="{{beerTypeId==item.beerTypeId?'display:block':''}}" src="/static/img/choose.png"></image>
  26. </view>
  27. </view>
  28. <view wx:if="{{head_item==2}}" class="choice-view">
  29. <view class="choice-box" wx:for="{{breweryTagList}}" wx:key="breweryId" catchtap="chooseBrewery" data-id="{{item.breweryId}}">
  30. <text style="{{breweryId==item.breweryId?'color:#FF5700':''}}">{{item.breaweryName}}</text>
  31. <image style="{{breweryId==item.breweryId?'display:block':''}}" src="/static/img/choose.png"></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="beer-item" wx:for="{{productDataList}}" wx:key="index" data-pid="{{item.productId}}" bindtap="toBeerDetail">
  36. <image mode="aspectFill" src="{{item.coverImgUrl}}"></image>
  37. <text>{{item.name}}</text>
  38. <view class="beer-origin">
  39. <image src="{{item.breweryLogo}}"></image>
  40. <text>{{item.breweryName}}</text>
  41. <text>{{item.breweryPlace}}</text>
  42. </view>
  43. </view>
  44. <view hidden="{{productDataList.length!=0}}" class="nonedata-style">
  45. <image src="/static/img/hemaNo.png"></image>
  46. <text>暂无数据</text>
  47. </view>