<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="main" style="height:{{infoHeight}}px;">
        <form catchsubmit="formSubmit" catchreset="formReset">
            <view class="form">
                <view class="top">
                    <view class="zero">
                        <view class="text">团队LOGO</view>
                        <upload class="tou" list="{{fileList}}" count="{{1}}"  bind:imgUpload="imgUpload" bind:imgDel="imgDel"></upload>
                    </view>
                    <view class="one">
                        <view class="text">团队名称</view>
                        <input class="input" name="name" value="{{form.name}}" placeholder="" />
                    </view>
                    <view class="one">
                        <view class="text">团队创建人</view>
                        <input class="input" name="create_user" value="{{form.create_user}}" placeholder="" />
                    </view>
                    <view class="one">
                        <view class="text">团队类型</view>
                        <picker name="type" bindchange="bindPickerChange" value="{{index}}" range="{{form.type}}">
                            <view class="input">{{form.type[index]}}
                                <image class="back" src="/image/back.png"></image>
                            </view>
                        </picker>
                    </view>
                    <view class="one">
                        <view class="text">创建时间</view>
                        <picker name="create_time" mode="date"  value="{{form.create_time}}" start="2015-09-01" end="3017-09-01" bindchange="bindDateChange">
                            <view class="input">
                                {{form.create_time}}<image class="back" src="/image/back.png"></image>
                            </view>
                        </picker>
                    </view>
                </view>
                <view class="bottom" style="height:{{infoHeight-270}}px;">
                    <view class="two">
                        <view class="two_title"> 团队队员</view>
                        <view class="two_main">
                            <view class="two_1" wx:key="item" wx:for="{{members}}">
                                <view class="team_1">
                                    <image class="two_logo1" src="{{item.icon[0].url}}"></image>
                                    <image bindtap='delList' data-id="{{item.id}}" class="two_jian" src="/image/jian.png"></image>
                                </view>
                                <view class="team_text">
                                    <text class="input1" value="{{item.nickname}}"></text>
                                </view>
                            </view>
                            <view class="two_1">
                                <view class="team_1">
                                    <view class="tianjia">
                                        <text bindtap='clickme' class=" icon iconfont icon-jia"></text>
                                    </view>
                                </view>
                            </view>
                        </view>
                    </view>
                </view>
                <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
                <view class="modalDlg" wx:if="{{showModal}}">
                    <text class="modal_text2">选择队员</text>
                    <checkbox-group bindchange="checkboxChange">
                        <label class="checkbox" wx:key="item" wx:for="{{item}}">
                            <text class="modal_box">{{item.nickname}}</text>
                            <checkbox class="box" value="{{item._id}}" checked="{{item.checked}}" />
                        </label>
                    </checkbox-group>
                    <button bindtap="determine" class="modal_button">确定</button>
                    <text bindtap="go" class="modal_text4">取消</text>
                </view>
            </view>
            <view class="btn-area">
                <button class="button" formType="submit">创建团队</button>
            </view>
        </form>
    </view>
</mobile-main>