index.wxml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <navigator class="common_fix common_home" wx:if="{{currentPages == 1}}" open-type="reLaunch" url="/pages/home/index" hover-class="none">
  2. <text class="icon icon-home"></text>
  3. </navigator>
  4. <view class='bar-bottom buttons-row'>
  5. <button id="addPresonInfo" bindtap="{{msgType==0?'addCard':'submit'}}" class='button button-subtitle' data-act="add" data-needClothesSize="{{datas.needClothesSize}}" data-needShoeSize="{{datas.needShoeSize}}" data-id="">{{msgType==0?'新增出行人':'保存'}}</button>
  6. </view>
  7. <view class="tab-bar white-bg" wx:if="{{isSelected}}">
  8. <view class="tab-item purchase_info {{msgType == 0 ? 'tab-active' : ''}}" data-index="0" bindtap="setTabbar">
  9. <view class="label">出行人信息</view>
  10. </view>
  11. <view class="tab-item purchase_info {{msgType == 1 ? 'tab-active' : ''}}" data-index="1" bindtap="setTabbar">
  12. <view class="label">购买信息</view>
  13. </view>
  14. </view>
  15. <!-- <view class="tab-bar white-bg" wx:if="{{isSelected}}">
  16. <view class="tab-item {{ctype == 0 ? 'active' : ''}}" data-index="0" bindtap="setTabbar">
  17. <view class="label">儿童单飞信息</view>
  18. </view>
  19. <view class="tab-item {{ctype == 1 ? 'active' : ''}}" data-index="1" bindtap="setTabbar">
  20. <view class="label">亲子每人信息</view>
  21. </view>
  22. </view> -->
  23. <view class='content'>
  24. <block wx:if="{{msgType==0}}">
  25. <view class="cards-tips"><view class="tips-content"> 请{{isSelected ? "设置" : "选择"}}出行人证件信息,用于签订旅游合同并购买保险。</view></view>
  26. <view class="head_label" wx:if="{{isSelected}}">
  27. <view class="title">证件类型</view>
  28. <view class="switch">
  29. <text class="switch_label {{ctype == 0 ? 'switch_label_active' : 'switch_label_noactive'}}" data-index="0" bindtap="swtichTab">儿童</text>
  30. <text class="switch_label {{ctype == 1 ? 'switch_label_active' : 'switch_label_noactive'}}" data-index="1" bindtap="swtichTab">亲子</text>
  31. </view>
  32. </view>
  33. <view class='noData' hidden='{{list.length > 0 ? true : false}}'><text class="icon icon-info"></text><text>~还没有添加任何人员~</text></view>
  34. <view class="list-block" wx:if='{{list.length > 0 && ctype == 0}}'>
  35. <checkbox-group class="check_people" name="id" id="check" bindchange="checkboxChange">
  36. <view class="card-list item-content" wx:for-items="{{list}}" wx:key="id">
  37. <label class="item-inner label-checkbox" style="flex: 1;">
  38. <view class='item-media' hidden="{{isSelected}}"><checkbox color='#fff' value="{{item.id}}|{{item.name}}|{{item.parent ? item.parent.name : ''}}|{{item.weight}}|{{item.height}}|{{item.bodyType}}|{{item.disabled}}|{{item.birthdayStr}}|{{item.idcard}}|{{index}}|{{item.clothesSize || ''}}|{{item.shoesSize || ''}}|{{item.id}}|{{item.sex}}" data-index="{{index}}" checked="{{item.default ? true:false}}" /></view>
  39. <view class='item-text'>
  40. <view class="card-list-info">
  41. <text class="name"><text style="font-weight: 700;">{{item.name}}</text><text class="" style="font-size: 20rpx;margin-left: 20rpx;">{{item.position}}<text wx:if="{{item.perfect}}" class="perfect">待完善</text>\n</text>
  42. </text>
  43. <text>{{item.sex == 1 ? '男':'女'}} {{item.birthdayStr}} {{item.height}}CM {{item.weight}}KG {{item.bodyType == '0'?'偏瘦':item.bodyType == '1'?'正常':item.bodyType == '2'?'偏胖':''}}\n{{item.cardTypeStr}}:{{item.idcard}}</text>
  44. </view>
  45. <view class="card-list-info" style="border-top: 2rpx solid #eee;" wx:if="{{item.parent}}">
  46. <text class="name">{{item.parent.name}}<text class="" style="font-size: 20rpx;margin-left: 20rpx;">监护人\n</text></text>
  47. <text>{{item.parent.sex == 1 ? '男':'女'}} {{item.parent.birthdayStr}}\n{{item.parent.cardTypeStr}}:{{item.parent.idcard}}</text>
  48. </view>
  49. </view>
  50. </label>
  51. <view class='item-icon card-modfiy'>
  52. <view class='icon icon-bj font23' id="editPersonInfo" bindtap='addCard' data-act="edit" data-id="{{item.id}}" data-parentid="{{item.parent ? item.parent.id : ''}}" data-name="{{item.name}}" data-sex="{{item.sex}}" data-birthday="{{item.birthdayStr}}" data-cardtype="{{item.cardType}}" data-weight="{{item.weight}}" data-idcard="{{item.idcard}}" data-clothessize="{{item.clothesSize}}" data-shoessize="{{item.shoesSize}}" data-height="{{item.height}}" data-bodyType="{{item.bodyType}}" data-needClothesSize="{{datas.needClothesSize}}" data-needShoeSize="{{datas.needShoeSize}}"></view>
  53. </view>
  54. </view>
  55. </checkbox-group>
  56. </view>
  57. <view class="list-block" wx:if='{{list.length > 0 && ctype == 1}}'>
  58. <checkbox-group class="check_people" name="id" bindchange="checkboxChange">
  59. <view class="card-list item-content" wx:for-items="{{list}}" wx:key="id">
  60. <label class="item-inner label-checkbox" style="flex: 1;">
  61. <view class='item-media' hidden="{{isSelected}}"><checkbox color='#fff' value="{{item.id}}|{{item.name}}|{{item.parent ? item.parent.name : ''}}|{{item.weight}}|{{item.height}}|{{item.bodyType}}|{{item.disabled}}|{{item.birthdayStr}}|{{item.idcard}}|{{index}}|{{item.clothesSize || ''}}|{{item.shoesSize || ''}}|{{item.id}}|{{item.sex}}" data-index="{{index}}" checked="{{item.default ? true:false}}" /></view>
  62. <view class='item-text'>
  63. <view class="card-list-info">
  64. <text class="name"><text style="font-weight: 700;">{{item.name}}</text> <text class="" style="font-size: 20rpx;margin-left: 20rpx;">{{item.position}}<text wx:if="{{item.perfect}}" class="perfect">待完善</text>\n</text></text>
  65. <text>{{item.sex == 1 ? '男':'女'}} {{item.birthdayStr}}<text wx:if="{{item.height && item.weight}}"> {{item.height}}CM {{item.weight}}KG {{item.bodyType == '0'?'偏瘦':item.bodyType == '1'?'正常':item.bodyType == '2'?'偏胖':''}}</text><text class="subtitleColor" wx:else> 请补充身高、体重等</text>\n{{item.cardTypeStr}}:{{item.idcard}}</text>
  66. </view>
  67. </view>
  68. </label>
  69. <view class='item-icon card-modfiy'>
  70. <view class='icon icon-bj font23' id="editPersonInfo" bindtap='addCard' data-act="edit" data-id="{{item.id}}" data-parentid="{{item.parent ? item.parent.id : ''}}" data-name="{{item.name}}" data-sex="{{item.sex}}" data-birthday="{{item.birthdayStr}}" data-clothessize="{{item.clothesSize}}" data-shoessize="{{item.shoesSize}}" data-cardtype="{{item.cardType}}" data-weight="{{item.weight}}" data-idcard="{{item.idcard}}" data-height="{{item.height}}" data-bodyType="{{item.bodyType}}" data-needClothesSize="{{datas.needClothesSize}}" data-needShoeSize="{{datas.needShoeSize}}"></view>
  71. </view>
  72. </view>
  73. </checkbox-group>
  74. </view>
  75. <view class='load-more' hidden="{{list.length < 5 ? true : false}}">下面没有了哦</view>
  76. </block>
  77. <block wx:else>
  78. <view class="form-table">
  79. <view class="column">
  80. <view class="it-tit">联系手机号码</view>
  81. <view class="it-lab">
  82. <input class="weui-input contactPhone" type="number" value="{{info.contactPhone}}" placeholder="请填写手机号以便接收通知" data-type="contactPhone" bindblur="bindInfo"/>
  83. </view>
  84. </view>
  85. <view class="column">
  86. <view class="it-tit">电子邮箱</view>
  87. <view class="it-lab">
  88. <input class="weui-input email" value="{{info.email}}" placeholder="请填写邮箱以便接收电子合同" data-type="email" bindblur="bindInfo"/>
  89. </view>
  90. </view>
  91. <view class="column">
  92. <view class="it-tit">邮寄地址</view>
  93. <view class="it-lab">
  94. <textarea auto-height="true" class="weui-input mailAddress" value="{{info.mailAddress}}" placeholder="请填写正确收货地址以便邮寄" bindtap="chooseAddress" disabled style="width: 100%;"/>
  95. </view>
  96. </view>
  97. <view class="column">
  98. <view class="it-tit">街道社区</view>
  99. <view class="it-lab">
  100. <input class="weui-input street" value="{{info.street}}" placeholder="请填写社区以便安排活动事宜" data-type="street" bindblur="bindInfo"/>
  101. </view>
  102. </view>
  103. </view>
  104. </block>
  105. </view>
  106. <address show="{{showAddress}}" data="{{info.mailAddress}}" data-name="address" bind:submit="submitAddress" bind:close="close" />