addinfo.wxml 4.0 KB
<!--pages/main/addinfo/addinfo.wxml-->
<import src="../../../common/picker_cell" />

<view class='page__'>
  <view class="divide_line"></view>
  <form bindsubmit='formSubmit'>

    <view class='data_list' hidden="{{isself}}">
      <view class='data_item'>

        <template is="picker_cell_normal" data="{{...relativeData}}" />
        <view class="divide_line_30"></view>
        <template is="picker_cell_normal" data="{{...cardtypeData}}" />
        <!-- <view class='item_body'>
          <text class='red_star_right_10'>*</text>
          <text class='text_777_30 float_left'>证照类型</text>
          <text class='text_black_30 float_right' style='line-height: 90rpx'>居民身份证</text>
        </view> -->
        <view class="divide_line_30"></view>

        <view class='item_body'>
          <text class='red_star_right_10'>*</text>
          <text class='text_777_30 float_left'style='line-height: 90rpx'>证照号码</text>
          <view wx:if="{{isIdCard}}"   >
            <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image>
            <!-- <text class='text_333_28 float_right'>{{card_number}}</text> -->
             <input class='input_wrap' placeholder='请输入或拍摄身份证'  placeholder-class='text_999_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard' ></input>
          </view>
          <view wx:else>
            <input class='input_wrap' placeholder='请输入证照号码'  placeholder-class='text_999_30' name='id_card_no' maxlength='30' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input>
          </view>
        </view>
        <view class="divide_line_30"></view>

        <view class='item_body'>
          <text class='red_star_right_10'>*</text>
          <text class='text_777_30 float_left' style='line-height: 90rpx'>姓名</text>
          <input class='input_wrap' placeholder='请填写姓名' name='person_name' value='{{name}}' placeholder-class='text_999_30' maxlength='15' disabled='{{isDisable}}' bindinput='nameInput'></input>
        </view>
        <view class="divide_line_30"></view>

        <template is="picker_cell_normal" data="{{...genderData}}" />
          <view class="divide_line_30"></view>
          <view class='item_body'>
            <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>年龄</text>
            <input class='input_wrap' name='age' type='number'  placeholder-class='text_999_30' placeholder='年龄' maxlength='2' value='{{age}}' disabled='{{isIdCard}}'></input>
          </view>
        <view class="divide_line_30"></view>
        <template is="picker_cell_normal" data="{{...countryData}}" />
        <!-- <view class='item_body'>
          <text class='red_star_right_10'>*</text>
          <text class='text_777_30 float_left' style='line-height: 90rpx'>国籍</text>
          <text class='text_black_30 float_right' style='line-height: 90rpx' >中国</text>
        </view> -->
        <view class="divide_line_30"></view>
        <view class='item_body'>
          <text class='red_star_right_10'>*</text>
          <text class='text_777_30 float_left' style='line-height: 90rpx'>是否境外人员</text>
          <text class='text_black_30 float_right' style='line-height: 90rpx' >{{overseas}}</text>
        </view>
        <!-- <template is="picker_cell_normal" data="{{...forignerInfo}}" /> -->
        <view class="divide_line_30"></view>
        <view class='item_body'>
          <text class='text_777_30 float_left head_in' style='line-height: 90rpx'>联系电话</text>
          <input class='input_wrap' placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' maxlength='11' bindblur='bindinputmobile' type='number'></input>
        </view>
      </view>
    </view>

    <view class="btn_bottom">
      <button class="btn_bottom" formType="submit"> 保存</button>
    </view>
  </form>
</view>

<!-- 普通选择器 -->