| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <div class="row-content am-cf">
- <div class="row">
- <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
- <div class="widget am-cf">
- <div class="widget-head am-cf">
- <div class="widget-title am-cf">拼单记录</div>
- </div>
- <div class="widget-body am-fr">
- <div class="am-u-sm-12">
- <div class="am-scrollable-horizontal am-u-sm-12">
- <table width="100%" class="am-table am-table-compact am-table-striped
- tpl-table-black am-text-nowrap">
- <thead>
- <tr>
- <th>拼单ID</th>
- <th>商品图片</th>
- <th>商品名称</th>
- <th>成团人数</th>
- <th>已拼人员</th>
- <th>发起人(团长)</th>
- <th>拼单结束时间</th>
- <th>拼单状态</th>
- <th>发起时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if (!$list->isEmpty()): foreach ($list as $item): ?>
- <tr>
- <td class="am-text-middle"><?= $item['active_id'] ?></td>
- <td class="am-text-middle">
- <a href="<?= $item['goods']['image'][0]['file_path'] ?>"
- title="点击查看大图" target="_blank">
- <img src="<?= $item['goods']['image'][0]['file_path'] ?>"
- width="50" height="50" alt="商品图片">
- </a>
- </td>
- <td class="am-text-middle">
- <p class="item-title"><?= $item['goods']['goods_name'] ?></p>
- </td>
- <td class="am-text-middle"><?= $item['people'] ?>人</td>
- <td class="am-text-middle">
- <p><?= $item['actual_people'] ?>人</p>
- </td>
- <td class="am-text-middle">
- <p class=""><?= $item['user']['nickName'] ?></p>
- <p class="am-link-muted">(用户ID:<?= $item['user']['user_id'] ?>)</p>
- </td>
- <td class="am-text-middle"><?= $item['end_time']['text'] ?></td>
- <td class="am-text-middle">
- <?php if ($item['status']['value'] == 10): ?>
- <p>
- <span class="am-badge am-badge-secondary"><?= $item['status']['text'] ?></span>
- </p>
- <?php if ($item['actual_people'] < $item['people']): ?>
- <p>
- <span class="am-badge am-badge-warning">
- 还差 <?= $item['people'] - $item['actual_people'] ?>人
- </span>
- </p>
- <?php endif; ?>
- <?php elseif ($item['status']['value'] == 20): ?>
- <span class="am-badge am-badge-success"><?= $item['status']['text'] ?></span>
- <?php elseif ($item['status']['value'] == 30): ?>
- <span class="am-badge am-badge-danger"><?= $item['status']['text'] ?></span>
- <?php endif; ?>
- </td>
- <td class="am-text-middle"><?= $item['create_time'] ?></td>
- <td class="am-text-middle">
- <div class="tpl-table-black-operation">
- <?php if (checkPrivilege('apps.sharing.active/users')): ?>
- <a class="tpl-table-black-operation-default"
- href="<?= url('apps.sharing.active/users', ['active_id' => $item['active_id']]) ?>">
- <i class="iconfont icon-chengyuan"></i> 拼团成员
- </a>
- <?php endif; ?>
- <?php if (checkPrivilege('apps.sharing.order/index')): ?>
- <a class="tpl-table-black-operation-default"
- href="<?= url('apps.sharing.order/index', ['active_id' => $item['active_id']]) ?>">
- <i class="iconfont icon-order-o"></i> 拼团订单
- </a>
- <?php endif; ?>
- </div>
- </td>
- </tr>
- <?php endforeach; else: ?>
- <tr>
- <td colspan="10" class="am-text-center">暂无记录</td>
- </tr>
- <?php endif; ?>
- </tbody>
- </table>
- </div>
- </div>
- <div class="am-u-lg-12 am-cf">
- <div class="am-fr"><?= $list->render() ?> </div>
- <div class="am-fr pagination-total am-margin-right">
- <div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(function () {
- });
- </script>
|