<!--pages/form/appeal/appeal.wxml 申诉3-->
<navBar></navBar>
<van-notify id="van-notify" />
<view class="appeal">
  <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="complainAdin" initialValue="{{''}}" rules="{{ [{ required: true,message:'投诉方ADIN号为必填' } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            <van-dropdown-menu custom-class="form_dropdown1">
              <van-dropdown-item value="{{ form.complainAdinSite }}" options="{{ countrys }}" data-label="complainAdinSite" bind:change="changeVanDropdownnValue"/>
            </van-dropdown-menu>
          </view>
          <wux-input  placeholder="请输入投诉方ADIN号" />
        </my-form-item>
      </wux-field>
      <wux-field name="complainedAdin" initialValue="{{''}}" rules="{{ [{ required: true,message:'投投诉方ADIN号为必填' } ] }}">
        <my-form-item labelWidth="{{labelWidth}}" required custom-class="form_label">
          <view slot="label" >
            <van-dropdown-menu custom-class="form_dropdown1">
              <van-dropdown-item value="{{ form.complainedAdinSite }}" options="{{ countrys }}" data-label="complainedAdinSite" bind:change="changeVanDropdownnValue"/>
            </van-dropdown-menu>
          </view>
          <wux-input  placeholder="请输入被投诉方ADIN号" />
        </my-form-item>
      </wux-field>
      <wux-field name="isOriginal" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            商品是否原创
          </view>
          <van-radio-group value="{{ form.isOriginal }}" 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="complainedType" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            被投诉类型
          </view>
          <van-radio-group value="{{ form.complainedType }}" bind:change="onChange1" >
            <view class="form_radio">
              <van-radio wx:for="{{complainedTypes}}" wx:key="index" name="{{item.value}}">{{item.text}}</van-radio>
            </view>
          </van-radio-group>
        </my-form-item>
      </wux-field>
      <wux-field name="patentNo" 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-field name="img" initialValue="{{''}}" >
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            被投诉截图
          </view>
          <wux-upload
            listType="picture-card"
            fileList="{{ fileList }}"
            controlled
            uploaded="false"
            bind:before="beforeUpload"
            bind:success="onSuccess"
            bind:fail="onFail"
            bind:complete="onComplete"
            bind:preview="onPreview"
            bind:remove="onRemove"
          >
            <!-- <image src="{{ imageUrl }}" wx:if="{{ imageUrl }}" /> -->
            <text>Upload</text>
          </wux-upload>
        </my-form-item>
      </wux-field>
      <wux-field name="ifTalked" initialValue="{{''}}">
        <my-form-item labelWidth="{{labelWidth}}" custom-class="form_label">
          <view slot="label" >
            是否协商过
          </view>
          <van-radio-group value="{{ form.ifTalked }}" bind:change="onChange3" >
            <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,message:'联系电话为必填' },{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="value">
      <wux-textarea value="{{ form.description }}" bind:change="changRemark"/>
    </view>
    <view class="foot" bind:tap="submit">
      提交
    </view>
  </scroll-view>
</view>