<wxs src="../../utils/tool.wxs" module="tool"></wxs>
<view class="item">
  <label>头像</label>
  <view class="tags">
      <image class="account_img" wx:if='{{form.avatar}}' bindtap="preview" src="{{form.avatar}}"></image>
      <icon wx:if='{{form.avatar}}' bindtap="del" class="icon-small" type="cancel" size="25"></icon>
      <view wx:else class="upload" bindtap="uploadImg">
          <image mode="widthFix" src="../../images/img.png"></image>
            上传头像
      </view>
  </view>
</view>
<view class="item"> 
   <label>参赛名</label>
   <view class="tags"> 
      <input value="{{form.username}}" bindinput="bindinput" placeholder-style="color:#999;" placeholder="请填写"></input> 
  </view>
</view>
<view class="item">
  <label>入市时间</label>
  <view class="tags">
      <picker mode="date" fields='year' value="{{form.join_time}}"  bindchange="bindDateChange">
          <view class="date-picker">
              <text wx:if='{{!form.join_time}}'>请选择</text>
              {{form.join_time==null?'':form.join_time}}
              <image mode="widthFix" src="../../images/icon_down@2x.png"></image>
          </view>
      </picker>
  </view>
</view>

<view class="title">操作风格</view>
<view wx:if='{{arr1.length>0}}'>
<view class="item">
  <label>周期</label>
  <view class="tags">
      <text wx:for='{{arr1}}' class="{{tool.indexOf(form.zq, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='zq'>{{item}}</text>
  </view>
</view>
<view class="item">
  <label>仓位</label>
  <view class="tags">
      <text wx:for='{{arr2}}' class="{{tool.indexOf(form.cw, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='cw'>{{item}}</text>
  </view>
</view>
<view class="item">
  <label>打法</label>
  <view class="tags">
      <text wx:for='{{arr3}}' class="{{tool.indexOf(form.df, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='df'>{{item}}</text>
  </view>
</view>
<view class="item">
  <label>品种</label>
  <view class="tags">
      <text wx:for='{{arr4}}' class="{{tool.indexOf(form.pz, item)>=0?'act':''}}" bindtap="change" data-id='{{item}}' data-item='pz'>{{item}}</text>
  </view>
</view>

<!-- <view class="item" wx:if="{{form.is_player==1}}"> -->
  <!-- <label>参赛金额</label> -->
  <!-- <view class="tags"> -->
      <!-- <input wx:if="{{!form.init_fund}}" type="digit" value="{{form.init_fund}}" bindinput="bindinput" placeholder-style="color:#999;" placeholder="请填写"></input> -->
      <!-- <input disabled="{{true}}" style="background:#eee;" value="{{form.init_fund}}"></input>
      <view style="color:red;font-size:23rpx;">比赛期间有资金进出请联系QQ客服除权，再提交作业</view> -->
  <!-- </view> -->
<!-- </view> -->

<button bindtap="post" class="post_btn">确定</button>
</view>