| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <view class="granary-bg">
- <view class="granary-top" style="display:none">
- <!--<text class="granary-top-zonglei">仓库收成</text>-->
- <view class="granary-top-count" wx:if="{{productTotal}}">{{productTotal}}</view>
- <view class="granary-top-count" wx:if="{{!productTotal}}">0</view>
- <!-- <navigator url="../fund/fund">
- <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo5.png" class="img"/>
- </navigator> -->
- </view>
- <!-- <view class="granary-btn">
- <text class="granary-btn-text">可代销作物</text>
- <text class="granary-btn-count">3</text>
- <text class="granary-btn-text">剩余份额</text>
- <text class="granary-btn-count1">163</text>
- <view class="granary-btn-line"></view>
- </view> -->
- <!-- <view class="granary-title">
- <view class="granary-line"></view>收成回报<view class="granary-line1"></view>
- </view> -->
- <!-- <view class="granary-tip">单款产品24小时内仅能提交一次。</view> -->
- <view class="granary-no" wx:if="{{!productList.length}}">
- <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/unorders.png" class="granary-no__icon"></image>
- <view class="granary-no__text">暂无收成</view>
- </view>
- <view class="granary-list" wx:if="{{productList.length}}">
- <view class="mt" wx:for="{{productList}}" wx:key="{{index}}">
- <!-- <view class="granary-item" bindtap="review" data-cur="{{index}}"> -->
- <view class="granary-item">
- <image class="granary-item-img product-img" src="{{item.product.cover}}" />
- <text class="granary-item-text">{{item.product.name}}</text>
- <view class="granary-item-text1">
- <text class="item-money">共{{item.total_count}}份 ( 剩余<text class="shuzi">{{item.left_count}}</text>份 )</text>
- <!-- <view class="item-count">代销</view> -->
- </view>
- <view class="clean"></view>
- <!-- <image wx:if="{{curIndex === index}}" src="/images/icon/jiantou.png" class="jiantou" style="transform:rotate({{angle}}deg);" />
- <image wx:if="{{curIndex !== index}}" src="/images/icon/jiantou.png" class="jiantou" style="transform:rotate(0deg);" /> -->
- </view>
- <!-- <view class="granary-down" wx:if="{{show && curIndex === index}}"> -->
- <view class="granary-down">
- <view class="use" data-id="{{item.id}}" bindtap="toSell" wx:if="{{item.total_count - item.self_use_min > 0}}">
- <view class="info">
- <text class="title">代销</text>
- <currency symbol="¥" value="{{item.product.price}}"></currency>
- <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
- <!-- <text class="fr" wx:if="{{!item.sold_count}}">设置代销</text> -->
- <!-- <text class="fr" wx:if="{{item.sold_count}}">在售{{item.sold_count}}份</text> -->
- <text class="fr">已售{{item.sold_count}}份</text>
- <text class="fr red" wx:if="{{false}}">下架审核中</text>
- </view>
- <view class="desc" wx:if="{{item.sold_amount}}">
- 已售金额:<currency symbol="¥" value="{{item.sold_amount}}"></currency>
- </view>
- </view>
- <view class="use" data-id="{{item.id}}" bindtap="toBack" wx:if="{{item.buyback_max}}">
- <view class="info">
- <text class="title">回购</text>
- <currency symbol="¥" value="{{item.buyback_price}}"></currency>
- <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
- <text class="fr" wx:if="{{!item.buyback_count}}">设置回购</text>
- <text class="fr" wx:if="{{item.buyback_count}}">{{item.buyback_count}}份</text>
- </view>
- <view class="desc" wx:if="{{item.buyback_count && item.receive_buyback_amount}}">
- 已回款:<currency symbol="¥" value="{{item.buyback_amount}}" ></currency>
- </view>
- <view class="desc" wx:if="{{!item.buyback_count}}">
- 回购期: <format-time type="formatDay" value="{{item.buyback_start_at}}"></format-time>至<format-time type="formatDay" value="{{item.buyback_stop_at}}"></format-time>
- </view>
- <view class="desc" wx:if="{{item.buyback_count && !item.receive_buyback_amount}}">
- 回购期: <format-time type="formatDay" value="{{item.buyback_start_at}}"></format-time>至<format-time type="formatDay" value="{{item.buyback_stop_at}}"></format-time>
- </view>
- </view>
- <view class="use info" data-id="{{item.id}}" bindtap="toMine" wx:if="{{item.buyback_max}}">
- <text>自用</text>
- <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
- <text class="fr"><text wx:if="{{item.self_use_count}}">自用</text>{{item.self_use_count}}份</text>
- </view>
- <view class="use info" data-id="{{item.id}}" bindtap="toMine1" wx:if="{{!item.buyback_max}}">
- <text>自用</text>
- <image src="https://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo6.png" class="arrow-right" />
- <text class="fr"><text wx:if="{{item.self_use_count}}">自用</text>{{item.self_use_count}}份</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 底部 -->
- <view class="granary-footer" style="padding-bottom: {{value}}rpx;">
- <view class="myfarm" bindtap="toFarm">
- <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo4.png" class="myfarm-img"/>
- <view class="myfarm-text">我的团购</view>
- </view>
- <view class="mygranary" bindtap="toGranary">
- <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/tiny_logo1.png" class="mygranary-img"/>
- <view class="mygranary-text">我的粮仓</view>
- </view>
- </view>
- </view>
|