person.wxml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <form bindsubmit="formSubmit" bindreset="formReset">
  2. <input hidden='true' type='text' name="id" value='{{info.id}}'></input>
  3. <input name="cardType" type='text' hidden='true' value='{{cardType}}'></input>
  4. <view class='bar-bottom buttons-row'>
  5. <button id="deletParentInfo" bindtap='del' class='button button-light' hidden="{{info.act == 'edit' ? false : true}}">删除</button>
  6. <button id="saveParentInfo" formType="submit" class='button button-subtitle'>保存</button>
  7. </view>
  8. <view class='content'>
  9. <view class='content-box content-pad'>
  10. <view class='add-title'>
  11. <text class="icon icon-guarder middle"></text><text class="middle">监护人信息</text>
  12. </view>
  13. <view class='list-block add-box'>
  14. <view class='item-content'>
  15. <view class='item-title label'>姓名</view>
  16. <view class='item-input'>
  17. <input type="text" name="name" value="{{info.name}}" placeholder='请输入监护人姓名' ></input>
  18. </view>
  19. </view>
  20. <view class='item-content'>
  21. <view class='item-title label'>证件类型</view>
  22. <view class='item-input'>
  23. <input type="text" bindtap='selectCard' disabled value="{{cardTypeStr}}"></input>
  24. </view>
  25. </view>
  26. <view class='item-content'>
  27. <view class='item-title label'>{{cardTypeStr}}</view>
  28. <view class='item-input'>
  29. <input type="text" name="idcard" value="{{info.idcard}}" placeholder='请输入证件号码' type="{{cardTypeStr == '内地身份证号'?'idcard':'text'}}" bindinput="cardBlur" maxlength="{{cardTypeStr == '内地身份证号'?'18':'50'}}"></input>
  30. </view>
  31. </view>
  32. <view class='item-content'>
  33. <view class='item-title label'>出生日期</view>
  34. <picker name="birthday" class='item-input' mode="date" value="{{birthday}}" bindchange="bindDateChange">
  35. <view class="item-date">{{birthday}}</view>
  36. </picker>
  37. </view>
  38. <view class='item-content'>
  39. <view class='item-title label'>性别</view>
  40. <radio-group name="sex" class='item-input label-checkbox' bindchange="changeSex">
  41. <radio disabled="{{cardTypeStr =='内地身份证号'}}" value="1" color="#EE3A43" checked="{{sex == 1 ? true:false}}"/>男
  42. <radio disabled="{{cardTypeStr =='内地身份证号'}}" value="0" color="#EE3A43" checked="{{sex == 0 ? true:false}}"/>女
  43. </radio-group>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </form>