alipayUser.php 3.0 KB

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