addcard.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <form bindsubmit="formSubmit">
  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="delet" class='button button-light' bindtap="del" wx:if="{{info.act == 'edit'}}">删除</button>
  6. <button formType="submit" id="save" 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-children middle subtitleColor"></text><text class="middle">儿童信息</text>
  12. <text class="prompt" bindtap="prompt">说明</text>
  13. </view>
  14. <view class='list-block add-box'>
  15. <view class='item-content'>
  16. <view class='item-title label'>姓名</view>
  17. <view class='item-input'>
  18. <input type="text" name="name" value="{{info.name}}" placeholder='请输入儿童真实姓名' ></input>
  19. </view>
  20. </view>
  21. <view class='item-content'>
  22. <view class='item-title label'>证件类型</view>
  23. <view class='item-input'>
  24. <input type="text" bindtap='selectCard' disabled value="{{cardTypeStr}}" ></input>
  25. </view>
  26. </view>
  27. <view class='item-content'>
  28. <view class='item-title label'>{{cardTypeStr}}</view>
  29. <view class='item-input'>
  30. <input type="text" name="idcard" value="{{info.idcard}}" placeholder='请输入证件号码' type="{{cardTypeStr == '内地身份证号'?'idcard':'text'}}" bindinput="cardBlur" maxlength="{{cardTypeStr == '内地身份证号'?'18':'50'}}"></input>
  31. </view>
  32. </view>
  33. <view class='item-content'>
  34. <view class='item-title label'>出生日期</view>
  35. <picker name="birthday" class='item-input' mode="date" value="{{birthday}}" end="{{endDate}}" bindchange="bindDateChange">
  36. <view class="item-date">{{birthday}}</view>
  37. </picker>
  38. </view>
  39. <view class='item-content'>
  40. <view class='item-title label'>性别</view>
  41. <radio-group name="sex" class='item-input label-radio' bindchange="changeSex">
  42. <radio disabled="{{cardTypeStr =='内地身份证号'}}" value="1" color="#EE3A43" checked="{{sex == 1 ? true:false}}"/>男
  43. <radio disabled="{{cardTypeStr =='内地身份证号'}}" value="0" color="#EE3A43" checked="{{sex == 0 ? true:false}}"/>女
  44. </radio-group>
  45. </view>
  46. <view class='item-content'>
  47. <view class='item-title label'>身高(CM)</view>
  48. <view class='item-input'>
  49. <input type="text" name="height" value="{{info.height}}" placeholder='请输入儿童身高,如128' type="digit"></input>
  50. </view>
  51. </view>
  52. <view class='item-content'>
  53. <view class='item-title label'>体重(KG)</view>
  54. <view class='item-input'>
  55. <input type="text" name="weight" value="{{info.weight}}" placeholder='请输入儿童体重,如32' type="digit"></input>
  56. </view>
  57. </view>
  58. <view class='item-content'>
  59. <view class='item-title label'>体型</view>
  60. <radio-group name="bodyType" class='item-input label-radio'>
  61. <radio value="0" color="#EE3A43" checked="{{info.bodyType == '0' ? true:false}}">偏瘦</radio>
  62. <radio value="1" color="#EE3A43" checked="{{info.bodyType == '1' ? true:false}}">正常</radio>
  63. <radio value="2" color="#EE3A43" checked="{{info.bodyType == '2' ? true:false}}">偏胖</radio>
  64. </radio-group>
  65. </view>
  66. <view class='item-content' wx:if="{{needclothessize==1}}">
  67. <view class='item-title label'>衣服尺码</view>
  68. <view class='item-input'>
  69. <picker data-type="clothes" bindchange="selectCode" value="{{clothesIndex}}" range="{{clothesCode}}">
  70. <view class="picker" wx:if="{{clothesCode[clothesIndex]}}">{{clothesCode[clothesIndex]}}</view>
  71. <view class="picker placeholder" wx:else>请选择准确尺码</view>
  72. </picker>
  73. </view>
  74. </view>
  75. <view class='item-content' wx:if="{{needShoeSize==1}}">
  76. <view class='item-title label'>鞋码</view>
  77. <view class='item-input'>
  78. <picker data-type="shoes" bindchange="selectCode" value="{{shoesIndex}}" range="{{shoesCode}}">
  79. <view class="picker" wx:if="{{shoesCode[shoesIndex]}}">{{shoesCode[shoesIndex]}}</view>
  80. <view class="picker placeholder" wx:else>请选择准确尺码,部分活动需要</view>
  81. </picker>
  82. </view>
  83. </view>
  84. <view class="codeTip subtitleColor " wx:if="{{needclothessize==1 || needShoeSize==1}}"><text class="codeDetail" bindtap="CodeDetail"><text class="icon icon-alternate subtitleColor"></text>参考尺码</text></view>
  85. </view>
  86. </view>
  87. <view class='content-box content-pad'>
  88. <view class='add-title'>
  89. <button id="addParent" plain="true" class='r-float button button-radius addBtn' bindtap='addParent' data-act="add">+新增</button>
  90. <text class="icon icon-guarder middle subtitleColor"></text><text class="middle">监护人信息</text>
  91. </view>
  92. <view class='font12 tips'>请选择儿童的一名监护人:</view>
  93. <radio-group name="pid" class="list-block addGuardian" bindchange="radioChange">
  94. <view class="item-content" wx:for-items="{{parents}}" wx:key="*this">
  95. <label class="item-inner">
  96. <view class="item-media"><radio color='#EE3A43' value="{{item.id}}" checked="{{parentid == item.id ? true:false}}" /></view>
  97. <view class="item-text">
  98. <text>{{item.name}} {{item.sex == 1 ? '男':'女'}} {{item.birthdayStr}}\n{{item.cardTypeStr}}:{{item.idcard}}</text>
  99. </view>
  100. </label>
  101. <view class="item-after"><text id="editParent" class="icon icon-bj font22 subtitleColor" bindtap='addParent' data-act="edit" data-id="{{item.id}}" data-name="{{item.name}}" data-sex="{{item.sex}}" data-birthday="{{item.birthdayStr}}" data-cardtype="{{item.cardType}}" data-idcard="{{item.idcard}}"></text></view>
  102. </view>
  103. </radio-group>
  104. </view>
  105. <view class='note font14'>
  106. <view class="title">点击保存表示您已阅读并同意以下内容:</view>
  107. <view class="article">您已知晓您在挑战家族录入的出行人身份证信息,将用于您签署电子版旅游合同、购买旅游保险等所需要实名制的服务,并在使用时进行验证,请确保此信息真实有效。挑战家族将通过加密等方式保护此信息,且仅在有具体交易时授权提供给相关第三方。</view>
  108. </view>
  109. </view>
  110. </form>
  111. <view class="mask" wx:if="{{mask}}">
  112. <view class="maskBox">
  113. <view class="maskContent">
  114. <view class="maskTitle">1.为什么要儿童证件及身高体重信息?</view>
  115. <view class="maskTit">答:一为儿童购买旅游保险;二为儿童选择合适尺码衣服。</view>
  116. <view class="maskTitle">2.为什么要家长的证件信息?</view>
  117. <view class="maskTit">答:因要签订电子旅游合同,儿童是未成年人,必须由监护人签订,需要签订人(即监护人)的有效证件号码。</view>
  118. </view>
  119. <view class="maskBtn" bindtap="maskBtn">确定</view>
  120. </view>
  121. </view>
  122. <clothesCode show="{{showCodePopup}}" bind:close="close"></clothesCode>