goods_list.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <authorize bind:onLoadFun="onLoadFun"></authorize>
  3. <view class='productList'>
  4. <view class='search bg-color acea-row row-between-wrapper' style='top:{{navH}}rpx'>
  5. <view class='input acea-row row-between-wrapper'><text class='iconfont icon-sousuo'></text>
  6. <form bindsubmit="searchSubmit">
  7. <input placeholder='搜索商品信息' placeholder-class='placeholder' placeholder='搜索商品名称'
  8. placeholder-class='placeholder' bindconfirm="searchSubmit" confirm-type='search' name="search"
  9. value='{{where.keyword}}'></input>
  10. </form>
  11. </view>
  12. <view class='iconfont {{is_switch==true?"icon-pailie":"icon-tupianpailie"}}' bindtap='Changswitch'></view>
  13. </view>
  14. <view class='nav acea-row row-middle' style='top:{{navH}}rpx;margin-top:86rpx'>
  15. <view class='item {{title ? "font-color":""}}' bindtap='set_where' data-type='1'>{{title ? title:'默认'}}</view>
  16. <view class='item' bindtap='set_where' data-type='2'>
  17. 价格
  18. <image wx:if="{{price==1}}" src='/images/up.png'></image>
  19. <image wx:elif="{{price==2}}" src='/images/down.png'></image>
  20. <image wx:else src='/images/horn.png'></image>
  21. </view>
  22. <view class='item' bindtap='set_where' data-type='3'>
  23. 销量
  24. <image wx:if="{{stock==1}}" src='/images/up.png'></image>
  25. <image wx:elif="{{stock==2}}" src='/images/down.png'></image>
  26. <image wx:else src='/images/horn.png'></image>
  27. </view>
  28. <!-- down -->
  29. <view class='item {{nows ? "font-color":""}}' bindtap='set_where' data-type='4'>新品</view>
  30. </view>
  31. <view class='list acea-row row-between-wrapper {{is_switch==true?"":"on"}}'>
  32. <block wx:for="{{productList}}" wx:key='index'>
  33. <view class='item {{is_switch==true?"":"on"}}' bindtap="goDetail" data-items='{{item}}'>
  34. <view class='pictrue {{is_switch==true?"":"on"}}'>
  35. <image src='{{item.image}}' class='{{is_switch==true?"":"on"}}'></image>
  36. <text class='{{is_switch === true ? "pictrue_log_big" : "pictrue_log"}} pictrue_log_class'
  37. wx:if="{{item.activity && item.activity.type ==='1'}}">秒杀</text>
  38. <text class='{{is_switch === true ? "pictrue_log_big" : "pictrue_log"}} pictrue_log_class'
  39. wx:if="{{item.activity && item.activity.type === '2'}}">砍价</text>
  40. <text class='{{is_switch === true ? "pictrue_log_big" : "pictrue_log"}} pictrue_log_class'
  41. wx:if="{{item.activity && item.activity.type === '3'}}">拼团</text>
  42. </view>
  43. <view class='text {{is_switch==true?"":"on"}}'>
  44. <view class='name line1'>{{item.store_name}}</view>
  45. <view class='money font-color {{is_switch==true?"":"on"}}'>¥<text class='num'>{{item.price}}</text>
  46. </view>
  47. <view class='vip acea-row row-between-wrapper {{is_switch==true?"":"on"}}'>
  48. <view class='vip-money' wx:if="{{item.vip_price && item.vip_price > 0}}">¥{{item.vip_price}}
  49. <image src='/images/vip.png'></image>
  50. </view>
  51. <view>已售{{item.sales}}件</view>
  52. </view>
  53. </view>
  54. </view>
  55. </block>
  56. <!-- <navigator class='item {{is_switch==true?"":"on"}}' hover-class='none' wx:for='{{productList}}' url='/pages/goods_details/index?id={{item.id}}' wx:key='index'>
  57. </navigator> -->
  58. <view class='loadingicon acea-row row-center-wrapper' wx:if='{{productList.length > 0}}'>
  59. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  60. </view>
  61. </view>
  62. </view>
  63. <view class='noCommodity' wx:if="{{productList.length==0 && where.page > 1}}">
  64. <view class='pictrue'>
  65. <image src='/images/noShopper.png'></image>
  66. </view>
  67. <recommend host_product="{{host_product}}"></recommend>
  68. </view>