index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--
  2. - Copyright (C) 2018-2019
  3. - All rights reserved, Designed By www.joolun.com
  4. - 注意:
  5. - 本软件为www.joolun.com开发研制,项目使用请保留此说明
  6. -->
  7. <view class="cu-bar search bg-white fixed">
  8. <view class="search-form round">
  9. <text class="cuIcon-search"></text>
  10. <navigator class="response" hover-class='none' url='/pages/base/search/index'>
  11. <input type="text" placeholder="请输入商品名" value="{{parameter.name}}"></input>
  12. </navigator>
  13. </view>
  14. <view class="action">
  15. <view class="text-xxl">
  16. <text class="cuIcon-{{viewType ? 'list' : 'cascades'}} text-black" bindtap="viewTypeEdit"></text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="cu-bar justify-center bg-white fixed" style="margin-top:80rpx;box-shadow:none;">
  21. <view class="grid response text-center align-start">
  22. <view class="flex-sub padding-sm margin-xs radius text-blue text-bold">{{title}}</view>
  23. <view class="flex-sub padding-sm margin-xs radius">
  24. <view class="grid text-center" bindtap="sortHandle" data-type='price'>
  25. 价格
  26. <view class="margin-left-xs">
  27. <view class="cuIcon-triangleupfill {{price=='asc' ? 'text-blue' : ''}}" data-type='price'/>
  28. <view class="basis-df"/>
  29. <view class="cuIcon-triangledownfill {{price=='desc' ? 'text-blue' : ''}}" data-type='price'/>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="flex-sub padding-sm margin-xs radius">
  34. <view class="grid text-center" bindtap="sortHandle" data-type='sales'>
  35. 销量
  36. <view class="margin-left-xs">
  37. <view class="cuIcon-triangleupfill {{sales=='asc' ? 'text-blue' : ''}}" data-type='sales'/>
  38. <view class="basis-df"/>
  39. <view class="cuIcon-triangledownfill {{sales=='desc' ? 'text-blue' : ''}}" data-type='sales'/>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="flex-sub padding-sm margin-xs radius">
  44. <view class="{{createTime=='desc' ? 'text-blue text-bold' : ''}}" bindtap="sortHandle" data-type='createTime'>
  45. 新上架
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view style="margin-top:200rpx">
  51. <view wx:if="{{viewType}}">
  52. <goods-card goodsList="{{goodsList}}"/>
  53. </view>
  54. <view wx:if="{{!viewType}}">
  55. <goods-row goodsList="{{goodsList}}"/>
  56. </view>
  57. <view class="cu-load bg-gray {{loadmore?'loading':'over'}}"></view>
  58. </view>