index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <nav type="back" title="选择入住人" />
  2. <view class="page-section">
  3. <view class="add-customer" bind:tap="navigate">
  4. <van-icon class="add-icon" name="https://file-cloud.fmode.cn/sHNeVwSaAg/20220418/qn1d5i021341.png?imageView2/1/w/200/h/200" color="#3d88ff" />
  5. <text class="text" style="color:#3d88ff;">添加入住人信息</text>
  6. </view>
  7. </view>
  8. <view class="page-section">
  9. <radio-group >
  10. <list-item class="list-item" wx:for="{{customers}}" wx:key="index" wx:for-item="customer">
  11. <view class="text-small grey" slot="start" data-index="{{index}}" bind:tap="radioChange">
  12. <radio value="{{index}}" color="#46a9a4" checked="{{customer.checked}}"></radio>
  13. </view>
  14. <view class="" slot="content">
  15. <view class="text">{{customer['realname']}}</view>
  16. <view class="text-small">
  17. <!-- <text class=" grey">{{customer['cardtype']}}</text> -->
  18. <!-- <text >{{customer['idcard']}}</text> -->
  19. <text >{{customer['mobile']}}</text>
  20. </view>
  21. </view>
  22. <view class="text-small grey" slot="end" data-name='{{customer.realname}}' bind:tap="toEdit">
  23. <van-icon name="edit" size="26"></van-icon>
  24. </view>
  25. </list-item>
  26. </radio-group>
  27. </view>
  28. <view class="page-section fixed-bottom">
  29. <button class="save-btn" size="large" bind:tap="save">保存</button>
  30. </view>