<!--pages/mine/wxml/release/release.wxml-->
<form bindsubmit="formSubmit" id="container" report-submit='true'>
  <view class="section">
    <view class="section__title">一级类目：</view>
    <picker bindchange="bindPickerChange" range="{{array}}" range-key='name' value="{{array[index].name}}" name="choice">
      <view class="picker">
        {{array[index].name}}
      </view>
    </picker>
  </view>
  <view class="section">
    <view class="section__title">二级类目：</view>
    <picker bindchange="bindPickerChangenew" range="{{arrays}}" value="{{arrays[indexnew].name}}" range-key='name' name="smalltaxonomy">
      <view class="picker">
        {{arrays[indexnew].name}}
      </view>
    </picker>
  </view>
  <view class="section">
    <view class="section__title">拍卖模式：</view>
    <picker bindchange="bindPickerChangePay" range="{{payType}}" value="{{index}}" name="payType">
      <view class="picker">
        {{payTypeValue==''?"请选择拍卖模式":payTypeValue}}
      </view>
    </picker>
  </view>
  <view class="section">
    <view>商品名称：</view>
    <input placeholder="请填写标题" name="name" maxlength="25" />
  </view>
  <view class="section">
    <view class="parameter-title">商品参数：</view>
    <view class="detail-parameter">
      <view class="parameter-list" wx:for="{{parameter}}" wx:key="{{index}}">
        <input id="name" name="parameter-name" data-index="{{index}}" confirm-type="确认" bindinput="setParameter" value="" placeholder="参数名称" />
        <input id="cont" name="parameter-cont" data-index="{{index}}" confirm-type="确认" bindinput="setParameter" value="" placeholder="详细参数" />
      </view>
      <view class="parameter-add" bindtap='addParameter'>
        <image src="../../../../images/addicon.png"></image>
        <text>添加自定义参数</text>
      </view>
    </view>
  </view>
  <view class="section">
    <view class="detail-title">商品详情：</view>
    <textarea bindinput="bindTextAreaBlur" placeholder="请填写描述" name="describe" />
  </view>
  <view class="body-view section">
    <view>
      拍卖会拍卖：
    </view>
    <switch name="checked" bindchange="switchChange" checked='{{checked}}' />
  </view>
  <view class="section" wx:if="{{display}}">
    <view class="section__title">选择拍卖会 ： </view>
    <view bindtap='establish' wx:if="{{news.length<=0}}">
      点击创建拍卖会
    </view>
    <picker bindchange="bindPickerChanges" range="{{news}}" value="{{news[indexs].kid}}" name="liveroom" range-key='name' wx:else>
      <view class="picker">
        {{news[indexs].name}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{display}}">
    <view>
      卖家：
    </view>
    <input placeholder="请填写卖家名称" name="auctioneer" maxlength="20" />
  </view>
  <view class="weui-cell">
    <view class="weui-cell__bd">
      <view class="weui-uploader">
        <view class="weui-uploader__hd">
          <view class="weui-uploader__title">商品图片</view>
          <view class="weui-uploader__info">{{pics.length}}/9</view>
        </view>
        <view class="weui-uploader__bd">
          <view class="weui-uploader__files">
            <block wx:for="{{pics}}" wx:for-item="image" wx:key="index">
              <view class="weui-uploader__file">
                <image class="weui-uploader__img" src="{{image}}" data-src="{{image}}" bindtap="previewImage"></image>
              </view>
            </block>
          </view>
          <view class="weui-uploader__input-box {{isShow?'true':'hideTrue'}}">
            <view class="weui-uploader__input" bindtap="chooseImage"></view>
          </view>
        </view>
      </view>
    </view>
  </view>
<view class="page-body-info" wx:if="{{close}}">
  <view class="weui-uploadervideo__title">商品小视频</view>
    <block wx:if="{{src === ''}}">
      <view bindtap="chooseVideo">
      
        <view class="images">

          <image  class="uploadimages" src="../../images/uploadvideo.png"></image>
        </view>       
      </view>
    </block>
    <block wx:if="{{src != ''}}">
      <video src="{{src}}" class="video" objectFit="fill"></video>
    </block>
  </view> 

  <view class="section" wx-if="{{onlineFlag}}">
    <view>
      起始价：
    </view>
    <input placeholder="请填写商品的起始价" type='digit' name="start" maxlength="20" />
    <text>元</text>
  </view>

  <view class="section">
    <view>
      保证金：
    </view>
    <input placeholder="请填写商品的保证金" type='digit' name="bond" />
    <text>元</text>
  </view>
  
  
  <view class="section"  wx-if="{{onlineFlag}}">
    <view>
      加价幅度：
    </view>
    <input placeholder="请填写商品的加价幅度" type='digit' name="priceincrease" value='{{array.user_mobile}}' id='littleinp' />
    <text>元</text>
  </view>
  <view class="section" wx-if="{{onlineFlag}}">
    <view>
      延时周期：
    </view>
    <input placeholder="请填写商品的延时周期" type='number' name="delayed" value='{{delayed}}' disabled='{{delayeddisabled}}' id='littleinp' />
    <text>秒</text>
  </view>
  <view class="section" wx:if="{{close}}">
    <view class="section__title">起始日期：</view>
    <picker mode="date" value="{{date}}" start="{{currentDate}}" bindchange="bindDateChange" name="startdate">
      <view class="picker">
        {{date}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{close}}">
    <view class="section__title">起始时间：</view>
    <picker mode="time" value="{{time}}" bindchange="bindTimeChange" name="starttime">
      <view class="picker">
        {{time}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{close}}">
    <view class="section__title">结束日期：</view>
    <picker mode="date" value="{{dates}}" start="{{endDate}}" bindchange="bindDateChanges" name="closingdate">
      <view class="picker">
        {{dates}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{close}}">
    <view class="section__title">结束时间：</view>
    <picker mode="time" value="{{times}}" bindchange="bindTimeChanges" name="closingtime">
      <view class="picker">
        {{times}}
      </view>
    </picker>
  </view>
  <view class="choosefile">
    <view>
 竞买协议:
    </view>
    <text>{{filename1}}</text>
    <button  bindtap="upLoadAction1"  plain="true" size="mini">选择</button>
  </view>
  <view class="choosefile">
    <view>
 竞买规则:
    </view>
    <text>{{filename2}}</text>
    <button  bindtap="upLoadAction2"  plain="true" size="mini">选择</button>
  </view>
  <button formType="submit" class='btn'>
    <form bindsubmit="formSubmit" report-submit="{{true}}">
      <button formType="submit" class='btn'>
        <form bindsubmit="formSubmit" report-submit="{{true}}">
          <button type="warn" formType="submit" hover-class="other-button-hover" class='btn'>确认提交</button>
        </form>
      </button>
    </form>
  </button>

</form>