granary.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <view class="granary-bg">
  2. <view class="granary-top" style="display:none">
  3. <!--<text class="granary-top-zonglei">仓库收成</text>-->
  4. <view class="granary-top-count" wx:if="{{productTotal}}">{{productTotal}}</view>
  5. <view class="granary-top-count" wx:if="{{!productTotal}}">0</view>
  6. <!-- <navigator url="../fund/fund">
  7. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo5.png" class="img"/>
  8. </navigator> -->
  9. </view>
  10. <!-- <view class="granary-btn">
  11. <text class="granary-btn-text">可代销作物</text>
  12. <text class="granary-btn-count">3</text>
  13. <text class="granary-btn-text">剩余份额</text>
  14. <text class="granary-btn-count1">163</text>
  15. <view class="granary-btn-line"></view>
  16. </view> -->
  17. <!-- <view class="granary-title">
  18. <view class="granary-line"></view>收成回报<view class="granary-line1"></view>
  19. </view> -->
  20. <!-- <view class="granary-tip">单款产品24小时内仅能提交一次。</view> -->
  21. <view class="granary-no" wx:if="{{!productList.length}}">
  22. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/unorders.png" class="granary-no__icon"></image>
  23. <view class="granary-no__text">暂无收成</view>
  24. </view>
  25. <view class="granary-list" wx:if="{{productList.length}}">
  26. <view class="mt" wx:for="{{productList}}" wx:key="{{index}}">
  27. <!-- <view class="granary-item" bindtap="review" data-cur="{{index}}"> -->
  28. <view class="granary-item">
  29. <image class="granary-item-img product-img" src="{{item.product.cover}}" />
  30. <text class="granary-item-text">{{item.product.name}}</text>
  31. <view class="granary-item-text1">
  32. <text class="item-money">共{{item.total_count}}份 ( 剩余<text class="shuzi">{{item.left_count}}</text>份 )</text>
  33. <!-- <view class="item-count">代销</view> -->
  34. </view>
  35. <view class="clean"></view>
  36. <!-- <image wx:if="{{curIndex === index}}" src="/images/icon/jiantou.png" class="jiantou" style="transform:rotate({{angle}}deg);" />
  37. <image wx:if="{{curIndex !== index}}" src="/images/icon/jiantou.png" class="jiantou" style="transform:rotate(0deg);" /> -->
  38. </view>
  39. <!-- <view class="granary-down" wx:if="{{show && curIndex === index}}"> -->
  40. <view class="granary-down">
  41. <view class="use" data-id="{{item.id}}" bindtap="toSell" wx:if="{{item.total_count - item.self_use_min > 0}}">
  42. <view class="info">
  43. <text class="title">代销</text>
  44. <currency symbol="¥" value="{{item.product.price}}"></currency>
  45. <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
  46. <!-- <text class="fr" wx:if="{{!item.sold_count}}">设置代销</text> -->
  47. <!-- <text class="fr" wx:if="{{item.sold_count}}">在售{{item.sold_count}}份</text> -->
  48. <text class="fr">已售{{item.sold_count}}份</text>
  49. <text class="fr red" wx:if="{{false}}">下架审核中</text>
  50. </view>
  51. <view class="desc" wx:if="{{item.sold_amount}}">
  52. 已售金额:<currency symbol="¥" value="{{item.sold_amount}}"></currency>
  53. </view>
  54. </view>
  55. <view class="use" data-id="{{item.id}}" bindtap="toBack" wx:if="{{item.buyback_max}}">
  56. <view class="info">
  57. <text class="title">回购</text>
  58. <currency symbol="¥" value="{{item.buyback_price}}"></currency>
  59. <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
  60. <text class="fr" wx:if="{{!item.buyback_count}}">设置回购</text>
  61. <text class="fr" wx:if="{{item.buyback_count}}">{{item.buyback_count}}份</text>
  62. </view>
  63. <view class="desc" wx:if="{{item.buyback_count && item.receive_buyback_amount}}">
  64. 已回款:<currency symbol="¥" value="{{item.buyback_amount}}" ></currency>
  65. </view>
  66. <view class="desc" wx:if="{{!item.buyback_count}}">
  67. 回购期: <format-time type="formatDay" value="{{item.buyback_start_at}}"></format-time>至<format-time type="formatDay" value="{{item.buyback_stop_at}}"></format-time>
  68. </view>
  69. <view class="desc" wx:if="{{item.buyback_count && !item.receive_buyback_amount}}">
  70. 回购期: <format-time type="formatDay" value="{{item.buyback_start_at}}"></format-time>至<format-time type="formatDay" value="{{item.buyback_stop_at}}"></format-time>
  71. </view>
  72. </view>
  73. <view class="use info" data-id="{{item.id}}" bindtap="toMine" wx:if="{{item.buyback_max}}">
  74. <text>自用</text>
  75. <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
  76. <text class="fr"><text wx:if="{{item.self_use_count}}">自用</text>{{item.self_use_count}}份</text>
  77. </view>
  78. <view class="use info" data-id="{{item.id}}" bindtap="toMine1" wx:if="{{!item.buyback_max}}">
  79. <text>自用</text>
  80. <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
  81. <text class="fr"><text wx:if="{{item.self_use_count}}">自用</text>{{item.self_use_count}}份</text>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 底部 -->
  87. <view class="granary-footer" style="padding-bottom: {{value}}rpx;">
  88. <view class="myfarm" bindtap="toFarm">
  89. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo4.png" class="myfarm-img"/>
  90. <view class="myfarm-text">我的团购</view>
  91. </view>
  92. <view class="mygranary" bindtap="toGranary">
  93. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo1.png" class="mygranary-img"/>
  94. <view class="mygranary-text">我的粮仓</view>
  95. </view>
  96. </view>
  97. </view>