<!--pages/form/application/application.wxml 申请4-->
<navBar></navBar>
<van-notify id="van-notify" />
<view class="application">
  <view class="headTitle">
    我要申请
  </view>
  <scroll-view scroll-y class="form">
    <wux-form
      id="wux-form"
      layout="none"
      validateMessages="{{ validateMessages }}"
      bind:change="onValuesChange"
    >
      <wux-field name="applicationType" initialValue="{{''}}" rules="{{ [{ required: true } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            申请类型
          </view>
          <van-dropdown-menu custom-class="form_dropdown">
            <van-dropdown-item value="{{ form.appType }}" options="{{ typeOptions }}" data-label="appType" bind:change="changeVanDropdownnValue"/>
          </van-dropdown-menu>
        </my-form-item>
      </wux-field>
      <wux-field name="appCountry" initialValue="{{''}}" rules="{{ [{ required: true,message:'申请国家为必填' } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            申请国家
          </view>
          <wux-input  placeholder="请输入国家名称" />
        </my-form-item>
      </wux-field>
      <wux-field name="industry" initialValue="{{''}}" rules="{{ [{ required: true,message:'所属行业为必填' } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            所属行业
          </view>
          <wux-input  placeholder="请输入所属行业" />
        </my-form-item>
      </wux-field>
      <wux-field name="techType" initialValue="{{''}}" rules="{{ [{ required: false } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            技术类型
          </view>
          <wux-input  placeholder="请输入技术类型" />
        </my-form-item>
      </wux-field>
      <wux-field name="appAbroad" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            是否海外申请
          </view>
          <van-radio-group value="{{ form.appAbroad }}" bind:change="onChange" >
            <view class="form_radio">
              <van-radio name="{{true}}">是</van-radio>
              <van-radio name="{{false}}">否</van-radio>
            </view>
          </van-radio-group>
        </my-form-item>
      </wux-field>
      <!-- <wux-field name="appApostille" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            一同申请海牙认证
          </view>
          <van-radio-group value="{{ form.appApostille }}" bind:change="onChange1" >
            <view class="form_radio">
              <van-radio name="{{true}}">是</van-radio>
              <van-radio name="{{false}}">否</van-radio>
            </view>
          </van-radio-group>
        </my-form-item>
      </wux-field> -->
      <wux-field name="contactPhone" initialValue="{{''}}" rules="{{ [{ required: true },{validator:'checkPhone'} ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            联系电话
          </view>
          <wux-input maxlength="11" placeholder="请输入手机号" />
        </my-form-item>
      </wux-field>
      <wux-field name="contactPerson" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            联系人
          </view>
          <wux-input maxlength="11" placeholder="请输入联系人" />
        </my-form-item>
      </wux-field>
    </wux-form>
    <view class="label">
      附图（非必填）
    </view>
    <view class="upload" bind:tap="uploadFile">
      <text class="iconfont myIconshangchuan"></text>
    </view>
    <view>
      <view class="file" wx:for="{{fileList}}" wx:key="index">
        <wux-ellipsis defaultExpanded="{{false}}" expandText="展开" collapseText="收起" wux-class="ellipsis" class="head_left_title" direction="end" content="{{ item.name }}"/>
        <view>
          <van-icon name="close" data-index="index" bind:tap="delFile"/>
        </view>
      </view>
    </view>
    <view class="label">
      备注
    </view>
    <view class="value">
      <wux-textarea value="{{ form.description }}" bind:change="changRemark"/>
    </view>
    <view class="foot">
      <view></view>
      <view class="foot_label">
        一键查新
      </view>
      <view>
        <view class="foot_btn" bind:tap="submit">
          提交工单
        </view>
        <!-- <view class="foot_label2">
          预估费用：1.5W
        </view> -->
      </view>
    </view>
  </scroll-view>
</view>