<!--pages/my-apply/my-apply.wxml-->
<wxs src="my-apply.wxs" module="tool"></wxs>
<wxs src="../../app.wxs" module="getPriceForm"></wxs>
<view class="container safe-area-bottom">
	<block wx:for='{{list}}' wx:key="index">
		<view class="cell" data-id="{{item.hwRequirement.id}}" bindtap="toDetail" wx:for='{{item}}' wx:key="index">
			<view class="info">
				<view class="name global-family">
					<view class="name-content">{{item.hwRequirement.name}}</view>
					<view class="icon" wx:if='{{!item.hwRequirement.isOn}}'>已下架</view>
				</view>
				<view class="money">
					<text>{{item.hwRequirement.price}}元</text>
					<text class="month" wx:if='{{item.hwRequirement.settlementMethod===1 }}'>*{{item.hwRequirement.stage}}期</text>
					<text class="month" wx:if='{{item.hwRequirement.settlementMethod===0 }}'>*1次</text>
				</view>
			</view>
			<view class="midden">
				<view class="company">
					<text>{{item.companyName}}</text>
				</view>
			</view>
			<view class="bottom">
				<view class="address">
					<image src="/images/icon/address.png"></image>
					<text>{{item.hwRequirement.provinceCityCountry || '暂无地址信息'}}</text>
				</view>
				<view wx:if='{{item.displayCancel}}' class="cancel-enrollment" data-id="{{item.id}}" catchtap="cancelEnrollment">
					<text>取消报名</text>
				</view>
				<view wx:else class="status {{tool.status(item.orderNumber,item.hwRequirement.isOn).className}}">
					<image src="{{tool.status(item.orderNumber,item.hwRequirement.isOn).src}}"></image>
					<text>{{tool.status(item.orderNumber,item.hwRequirement.isOn).word}}</text>
				</view>
			</view>
		</view>

	</block>

	<empty message='您目前没有需要发布人确认的报名' wx:if='{{show}}' />
</view>