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

<view class='page__'>
  <form bindsubmit='formSubmit'>

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

        <template is="picker_cell_normal" data="{{...relativeData}}" />
        <view class="divide_line"></view>

        <view class='item_body'>
          <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text>
          <text class='text_black_28 float_left'>证照类型</text>
          <text class='text_777_30 float_right'>居民身份证</text>
        </view>
        <view class="divide_line"></view>

        <view class='item_body'>
          <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
          <text class='text_black_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 float_right' placeholder='请输入证件号码'  placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange"></input>
          </view>
          <view wx:else>
            <input class='input_wrap float_right' placeholder='请输入证件号码'  placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange"></input>
          </view>
        </view>
        <view class="divide_line"></view>

        <view class='item_body'>
          <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
          <text class='text_black_30 float_left' style='line-height: 90rpx'>姓名</text>
          <input class='input_wrap float_right' placeholder='请填写姓名' name='name' value='{{name}}' placeholder-class='text_777_30' maxlength='15'></input>
        </view>


        <view class='item_body' hidden="{{!isself}}">
          <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
          <text class='text_black_30 float_left' style='line-height: 90rpx'>姓名</text>
          <input class='input_wrap float_right' placeholder='请填写姓名' value=''   placeholder-class='text_777_30' maxlength='15'></input>
        </view>
        <view class="divide_line"></view>

        <template is="picker_cell_normal" data="{{...genderData}}" />
          <view class="divide_line"></view>
          <view class='item_body'>
            <text class='text_black_30 float_left'style='line-height: 90rpx'>年龄</text>
            <input class='input_wrap float_right' name='age' type='number'  placeholder-class='text_777_30' placeholder='请输入年龄' maxlength='2' value='{{age}}'></input>
          </view>
          <view class="divide_line"></view>


        <view class='item_body'>
          <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
          <text class='text_black_30 float_left' style='line-height: 90rpx'>国籍</text>
         <text class='text_777_30 float_right' >中国</text>
        </view>

        <view class="divide_line"></view>
        <template is="picker_cell_normal" data="{{...forignerInfo}}" />

      </view>
    </view>

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

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