goods_list.wxml 3.8 KB

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