<nav type="back"  title="选择入住人" />

<view class="page-section">
    <view class="add-customer" bind:tap="navigate">
        <van-icon class="add-icon" name="https://file-cloud.fmode.cn/sHNeVwSaAg/20220418/qn1d5i021341.png?imageView2/1/w/200/h/200" color="#3d88ff" />
        <text class="text" style="color:#3d88ff;">添加入住人信息</text>
    </view>
</view>

<view class="page-section">
    <radio-group >
        <list-item class="list-item" wx:for="{{customers}}" wx:key="index" wx:for-item="customer">
            <view class="text-small grey" slot="start" data-index="{{index}}" bind:tap="radioChange">
                <radio value="{{index}}" color="#46a9a4" checked="{{customer.checked}}"></radio>
            </view>
            <view class="" slot="content">
                <view class="text">{{customer['realname']}}</view>
                <view class="text-small">
                    <!-- <text class=" grey">{{customer['cardtype']}}</text> -->
                    <!-- <text >{{customer['idcard']}}</text> -->
                    <text >{{customer['mobile']}}</text>
                </view>
            </view>
            <view class="text-small grey" slot="end" data-name='{{customer.realname}}' bind:tap="toEdit">
                <van-icon name="edit" size="26"></van-icon>
            </view>
        </list-item>
    </radio-group>
    
</view>

<view class="page-section fixed-bottom">
    <button  class="save-btn" size="large" bind:tap="save">保存</button>
</view>