| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <style>
- .main_index_bg_function .overview-item {
- width: 24%;
- display: inline-block;
- text-align: center;
- height: 50px;
- padding-top: 8px;
- background: #f8f8f8;
- }
- .main_index_bg_today .overview-item {
- width: 24%;
- display: inline-block;
- text-align: center;
- height: 50px;
- border-right: 1px solid #ccc;
- cursor: pointer;
- }
- .main_index_bg_today .overview-item .item-title {
- margin-top: 10px;
- font-weight: bold;
- }
- .main_index_bg_wait .overview-item {
- width: 24%;
- display: inline-block;
- text-align: center;
- height: 60px;
- }
- </style>
- <div class="panel panel-default">
- <div class="panel-heading">
- <h5 class="panel-title" style="font-size:14px">今日概况</h5>
- </div>
- <div class="panel-body">
- <div class="main_index_bg_today" style="margin-top: 20px;">
- <div class="overview-item">
- <div class="item-value"><?= $todayVisitNum ?></div>
- <div class="item-title">
- <div><span>访问量</span>
- </div>
- </div>
- </div>
- <div class="overview-item" onclick="window.location.href='/stat/index'">
- <div class="item-value"><?= isset($income['amount']) ? $income['amount'] : 0 ?></div>
- <div class="item-title">
- <div><span>收入金额</span>
- </div>
- </div>
- </div>
- <div class="overview-item" onclick="window.location.href='/user/all'">
- <div class="item-value"><?= isset($statUser['riseUserNum']) ? $statUser['riseUserNum'] : 0 ?></div>
- <div class="item-title">
- <div><span>新增客户</span>
- </div>
- </div>
- </div>
- <div class="overview-item" onclick="window.location.href='/user/all'">
- <div class="item-value"><?= isset($statUser['riseFansNum']) ? $statUser['riseFansNum'] : 0 ?></div>
- <div class="item-title">
- <div><span>新增粉丝</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--
- <div class="panel-heading" style="margin-top:40px;">
- <h5 class="panel-title" style="font-size:14px">常用功能</h5>
- </div>
- <div class="panel-body">
- <div class="main_index_bg_function" style="margin-top: 20px;">
- <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="globalAddUser()">
- <div class="item-title">
- <i class="fa-user"></i>
- <div><span>新增客户</span></div>
- </div>
- </div>
- <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="search_user_click()">
- <div class="item-title">
- <i class="fa-rmb"></i>
- <div><span>快速收银</span></div>
- </div>
- </div>
- <div class="overview-item" style="border-right: none;cursor:pointer;" onclick="rechargeShow()">
- <div class="item-title">
- <i class="fa-chain"></i>
- <div><span>会员充值</span>
- </div>
- </div>
- </div>
- <div class="overview-item" style="border-right: none;cursor:pointer;">
- <div class="item-title">
- <i class="fa-bank"></i>
- <div><span>访问网店</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- -->
- <div class="panel-heading" style="margin-top:40px;">
- <h5 class="panel-title" style="font-size:14px">资金概况</h5>
- </div>
- <div class="panel-body">
- <div style="font-size:14px;cursor:pointer" onclick="window.location.href='/capital/list'">
- <span>累计收入:<?= $merchantAsset['totalIncome'] ?>元</span>
- </div>
- <div>
- <?php if (!empty($dayIncome)) {
- foreach ($dayIncome as $income) { ?>
- <p style="margin-top:20px;"><?php
- $currentTimeStamp = strtotime($income['time']);
- $current = date("m-d", $currentTimeStamp);
- if ($current == date("m-d")) {
- echo '今天';
- } else {
- echo $current;
- } ?>
- <a href="/capital/list?payWay=-1&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">总收入:<?= $income['amount'] ?></a>
- <a href="/capital/list?payWay=0&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">微信:<?= $income['weixin'] ?></a>
- <a href="/capital/list?payWay=1&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">支付宝:<?= $income['alipay'] ?></a>
- <a href="/capital/list?payWay=2&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">余额收款:<?= $income['balancePay'] ?></a>
- <a href="/capital/list?payWay=3&date=<?= date("Y-m-d", $currentTimeStamp) ?>+-+<?= date("Y-m-d", ($currentTimeStamp + 86400)) ?>" target="_blank">现金:<?= $income['cash'] ?></a>
- <?php if ($income['checkUp'] == 1) { ?>
- <a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a><?php } ?>
- </p>
- <?php }
- } ?>
- </div>
- </div>
- <div class="panel-heading" style="margin-top:40px;">
- <h5 class="panel-title" style="font-size:14px">最新订单</h5>
- </div>
- <div class="panel-body">
- <table class="table table-bordered table-striped table-hover table-condensed">
- <thead>
- <tr class="active">
- <th class="no-sorting hidden-xs"><input type="checkbox"></th>
- <th>单号</th>
- <th>设置</th>
- <th>下单人</th>
- <th>总价</th>
- <th class="hidden-xs">实付款</th>
- <th>编号</th>
- <th>状态</th>
- <th>下单时间</th>
- </tr>
- </thead>
- <tbody class="middle-align">
- <?php if (!empty($orderList)) {
- foreach ($orderList as $order) { ?>
- <tr>
- <td class="hidden-xs"><input type="checkbox"></td>
- <td>
- <?= $order['id'] ?>
- </td>
- <td>
- <span name="setOrderStyle_<?= $order['id'] ?>">
- <?php
- if (!empty($order['usageId']) && !empty($order['categoryId'])) {
-
- } else {
- if ($order['payStatus'] == 1) { ?>
- <a href="javascript:void(0);" onclick="setOrderStyleToShow('<?= $order['id'] ?>')" style="color:#68b828;"><i class="fa-wrench"></i></a>
- <?php }
- } ?>
- </span>
- </td>
- <td>
- <?php echo isset($order['userInfo']['userName']) ? $order['userInfo']['userName'] : ''; ?>
- </td>
- <td><?= $order['prePrice'] ?></td>
- <td class="hidden-xs">
- <?= $order['actPrice'] ?>
- </td>
- <td><?= $order['sendNum'] ?></td>
- <td><?php if ($order['payStatus'] == 1) {
- echo '已付款';
- } ?></td>
- <td><?= date("Y-m-d H:m", $order['addTime']) ?></td>
- </tr>
- <?php }
- } ?>
- </tbody>
- </table>
- </div>
- <div style="padding-bottom:190px;"> </div>
- </div>
- <!-- footer -->
- <?php
- use backend\widgets\FooterWidget;
- ?>
- <?= FooterWidget::widget() ?>
- <!-- footer -->
- <script>
- $(function () {
- //点击确认操作
- jQuery("#drawCash").click(function () {
- $.ajax({
- type: "GET",
- url: '/draw-cash/exec',
- async: false,
- dataType: 'json',
- success: function (data) {
- xhPopMsg(data.msg);
- if (data.code == 'A0001') {
- setTimeout(function () {
- window.location.href = '/draw-cash/list';
- }, 1000);
- }
- }
- });
- });
- });
- </script>
|