<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>

<div class="layui-card right-content">
    <div class="layui-card-body">
        <table class="layui-table YpTable">
            <thead>
                <tr class="Filter Sortable">
					<th width="120px"><span>添加时间</span></th>
                    <th width="120px"><span>昵称</span></th>
                    <th width="120px"><span>手机号</span></th>
                    <th width="100px"><span>宜配会员ID</span></th>
					<th><span>原因</span></th>
                    <th><span>验证消息</span></th>
                </tr>
            </thead>
            <tbody>
                <?php if(empty($friendList)){?>
                    <tr>
                        <td colspan="6" class="tc gray">暂无添加好友记录</td>
                    </tr>
                <?php }else{?>
                    <?php foreach($friendList as $val){?>
                        <?php
                            $info = json_decode($val['wun_info'], true);
                            $nickname = '';
                            if(is_array($info) && !empty($info['nickName'])){
                                $nickname = $info['nickName'];
                            }
                            $addTime = '';
                            if(!empty($val['wun_atime'])){
                                $addTime = is_numeric($val['wun_atime']) ? date('Y-m-d H:i:s', $val['wun_atime']) : $val['wun_atime'];
                            }
                        ?>
                        <tr>
							<td><?=$addTime ?: '--'?></td>
                            <td><?=$nickname ?: '--'?></td>
                            <td><?=$val['wun_mobile'] ?: '--'?></td>
                            <td><?=$val['u_name'] ?: ($val['wun_to_uid'] ?: '--')?></td>
							<td><?=$val['wun_reason'] ?: '--'?></td>
                            <td><?=$val['wun_verify'] ?: '--'?></td>
                        </tr>
                    <?php }?>
                <?php }?>
            </tbody>
        </table>
        <?=$pageMsg?>
    </div>
</div>

<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
