goods_cate.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='productSort'>
  3. <view class='header acea-row row-center-wrapper' style='top:{{navH}}rpx'>
  4. <view class='acea-row row-between-wrapper input'>
  5. <text class='iconfont icon-sousuo'></text>
  6. <input type='text' placeholder='点击搜索商品信息' bindconfirm="searchSubmitValue" confirm-type='search' name="search" placeholder-class='placeholder'></input>
  7. </view>
  8. </view>
  9. <view class='aside' style='top:{{navH}}rpx;margin-top:98rpx'>
  10. <block wx:for="{{productList}}" wx:for-item="item" wx:key='index'>
  11. <view class='item acea-row row-center-wrapper {{index==navActive?"on":""}}' data-index='{{index}}' data-id='b{{index}}' bindtap='tap'><text>{{item.cate_name}}</text></view>
  12. </block>
  13. </view>
  14. <view class='conter'>
  15. <scroll-view scroll-y="true" scroll-into-view="{{toView}}" style='height:{{height}}rpx;' bindscroll="scroll" scroll-with-animation='true'>
  16. <block wx:for="{{productList}}" wx:key='index'>
  17. <view class='listw' id="b{{index}}">
  18. <view class='title acea-row row-center-wrapper'>
  19. <view class='line'></view>
  20. <view class='name'>{{item.cate_name}}</view>
  21. <view class='line'></view>
  22. </view>
  23. <view class='list acea-row'>
  24. <block wx:for="{{item.children}}" wx:for-item="item" wx:key='index'>
  25. <navigator hover-class='none' url='/pages/goods_list/goods_list?sid={{item.id}}&title={{item.cate_name}}' class='item acea-row row-column row-middle'>
  26. <view class='picture'><image src='{{item.pic}}'></image></view>
  27. <view class='name line1'>{{item.cate_name}}</view>
  28. </navigator>
  29. </block>
  30. </view>
  31. </view>
  32. </block>
  33. <view style='height:{{height-300}}rpx;' wx:if='{{number<15}}'></view>
  34. </scroll-view>
  35. </view>
  36. </view>