template.wxml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template name="goodsOpen">
  2. <view wx:if="{{goodsOpen.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  3. <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}" hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsOpen}}" wx:key="*this">
  4. <view class="goods-img">
  5. <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image>
  6. <view class="goods-time-state">
  7. <text>正在热卖</text>
  8. </view>
  9. </view>
  10. <view class="goods-info goods-info-ing">
  11. <text class="goods-title">{{item.item_name}}</text>
  12. <view class="goods-info-content">
  13. <view class="goods-proice">
  14. <text>当前价:</text> <text class="goods-proice-style">{{item.price_bidder}}元</text>
  15. </view>
  16. <view class="goods-info-other">
  17. <text class="shop-name">店铺:{{item.name}}</text>
  18. <view class="attention"><text style="color:#e22">{{item.offer_count}}</text>次出价</view>
  19. </view>
  20. </view>
  21. </view>
  22. </navigator>
  23. </template>
  24. <!-- 已结束 -->
  25. <template name="goodsClose">
  26. <view wx:if="{{goodsClose.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  27. <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}" hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsClose}}" wx:key="*this">
  28. <view class="goods-img">
  29. <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image>
  30. <view class="goods-time-state" style="background:#666;">
  31. <text style="text-align:center">竞买已结束</text>
  32. </view>
  33. </view>
  34. <view class="goods-info goods-info-ing">
  35. <text class="goods-title">{{item.item_name}}</text>
  36. <view class="goods-info-content">
  37. <view class="goods-proice">
  38. <text>成交价:</text> <text class="goods-proice-style">{{item.price_end}}元</text>
  39. </view>
  40. <view class="goods-info-other">
  41. <text class="shop-name">店铺名称:{{item.name}}</text>
  42. <view class="attention"><text style="color:#e22">{{item.offer_count}}</text>次出价</view>
  43. </view>
  44. </view>
  45. </view>
  46. </navigator>
  47. </template>
  48. <!-- 未开始 -->
  49. <template name="goodsNotOpen">
  50. <view wx:if="{{goodsNotOpen.length === 0}}" style="text-align:center;font-size:30rpx;color:#999;line-height:100rpx;">正在努力加载商品~</view>
  51. <navigator class="container-block" url="../details/details?kid={{item.kid}}&title={{item.item_name}}" hover-stay-time="{{hoverStayTime}}" wx:for="{{goodsNotOpen}}" wx:key="*this">
  52. <view class="goods-img">
  53. <image class="" src="{{prodUrl}}web-cp-all/img_pm/img/{{item.bid_file_id}}" lazy-load="true" mode="aspectFill"></image>
  54. <view class="goods-time-state" style="background:#0cd728">
  55. <text>即将开始</text>
  56. </view>
  57. </view>
  58. <view class="goods-info goods-info-ing">
  59. <text class="goods-title">{{item.item_name}}</text>
  60. <view class="goods-info-content">
  61. <view class="goods-proice">
  62. <text>起始价:</text> <text class="goods-proice-style">{{item.price_start}}元</text>
  63. </view>
  64. <view class="goods-info-other">
  65. <text class="shop-name">店铺:{{item.name}}</text>
  66. <view class="attention"><text style="color:#e22">{{item.submit_count}}</text>人报名</view>
  67. </view>
  68. </view>
  69. </view>
  70. </navigator>
  71. </template>
  72. <!-- 没有数据时显示模块 -->
  73. <template name="nullModular">
  74. <view class="null">
  75. <image src='../../images/box.png'></image>
  76. <text>这里空空如也</text>
  77. </view>
  78. </template>