alipayUser.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. use common\services\xhUserAssetService;
  3. use common\services\xhUserService;
  4. ?>
  5. <div class="page-title">
  6. <div class="title-env">
  7. <h1 class="title">支付宝客户</h1>
  8. </div>
  9. <div class="breadcrumb-env">
  10. <ol class="breadcrumb bc-1">
  11. <li>
  12. <a href="/"><i class="fa-home"></i>Home</a>
  13. </li>
  14. <li>
  15. <a href="javascript:void(0)">商城管理</a>
  16. </li>
  17. <li class="active">
  18. <strong>支付宝客户</strong>
  19. </li>
  20. </ol>
  21. </div>
  22. </div>
  23. <div class="panel panel-default">
  24. <div class="panel-body">
  25. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  26. <div class="table-responsive">
  27. <table class="table table-bordered table-striped table-hover" >
  28. <thead>
  29. <tr class="active">
  30. <th class="no-sorting hidden-xs"><input name="selectAll" type="checkbox"></th>
  31. <th class="hidden-xs">支付宝ID</th>
  32. <th class="hidden-xs">支付宝帐号</th>
  33. <th class="hidden-xs">已关联微信</th>
  34. <th class="hidden-xs">累计消费</th>
  35. <th class="hidden-xs">积分</th>
  36. <th class="hidden-xs">最近购买时间</th>
  37. <th>操作</th>
  38. </tr>
  39. </thead>
  40. <tbody class="middle-align">
  41. <?php foreach($models as $key => $val){?>
  42. <tr>
  43. <td class="hidden-xs"><input name="uId" value="<?= $val['id'] ?>" type="checkbox"></td>
  44. <td class="hidden-xs">
  45. <?php if(empty($val['userId'])){ ?>
  46. <a href="/user/alipay-user-detail?alipayId=<?= $val['alipayId'] ?>"><?= $val['alipayId'] ?></a>
  47. <?php }else{ ?>
  48. <a href="/user/detail?id=<?= $val['userId'] ?>"><?= $val['alipayId'] ?></a>
  49. <?php } ?>
  50. </td>
  51. <td class="hidden-xs"><?= $val['alipayAccount'] ?></td>
  52. <td class="hidden-xs">
  53. <?php if(!empty($val['userId'])){
  54. $userId = $val['userId'];
  55. $user = xhUserService::getById($userId);
  56. $userAsset = xhUserAssetService::getByUserId($userId);
  57. ?>
  58. <a href="/user/detail?id=<?= $userId ?>"><?php echo $user['userName']; ?></a>
  59. <?php } ?>
  60. </td>
  61. <td class="hidden-xs"><?php if(empty($val['userId'])){ echo $val['totalExpend']; }else{ echo $userAsset['totalExpend']; } ?></td>
  62. <td class="hidden-xs"><?php if(empty($val['userId'])){ echo $val['point']; }else{ echo $userAsset['point']; }?></td>
  63. <td class="hidden-xs"><?php echo date("n-j H:i",strtotime($val['updateTime'])); ?></td>
  64. <td>
  65. <?php if(empty($val['userId'])){ ?>
  66. <a href="/user/alipay-user-detail?alipayId=<?= $val['alipayId'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">详细</a>
  67. <?php }else{ ?>
  68. <a href="/user/detail?id=<?= $val['userId'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">详细</a>
  69. <?php } ?>
  70. </td>
  71. </tr>
  72. <?php } ?>
  73. </tbody>
  74. </table>
  75. </div>
  76. <div class="row">
  77. <div>
  78. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  79. <?= $pages ?>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <!-- footer -->
  87. <?php
  88. use backend\widgets\FooterWidget;
  89. ?>
  90. <?= FooterWidget::widget()?>
  91. <!-- footer -->