index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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. </view>
  20. </view>
  21. <view class="text-small grey" slot="end" data-name='{{customer.realname}}' bind:tap="toEdit">
  22. <van-icon name="edit" size="26"></van-icon>
  23. </view>
  24. </list-item>
  25. </radio-group>
  26. </view>
  27. <view class="page-section fixed-bottom">
  28. <button class="save-btn" size="large" bind:tap="save">保存</button>
  29. </view>