EntryInformation.wxml 5.3 KB
<!--pages/EntryInformation/EntryInformation.wxml-->
<form bindsubmit='listVerify'>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>
        <text class='list_icon'>*</text>
        <text>姓名</text>
      </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入姓名' value='{{list.name}}' bindinput='setName'></input>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>
        <text class='list_icon'>*</text>
        <text>性别</text>
      </view>
      <view class='list_input'>
        <picker class='picker' range='{{sexArray}}' value='{{sex_index}}' bindchange='selectSex'>
          <input placeholder='请输入性别' value='{{list.sex}}' disabled='true'></input>
        </picker>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>
        <text class='list_icon'>*</text>
        <text>家庭角色</text>
      </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入家庭角色' value='{{list.family_role}}' bindinput='familyRole'></input>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>个人年收入</view>
      <view class='list_input'>
        <input type='digit' placeholder='请输入个人年收入' value='{{list.income}}' bindinput='income'></input>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>手机号 </view>
      <view class='list_input'>
        <input type='number' placeholder='请输入手机号' value='{{list.mobile}}' bindinput='setMobile'></input>
      </view>
    </view>

    <view class='item_list'>
      <view class='list_title'>
        <text class='list_icon'>*</text>
        <text>出生日期</text>
      </view>
      <view class='list_input'>
        <picker class='picker' mode="date" value='{{list.birthday }}' bindchange='birthDate'>
          <input placeholder='请选择出生日期' value='{{list.birthday }}' disabled='true'></input>
        </picker>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>单位名称 </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入单位名称' value='{{list.work}}' bindinput='setWork'></input>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>单位地址 </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入单位地址' value='{{list.work_address}}' bindinput='setworkAddress'></input>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>家庭地址 </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入家庭地址' value='{{list.address}}' bindinput='setSddress'></input>
      </view>
    </view>

    <view class='item_list'>
      <view class='list_title'>通讯地址 </view>
      <view class='list_input'>
        <view class="address_btn {{addsess_current==0?'unit_address':''}}" data-current='0' bindtap='addressCharge'>家庭地址</view>
        <view class="address_btn {{addsess_current==1?'unit_address':''}}" data-current='1' bindtap='addressCharge'>单位地址</view>
      </view>
    </view>

    <view class='item_list'>
      <view class='list_title'>证件类型</view>
      <view class='list_input'>
        <picker class='picker' range='{{card_Array}}' value='{{card_index}}' bindchange='selectIdCard'>
          <input placeholder='请选择证件类型' value='{{card_Array[card_index]}}' disabled='true'></input>
        </picker>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>证件号 </view>
      <view class='list_input'>
        <input type='text' placeholder='请输入证件号' value='{{list.id_num}}' bindinput='setIdNum'></input>
      </view>
    </view>
  </view>
  <view class='box'>
    <!-- 上传图片  -->
    <view class='upload_box'>
      <view class='popup_img' wx:if='{{hasimg}}' bindtap='chooseImg'>
        <image src='{{list.picurl}}' bindtap='viewImg'></image>
      </view>
      <view bindtap='chooseImg' wx:else>
        <view class='iconfont icon-add'></view>
        <view>请上传清晰的保单照片</view>
      </view>
    </view>
  </view>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>用户描述</view>
    </view>
    <view class='list_textarea'>
      <textarea placeholder='请在此添加对用户的描述' value='{{list.text}}' placeholder-class='font_color' bindinput='descript'></textarea>
    </view>
  </view>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>添加用户标签</view>
    </view>
    <view class='item_list item_label_box' wx:for='{{label_type}}' wx:key='' data-Mindex='{{index}}'>
      <view class='list_label_title'>{{item.label}} </view>
      <view class='list_label'>
        <view class="address_btn {{item.status?'unit_address':''}}" data-id='{{item.id}}' data-status='{{item.status}}' wx:for='{{item.data}}' wx:key='' data-Sindex='{{index}}' data-Mindex='{{index}}' bindtap='selectLabel'>{{item.name}}</view>
      </view>
    </view>
  </view>

  <!-- 底部按钮 -->
  <view class='null_box'></view>
  <view class='bottom_box'>
    <button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
  </view>
</form>