<!--packageC/Myshaky/enroll/enroll.wxml-->
<view class="enrollTop">
  <view class="boxCen">
    <view class="CenTop">
      <view class="CenTopLeft">
        <image src="{{list.thumb}}"></image>
      </view>
      <view class="CenTopRight">
        <view class="trTop">
          {{list.title}}
        </view>
        <view class="trRight">
          <view>{{list.city_name}}
            <text>|</text>{{list.address}}</view>
        </view>
        <view class="tr">
          <view class="nistOne" wx:if='{{list.cash == "0.00"}}'>免费</view>
          <view class="nistOne" wx:else>￥</view>
          {{list.cash == "0.00"?"":list.cash}}
          <view class="nisRight">已报名
            <text>{{list.has_many_pay_order.length > 0 ? list.has_many_pay_order[0].count : '0'}}</text>/{{list.limit}}</view>
        </view>
      </view>
    </view>
    <view class="CenBottm">
      <van-icon name='notes-o' class="cenIcon" size="28rpx"></van-icon>
      <text>{{list.start_time}}至{{list.end_time}}</text>
    </view>
  </view>
</view>
<view class="deduct" wx:if='{{list.cash != "0.00"}}'>
  <view wx:for="{{order_deductions}}" wx:key="{{index}}">
    <view class="span">可用{{item.coin}}{{item.name}}抵扣{{item.amount}}元</view>
    <van-switch checked="{{item.checked}}" bind:change="onChange" active-color="#f15353" size="24px" data-name="{{item.code}}" data-ind="{{index}}" data-checked="{{item.checked}}" wx:if="{{disabled}}" disabled></van-switch>
    <van-switch checked="{{item.checked}}" bind:change="onChange" active-color="#f15353" size="24px" data-name="{{item.code}}" data-ind="{{index}}" data-checked="{{item.checked}}" wx:if="{{!disabled}}" ></van-switch>
  </view>
  <view>
    <view class="span">合计</view>
    <view class="right span">￥{{total_price}}</view>
  </view>
</view>
<view style="margin-top:20rpx;">
  <dsfrom class="diyfromClass" wx:if="{{list}}" datas="{{list}}" modeType="activity"
    desThumb="{{false}}" form_data_id="{{form_data_id}}" bind:gofunarr="postForm"
    payStatus="{{payStatus}}" applyStatus="{{applyStatus}}"
  ></dsfrom>
</view>
