<view class="content">
    <!-- 课程信息 -->
    <view class="info">
        <image class="info-cover" src="{{empower.cover}}" mode="aspectFill"></image>
        <view class="info-text">
            <view class="info-title">{{empower.title}}</view>
            <view class="info-subtitle">{{empower.sub_title}}</view>
            <view class="info-price"><text>￥</text>{{empower.price}}</view>
        </view>
    </view>
    <!-- 报名信息 -->
    <view class="user-title">报名人</view>
    <view class="user-block" wx:for="{{formData}}" wx:key="formData">
        <view class="user-block-flex">报名信息{{index + 1}}<view class="user-block-remove" wx:if="{{formData.length > 1}}" bindtap="onRemoveUser" data-index="{{index}}">删除</view>
        </view>
        <view class="user-block-input">
            <label>真实姓名</label>
            <input placeholder="输入姓名" value="{{item.name}}" data-index="{{index}}" maxlength="10" bindinput="bindName" />
        </view>
        <view class="user-block-input">
            <label>手机号码</label>
            <input placeholder="输入手机号码" value="{{item.mobile}}" data-index="{{index}}" bindinput="bindTel" maxlength="11" type="number" />
        </view>
        <view class="user-block-input" wx:if="{{semesters.length > 0}}">
            <label>选择学期</label>
            <picker mode="selector" value="{{semestersIndex}}" data-index="{{index}}" range="{{semesters}}" range-key="title" bindchange="onChange">
                <view class="nowrap user-block-picker">{{semesters[item.index].title}}</view>
                <image class="picker-icon" src="/static/icons/empowerArrow.png"></image>
            </picker>
        </view>
    </view>
    <view class="user-add" bindtap="onAddUser">
        <image src="/static/icons/siteIcon.png"></image>添加报名人
    </view>
    <view class="footer">
        <view class="footer-text">
            <view class="footer-text-price"><text>￥</text>{{allPrice}}</view>
            <view class="footer-text-subtitle">共计{{formData.length}}人报名</view>
        </view>
        <button class="footer-btn" bindtap="onSubmit">提交</button>
    </view>
</view>