index.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <style>
  2. .main_index_bg_function .overview-item {
  3. width: 24%;
  4. display: inline-block;
  5. text-align: center;
  6. height: 50px;
  7. padding-top: 8px;
  8. background: #f8f8f8;
  9. }
  10. .main_index_bg_today .overview-item {
  11. width: 24%;
  12. display: inline-block;
  13. text-align: center;
  14. height: 50px;
  15. border-right: 1px solid #ccc;
  16. cursor: pointer;
  17. }
  18. .main_index_bg_today .overview-item .item-title {
  19. margin-top: 10px;
  20. font-weight: bold;
  21. }
  22. .main_index_bg_wait .overview-item {
  23. width: 24%;
  24. display: inline-block;
  25. text-align: center;
  26. height: 60px;
  27. }
  28. </style>
  29. <div class="panel panel-default">
  30. <div class="panel-heading">
  31. <h5 class="panel-title" style="font-size:14px">今日概况</h5>
  32. </div>
  33. <div class="panel-body">
  34. <div class="main_index_bg_today" style="margin-top: 20px;">
  35. <div class="overview-item">
  36. <div class="item-value"><?= $todayVisitNum ?></div>
  37. <div class="item-title">
  38. <div><span>访问量</span>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="overview-item" onclick="window.location.href='/stat/index'">
  43. <div class="item-value"><?= isset($income['amount']) ? $income['amount'] : 0 ?></div>
  44. <div class="item-title">
  45. <div><span>收入金额</span>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="overview-item" onclick="window.location.href='/user/all'">
  50. <div class="item-value"><?= isset($statUser['riseUserNum']) ? $statUser['riseUserNum'] : 0 ?></div>
  51. <div class="item-title">
  52. <div><span>新增客户</span>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="overview-item" onclick="window.location.href='/user/all'">
  57. <div class="item-value"><?= isset($statUser['riseFansNum']) ? $statUser['riseFansNum'] : 0 ?></div>
  58. <div class="item-title">
  59. <div><span>新增粉丝</span>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <!--
  66. <div class="panel-heading" style="margin-top:40px;">
  67. <h5 class="panel-title" style="font-size:14px">常用功能</h5>
  68. </div>
  69. <div class="panel-body">
  70. <div class="main_index_bg_function" style="margin-top: 20px;">
  71. <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="globalAddUser()">
  72. <div class="item-title">
  73. <i class="fa-user"></i>
  74. <div><span>新增客户</span></div>
  75. </div>
  76. </div>
  77. <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="search_user_click()">
  78. <div class="item-title">
  79. <i class="fa-rmb"></i>
  80. <div><span>快速收银</span></div>
  81. </div>
  82. </div>
  83. <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="rechargeShow()">
  84. <div class="item-title">
  85. <i class="fa-chain"></i>
  86. <div><span>会员充值</span>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="overview-item" style="border-right: none;cursor:pointer;">
  91. <div class="item-title">
  92. <i class="fa-bank"></i>
  93. <div><span>访问网店</span>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. -->
  100. <div class="panel-heading" style="margin-top:40px;">
  101. <h5 class="panel-title" style="font-size:14px">资金概况</h5>
  102. </div>
  103. <div class="panel-body">
  104. <div style="font-size:14px;cursor:pointer" onclick="window.location.href='/capital/list'">
  105. <span>累计收入:<?= $merchantAsset['totalIncome'] ?>元</span>
  106. </div>
  107. <div>
  108. <?php if (!empty($dayIncome)) {
  109. foreach ($dayIncome as $income) { ?>
  110. <p style="margin-top:20px;"><?php
  111. $currentTimeStamp = strtotime($income['time']);
  112. $current = date("m-d", $currentTimeStamp);
  113. if ($current == date("m-d")) {
  114. echo '今天';
  115. } else {
  116. echo $current;
  117. } ?>
  118. &nbsp;&nbsp;&nbsp;&nbsp;<a href="/capital/list?payWay=-1&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">总收入:<?= $income['amount'] ?></a>
  119. &nbsp;&nbsp;&nbsp;&nbsp;<a href="/capital/list?payWay=0&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">微信:<?= $income['weixin'] ?></a>
  120. &nbsp;&nbsp;&nbsp;&nbsp;<a href="/capital/list?payWay=1&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">支付宝:<?= $income['alipay'] ?></a>
  121. &nbsp;&nbsp;&nbsp;&nbsp;<a href="/capital/list?payWay=2&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">余额收款:<?= $income['balancePay'] ?></a>
  122. &nbsp;&nbsp;&nbsp;&nbsp;<a href="/capital/list?payWay=3&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">现金:<?= $income['cash'] ?></a>
  123. <?php if ($income['checkUp'] == 1) { ?>&nbsp;&nbsp;
  124. <a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a><?php } ?>
  125. </p>
  126. <?php }
  127. } ?>
  128. </div>
  129. </div>
  130. <div class="panel-heading" style="margin-top:40px;">
  131. <h5 class="panel-title" style="font-size:14px">最新订单</h5>
  132. </div>
  133. <div class="panel-body">
  134. <table class="table table-bordered table-striped table-hover table-condensed">
  135. <thead>
  136. <tr class="active">
  137. <th class="no-sorting hidden-xs"><input type="checkbox"></th>
  138. <th>单号</th>
  139. <th>设置</th>
  140. <th>下单人</th>
  141. <th>总价</th>
  142. <th class="hidden-xs">实付款</th>
  143. <th>编号</th>
  144. <th>状态</th>
  145. <th>下单时间</th>
  146. </tr>
  147. </thead>
  148. <tbody class="middle-align">
  149. <?php if (!empty($orderList)) {
  150. foreach ($orderList as $order) { ?>
  151. <tr>
  152. <td class="hidden-xs"><input type="checkbox"></td>
  153. <td>
  154. <?= $order['id'] ?>
  155. </td>
  156. <td>
  157. <span name="setOrderStyle_<?= $order['id'] ?>">
  158. <?php
  159. if (!empty($order['usageId']) && !empty($order['categoryId'])) {
  160. } else {
  161. if ($order['payStatus'] == 1) { ?>
  162. <a href="javascript:void(0);" onclick="setOrderStyleToShow('<?= $order['id'] ?>')" style="color:#68b828;"><i class="fa-wrench"></i></a>
  163. <?php }
  164. } ?>
  165. </span>
  166. </td>
  167. <td>
  168. <?php echo isset($order['userInfo']['userName']) ? $order['userInfo']['userName'] : ''; ?>
  169. </td>
  170. <td><?= $order['prePrice'] ?></td>
  171. <td class="hidden-xs">
  172. <?= $order['actPrice'] ?>
  173. </td>
  174. <td><?= $order['sendNum'] ?></td>
  175. <td><?php if ($order['payStatus'] == 1) {
  176. echo '已付款';
  177. } ?></td>
  178. <td><?= date("Y-m-d H:m", $order['addTime']) ?></td>
  179. </tr>
  180. <?php }
  181. } ?>
  182. </tbody>
  183. </table>
  184. </div>
  185. <div style="padding-bottom:190px;">&nbsp;</div>
  186. </div>
  187. <!-- footer -->
  188. <?php
  189. use backend\widgets\FooterWidget;
  190. ?>
  191. <?= FooterWidget::widget() ?>
  192. <!-- footer -->
  193. <script>
  194. $(function () {
  195. //点击确认操作
  196. jQuery("#drawCash").click(function () {
  197. $.ajax({
  198. type: "GET",
  199. url: '/draw-cash/exec',
  200. async: false,
  201. dataType: 'json',
  202. success: function (data) {
  203. xhPopMsg(data.msg);
  204. if (data.code == 'A0001') {
  205. setTimeout(function () {
  206. window.location.href = '/draw-cash/list';
  207. }, 1000);
  208. }
  209. }
  210. });
  211. });
  212. });
  213. </script>