<view class='bar-bottom buttons-row'>
  <button bindtap='pay' class='button button-warn'>确定</button>
</view>
<view class='content'>
  <view class="content-min-pad">
    <view class="subtitleColor font14 b">请选择绑定的儿童：</view>
    <view class="font12 mTop5">注：若没有儿童或要绑定其他儿童，请到个人中心添加儿童信息。可绑定一名儿童，一旦绑定，只有该儿童可以享受积分权益。</view>
  </view>
  <view class="list-block" hidden='{{childs.length > 0 ? false : true}}'>
    <radio-group name="id" bindchange="selectChild">
    <view class="card-list item-content align-top" wx:for-items="{{childs}}" wx:key="*this">
      <label class="item-inner label-radio">
        <view class='item-media'><radio color='#EE3A43' value="{{item.id}}" /></view>
        <view class='item-text'>
          <view class="card-list-info">
            <text class="name">儿童：<text class="blue">{{item.name}}\n</text></text>
            <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>
          </view>
          <view class="card-list-info" wx:if="{{item.parent}}">
            <text class="name">监护人：<text class="blue">{{item.parent.name}}\n</text></text>
            <text>{{item.parent.sex == 1 ? '男':'女'}} {{item.parent.birthdayStr}}\n{{item.parent.cardTypeStr}}：{{item.parent.idcard}}</text>
          </view>
        </view>
      </label>
    </view>
    </radio-group>
  </view>
</view>