catalog.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <view class="container">
  2. <view class="search">
  3. <navigator url="/pages/search/search" class="input">
  4. <image class="icon"></image>
  5. <text class="txt">搜索</text>
  6. </navigator>
  7. </view>
  8. <view class="HotName">分类
  9. <text></text>
  10. </view>
  11. <view class="menu-box">
  12. <view wx:for-items="{{categoryList}}" wx:key="id" class="menu-box-list">
  13. <view class="menu-list-title {{currentCategory.id==item.id?'hover':''}}" bindtap="switchCate" id="{{item}}" data-id="{{item}}" data-index="{{index}}">
  14. <text class="{{currentCategory.id==item.id ?'l':''}}"></text> {{item.name}}
  15. <text class="{{currentCategory.id==item.id ?'r':''}}"></text>
  16. </view>
  17. <view class="menu-list-pro" if="{{item.level == 2}}" id="{{item.id}}">
  18. <view class="menu-list-pro" hidden="{{currentCategory.id==item.id ? '':'true'}}">
  19. <!--<navigator url="/pages/category/category?id={{item.id}}" wx:key="id" wx:for="{{currentSubCategoryList}}">
  20. <image class="icon" src="{{item.wapBannerUrl}}"></image>
  21. </navigator>-->
  22. <view class="menu-list-item" wx:for-items="{{currentSubCategoryList}}" wx:key="id" bindtap="levelClick" data-id="{{item.id}}">
  23. <image class="icon" src="{{item.iconUrl}}"></image>
  24. <text class="txt">{{item.name}}</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>