goods.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="wrapper">
  2. <view class="app_page-header-search page-header-search">
  3. <view class="app_page-header-search-warp app_width-690">
  4. <label for="header-search">
  5. <image src="../../image/common/search@2x.png"></image>
  6. </label>
  7. <input
  8. placeholder-class="app_header-search-placeholder"
  9. value="{{searchForm.key_words}}"
  10. placeholder="搜索"
  11. data-formkey="key_words"
  12. bind:input="handleKeyWords"></input>
  13. </view>
  14. </view>
  15. <scroll-view
  16. class="app_nav-wrap"
  17. scroll-x="{{true}}"
  18. scroll-with-animation="{{true}}"
  19. scroll-into-view="item-{{searchForm.category_id * 1 < 4 ? navScrollLeft : searchForm.category_id * 1 - 3}}">
  20. <view
  21. class="nav {{searchForm.category_id === item.id ? 'active' : ''}}"
  22. wx:for="{{categoryList}}"
  23. wx:key="id"
  24. data-item="{{item}}"
  25. bind:tap="handleNav">
  26. <view
  27. class="photo"
  28. id="item-{{index}}">
  29. <image src="{{item.category_img_url}}"></image>
  30. </view>
  31. <view class="name">{{item.category_name}}</view>
  32. </view>
  33. </scroll-view>
  34. <!--瀑布流-->
  35. <view class="waterfall">
  36. <view class="waterfall-left">
  37. <block wx:for="{{leftList}}" wx:key="id">
  38. <goods-item-large item="{{item}}"/>
  39. </block>
  40. </view>
  41. <view class="waterfall-right">
  42. <block wx:for="{{rightList}}" wx:key="id">
  43. <goods-item-large item="{{item}}"/>
  44. </block>
  45. </view>
  46. </view>
  47. <!-- 无数据 -->
  48. <view class="list-bitmap" wx:if="{{finished && listData.length < 1}}">
  49. <image src="../../image/common/bitmap.png"></image>
  50. <text>暂无数据</text>
  51. </view>
  52. <view class="pullup-wrapper" wx:if="{{!isRefresh}}">
  53. <van-loading
  54. wx:if="{{!finished}}"
  55. size="24px"
  56. type="spinner">加载中...
  57. </van-loading>
  58. </view>
  59. </view>