| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- use common\services\xhUserAssetService;
- use common\services\xhUserService;
- ?>
- <div class="page-title">
- <div class="title-env">
- <h1 class="title">支付宝客户</h1>
- </div>
- <div class="breadcrumb-env">
- <ol class="breadcrumb bc-1">
- <li>
- <a href="/"><i class="fa-home"></i>Home</a>
- </li>
- <li>
- <a href="javascript:void(0)">商城管理</a>
- </li>
- <li class="active">
- <strong>支付宝客户</strong>
- </li>
- </ol>
- </div>
- </div>
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
- <div class="table-responsive">
- <table class="table table-bordered table-striped table-hover" >
- <thead>
- <tr class="active">
- <th class="no-sorting hidden-xs"><input name="selectAll" type="checkbox"></th>
- <th class="hidden-xs">支付宝ID</th>
- <th class="hidden-xs">支付宝帐号</th>
- <th class="hidden-xs">已关联微信</th>
- <th class="hidden-xs">累计消费</th>
- <th class="hidden-xs">积分</th>
- <th class="hidden-xs">最近购买时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody class="middle-align">
- <?php foreach($models as $key => $val){?>
- <tr>
- <td class="hidden-xs"><input name="uId" value="<?= $val['id'] ?>" type="checkbox"></td>
- <td class="hidden-xs">
- <?php if(empty($val['userId'])){ ?>
- <a href="/user/alipay-user-detail?alipayId=<?= $val['alipayId'] ?>"><?= $val['alipayId'] ?></a>
- <?php }else{ ?>
- <a href="/user/detail?id=<?= $val['userId'] ?>"><?= $val['alipayId'] ?></a>
- <?php } ?>
- </td>
- <td class="hidden-xs"><?= $val['alipayAccount'] ?></td>
- <td class="hidden-xs">
- <?php if(!empty($val['userId'])){
- $userId = $val['userId'];
- $user = xhUserService::getById($userId);
- $userAsset = xhUserAssetService::getByUserId($userId);
- ?>
- <a href="/user/detail?id=<?= $userId ?>"><?php echo $user['userName']; ?></a>
- <?php } ?>
- </td>
- <td class="hidden-xs"><?php if(empty($val['userId'])){ echo $val['totalExpend']; }else{ echo $userAsset['totalExpend']; } ?></td>
- <td class="hidden-xs"><?php if(empty($val['userId'])){ echo $val['point']; }else{ echo $userAsset['point']; }?></td>
- <td class="hidden-xs"><?php echo date("n-j H:i",strtotime($val['updateTime'])); ?></td>
- <td>
- <?php if(empty($val['userId'])){ ?>
- <a href="/user/alipay-user-detail?alipayId=<?= $val['alipayId'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">详细</a>
- <?php }else{ ?>
- <a href="/user/detail?id=<?= $val['userId'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">详细</a>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <div class="row">
- <div>
- <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
- <?= $pages ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- footer -->
- <?php
- use backend\widgets\FooterWidget;
- ?>
- <?= FooterWidget::widget()?>
- <!-- footer -->
|