<!--pages/mine/wxml/amendthebaby/amendthebaby.wxml-->
<form bindsubmit="formSubmit" id="container" bindreset="formReset" report-submit='true'>
 <view class="section">
    <view class="section__title">选择分类 ： </view>
    <picker bindchange="bindPickerChange"  range="{{arrays}}" value="{{arrays.bid_type}}" name="choice">
      <view class="picker">
        {{arrays[index]}}
      </view>
    </picker>
  </view>
  <view class="section">
    <view>
      标题：
    </view>
    <input placeholder="请填写标题" value='{{array.item_name}}' name="name"  />
  </view>
  <view class="section">
    <view>
      卖家名称：
    </view>
    <input placeholder="请填写卖家名称" value='{{array.auctioneer}}' name="auctioneer"  />
  </view>
  <view class="section">
    <view>
      商品描述：
    </view>
    <textarea bindblur="bindTextAreaBlur" placeholder="请填写描述" value='{{array.bid_content}}'  name="describe"/>
  </view>
  <view class="body-view section">
    <view>
      拍卖会竞买：
    </view>
    <switch name="checked"  bindchange="switchChange" checked='{{checked}}' />
  </view>
  <view class="section" wx:if="{{display}}" wx:key="index">
    <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="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="section">
    <view>
      起始价：
    </view>
    <input placeholder="请填写商品的起始价" value='{{array.price_start}}' class='biginp' type='number' name="start" />
    <text>元</text>
  </view>
  <view class="section">
    <view>
      保证金：
    </view>
    <input placeholder="请填写商品的保证金" value='{{array.price_guarantee}}'  type='number' name="bond" />
   <text>元</text>
  </view>
  <view class="section">
    <view>
      加价幅度：
    </view>
    <input placeholder="请填写商品的加价幅度" value='{{array.price_add}}' type='number' name="priceincrease"  />
    <text>元</text>
  </view>
  <view class="section">
    <view>
      延时周期：
    </view>
    <input placeholder="请填写商品的延时周期" type='number' name="delayed" value='{{delayed}}' disabled='{{delayeddisabled}}' id='littleinp'/>
    <text>秒</text>
  </view>
  <view class="section" wx:if="{{close}}">
    <view>开始日期</view>
    <picker mode="date" value="{{date}}" start="{{date}}"  bindchange="bindDateChange" name="startdate">
      <view class="picker">
        {{date}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{close}}">
    <view>开始时间</view>
    <picker mode="time" value="{{time}}" start="00:00" end="23:59" bindchange="bindTimeChange" name="starttime">
      <view class="picker">
        {{time}}
      </view>
    </picker>
  </view>
  <view class="section" wx:if="{{close}}">
    <view>结束日期</view>
    <picker mode="date" value="{{date}}" start="{{date}}" end="2018-12-31" 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="{{time}}" start="00:00" end="23:59" bindchange="bindTimeChanges" name="closingtime">
      <view class="picker">
        {{times}}
      </view>
    </picker>
  </view>
  <view class='bottom'>
  
  </view>
  <button type="warn" size="{{defaultSize}}" loading="{{loading}}" plain="{{plain}}" disabled="{{disabled}}" formType="submit" hover-class="other-button-hover" class='btn' data-kid='{{array.kid}}'>确认发布</button>
</form>