<view>
  <form bindsubmit="fromsumb">
    <view style="background:white;padding:40rpx;margin-top:22rpx;">

      <view class="inputbox">
        <text class="fontW">申请业务</text>
        <input name='type' disabled="true" value="{{type}}" hidden="true"></input>
      </view>
      <view style="border-bottom: 1rpx solid #EEEEEE;padding-bottom: 20rpx;margin-bottom: 40rpx">
        <text class="{{index == typeIndex ? 'da' : 'da1'}}" bindtap='typeRadio' data-idx='{{index}}'
          wx:for='{{typeList}}' wx:key='index'>{{item}}</text>
      </view>

      <view class="inputbox">
        <text class="fontW">申请企业名称<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='applyName' value="{{list.applyName}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontW">承租地址<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='address' value="{{list.address}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontW">租赁面积<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='area' value="{{list.area}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontW">联系人姓名<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='userName' value="{{list.userName}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontWs">联系电话<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='phone' value="{{list.phone}}" maxlength="11" type="number"></input>
      </view>

      <view class="inputbox">
        <text class="fontWs">场地服务合同编号<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='contractNo' value="{{list.contractNo}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontW">期望入驻时间<text style="color: red;margin-left:10rpx">*</text></text>
        <view style="border-bottom: 1rpx solid #EEEEEE;">
          <picker mode="date" value="{{startDate}}" start="{{time}}" bindchange="startDateChange">
            <text class="picker-txt">{{startDate}}</text>
          </picker>
          ~
          <picker mode="date" value="{{endDate}}" start="{{time}}" bindchange="endDateChange">
            <text class="picker-txt">{{endDate}}</text>
          </picker>
        </view>
        <!--
        <image src="https://aabbcc.thinkine.com/upload/image/weixin_images/icon/r.png" mode="widthFix"
          style="width:28rpx;height:28rpx;margin-top:14rpx;" class="floR"></image>-->
      </view>

      <view class="inputbox">
        <text class="fontWs">拟成立/迁入企业名称<text style="color: red;margin-left:10rpx">*</text></text>
        <input name='companyName' value="{{list.companyName}}"></input>
      </view>

      <view class="inputbox">
        <text class="fontW">迁入企业与申请企业关系</text>
      </view>
      <view style="border-bottom: 1rpx solid #EEEEEE;padding-bottom: 20rpx;margin-bottom: 40rpx">
        <text class="{{index == addressIndex ? 'da' : 'da1'}}" bindtap='addressRadio' data-idx='{{index}}'
          wx:for='{{addressList}}' wx:key='index'>{{item}}</text>
      </view>

      <view class="inputbox" style="border-bottom: 1rpx solid #EEEEEE;padding-bottom: 30rpx;">
        <text class="fontW">上传附件</text>
        <view style="color:#AAAAAA;font-size: 24rpx;">
          请提交投资计划书或者商业计划书；法人代表证件照；公司营业执照等相关资料</view>
        <view class='uploFile' bindtap="uploFile">上传({{applyMoveInFileList.length}}/9)</view>
        <view>
          <view class="fileBox" wx:for="{{applyMoveInFileList}}" wx:key='index'>
            <view style="width: 90rpx;display: inline-block">
              <image src="/images/home/{{item.type}}.png" mode="widthFix" style="width: 100%;"></image>
            </view>
            <view style="display: inline-block;margin-left: 30rpx;width: 70%;">
              <view style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                {{item.fileName}}
              </view>
              <view style="color:#ADADAD;font-size: 26rpx;padding-top: 14rpx;">{{item.fileSize? item.fileSize:''}}
              </view>
            </view>
            <view class="del" bindtap="delFile" data-index="{{index}}" wx:if="{{!id}}">
              <image src="/images/home/del.png" mode="widthFix" style="width:100%"></image>
            </view>
          </view>
        </view>
      </view>

      <view>
        <view class="inputbox">
          <text class="fontW">申请人承诺<text style="color: red;margin-left:10rpx">*</text></text>
        </view>
        <textarea maxlength="200" name='promise' value="{{list.promise}}"></textarea>
      </view>
    </view>

    <view class="wwBox">
      <button class="ww" formType='submit' wx:if="{{!id}}">立即申请</button>
    </view>
  </form>
</view>