<!-- packageC/Myshaky/Myshaky/Myshaky.wxml -->
<view class="tabNav">
  <block wx:for="{{istrue}}" wx:key="index">
    <view class='navBox' id="{{index}}" bindtap="getLine">
      <view id="{{index}}">{{item.tit}}</view>
      <view class='lines' wx:if="{{index == curr}}"></view>
    </view>
  </block>
</view>
<view class="quanBox">
  <view class="quan" wx:for="{{datas}}" wx:key='index'>
    <view class="obligation" bindtap="goBmxq" id="{{item.id}}">
      <view class="order">
        <view>订单号：{{item.order_sn}}</view>
        <view>{{ item.status === 0 ? "待付款" : (item.status == '-1'?"已关闭":"报名成功") }}</view>
        <!-- <view wx:elif='{{item.status == '-1'}}'>已关闭</view> wx:if='{{item.status===0}}'
        <view wx:else>报名成功</view> -->
      </view>
      <view class="details">
        <view class="boxCen">
          <view class="CenTop">
            <view class="CenTopLeft">
              <image src='{{item.thumb}}'></image>
            </view>
            <view class="CenTopRight">
              <view class="trTop">{{item.title}}</view>
              <view class="tr" wx:if="{{item.price > '0.00'}}">
                <view>￥</view>
                {{item.price}}
              </view>
              <view class="tr" wx:if="{{item.price<=0.00}}">免费</view>
            </view>
          </view>
          <view class="CenBottm">
            <van-icon name='notes-o' class="cenIcon" size="28rpx"></van-icon>
            <text>{{item.start_time}}至{{item.end_time}}</text>
          </view>
        </view>
        <view class='jiesuan'>
          共{{item.goods_total}}人
          <view wx:if="{{item.price>'0.00'}}">实付款：¥{{item.price}}</view>
        </view>
      </view>
    </view>
    <!-- 待付款的支付进口 -->
    <view class='pay' wx:if="{{ item.status != '-1' }}">
      <view class="zf" catchtap="toPay" id="{{item.id}}" wx:if="{{item.status === 0}}">支付</view>
      <view class="qxdd" bindtap="cancleOrder" id="{{item.id}}">取消订单</view>
      <view class="qxdd" bindtap="toRefund" id="{{item.id}}" data-item='{{item}}' wx:if="{{item.is_open_refund == 1}}">
        {{item.refund_id > 0 ? ( item.status == -1 ? '已退款' : '退款中' ) : '申请退款'}}</view>
    </view>
  </view>
</view>