goods_list.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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}}" />
  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}}
  43. <image src="/images/vip.png"></image>
  44. </view>
  45. <view>已售{{item.sales}}件</view>
  46. </view>
  47. </view>
  48. </view>
  49. </block>
  50. <!-- <navigator class='item {{is_switch==true?"":"on"}}' hover-class='none' wx:for='{{productList}}' url='/pages/goods_details/index?id={{item.id}}' wx:key='index'>
  51. </navigator> -->
  52. <view class="loadingicon acea-row row-center-wrapper" wx:if="{{productList.length > 0}}">
  53. <text class="loading iconfont icon-jiazai" hidden="{{loading==false}}"></text>{{loadTitle}}
  54. </view>
  55. </view>
  56. </view>
  57. <view class="noCommodity" wx:if="{{productList.length==0 && where.page > 1}}">
  58. <view class="pictrue">
  59. <image src="/images/noShopper.png"></image>
  60. </view>
  61. <recommend host_product="{{host_product}}"></recommend>
  62. </view>