<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>

<!--选择款-->
<view class='top'>
  <view class='tyi' class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">全部</view>
  <view class='ter' class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">待成团</view>
  <view class='tsan' class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">已成团</view>
  <view class='tsi' class="swiper-tab-list {{currentTab==3 ? 'on' : ''}}" data-current="3" bindtap="swichNav">拼团失败</view>
</view>

<!--单号显示--> 
<view class='wu' wx:if="{{order.length>0}}">
  <view class='pd' wx:for="{{order}}" wx:key>
    <view class='pd-list' bindtap="go_team_success" data-ordsn="{{item.order_sn}}" data-goods_type="{{item.goods_type}}">
      <!--top-->
      <view class='pd-list-top'>
        <!-- <image src='{{iurl}}/miniapp/images/dianpu.png'></image> -->
        <text class='pd-wz'>订单编号：{{item.order_sn}}</text>
        <image class='jt' src='{{iurl}}/miniapp/images/icojiantou1.png'></image>
      </view>
      <!--image-->
      <view class='pd-list-image'>
        <view class="xc-list flex">
          <view class="frame">
            <image src='{{item.gimage}}' binderror='images_err' data-err="order[{{index}}].gimage"></image>
          </view>
          <view>
            <view class='pd-img-wz1 ellipsis-2'>{{item.order_goods[0].goods_name}}
            </view>


            <view class="flex-space-between {{item.pt_status==1? 'xc-price-sn':'xc-price-no'}}">
              <view class="flex">
                <text class='fs24 xc-wc {{item.pt_status==1?"xc-rmbs":"xc-rmb"}}'>￥</text>
                <view class='pd-jg xc-wc'>{{item.order_goods[0].goods_price}}</view>
                <view hidden="{{item.goods_type}}" class="flex no_line_c  word-line xc-ash {{item.pt_status==1?'xc-rmbs':'xc-rmb'}}">
                  <text class="fs24 xc-black"></text>
                  <text class="fs24 xc-wc">￥</text>
                  <text  class="fs26  xc-wc">{{item.order_goods[0].shop_price || item.order_goods[0].market_price}}</text>
                </view>
              </view>

              <view class="xc-img-frame" wx:if="{{item.pt_status==2 || item.pt_status==4 || item.pt_status==5 || item.pt_status==6}}">
                <image style='width' class="" src="{{iurl}}/miniapp/images/xc_qtcg.png"></image>
              </view>
              <view class="xc-img-frame" wx:if="{{item.pt_status==3}}">
                <image src="{{iurl}}/miniapp/images/xc-qtshibai.png"></image>
              </view>
            </view>

            <view class="xc-still-bad flex fs24" wx:if="{{item.pt_status==1}}">
              <block wx:if="{{item.ct_num-item.tx.length>0}}">
                还差<text class="xc-wc">{{item.ct_num-item.tx.length}}</text>人成团
              </block>
              <block wx:elif="{{item.max_ct_num-item.tx.length>0}}">
                还差<text class="xc-wc">{{item.max_ct_num-item.tx.length}}</text>人享受最价</block>
              <block wx:else>您已经可以享受最低价</block>
            </view>
          </view>
        </view>

      </view>
      <!--foot-->
      <view style='width:100%;border-bottom:10rpx solid #eee; '>
        <view class='pd-list-foot'>
          <view class='foot-left flex fdc'>
            <view class="t-c flex {{item.pt_status==3?'jietitun':''}}">
              <view>共{{item.order_goods[0].goods_num}}件,</view>
              <block wx:if="{{item.is_zsorder==4}}">

                  <view>金额：<text class="xc-wc">￥</text></view>
                  <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount+item.pt_tail_money+item.pre_cut,2)}}</view>

              </block>
              <block wx:else>
                <view>金额：<text class="xc-wc">￥</text></view>
                <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount+item.pre_cut,2)}}</view>
              </block>

              
            </view>
            <view wx:if="{{item.pt_status==3}}" class="jietitun">退款时间：{{filters.format_time(item.is_back_time,1)}}</view>
          </view>

          <view class='foot-right'>
            <!--头像遍历-->
            <view class='foot-right-r'>
              <view class='foot-l-tx' style="margin-right:20rpx">
                <view wx:if="{{item.tx}}" style="display: flex">
                  <image wx:for="{{item.tx}}" wx:for-item="aitem" src='{{aitem.head_pic}}'></image>
                  <block wx:if="{{item.is_xuni_ct}}">
                    <image src='{{iurl}}/miniapp/images/anonymous/anonymous{{item}}.png' wx:for="{{item.sf_num}}"></image>
                  </block>
                  <block wx:else>
                    <image src='{{iurl}}/miniapp/images/shafa.png' wx:for="{{item.sf_num}}"></image>
                  </block>


                  <view class="xc-ellipsis" wx:if="{{item.tx.length>3}}">...</view>
                </view>
              </view>

              <view class='C'>
                <view class='yao' wx:if="{{item.pt_status==1}}">邀请好友</view>
                <view class='s_and_f' wx:if="{{item.pt_status==2 || item.pt_status==3 || item.pt_status==4 || item.pt_status==5 }}">查看详情</view>
                <view class='s_and_f' wx:if="{{item.pt_status==6}}">支付尾款失败</view>
              </view>

            </view>

          </view>


        </view>
        <view class='bodytimecen flex' wx:if="{{item.pt_status==1}}">
          剩余：
          <span>{{item.djs.day}}</span>天
          <span>{{item.djs.hou}}</span>时
          <span>{{item.djs.min}}</span>分
          <span>{{item.djs.sec}}</span>秒
        </view>
      </view>
    </view>
  </view>


</view>
<view wx:elif="{{isgo}}">
  <view class='kon'>暂无更多</view>
</view>