From 984601841f823c834aeb0a101d3a02f5604bbb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=80=E6=9C=AF=E8=80=81=E8=83=A1?= <1094551889@qq.com> Date: Sat, 7 Sep 2024 17:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/ConsoleController.php | 2 +- view/console/console.html | 144 ++++++++++++++++++++++++++- view/pay/console.html | 31 ++---- 3 files changed, 152 insertions(+), 25 deletions(-) diff --git a/app/controller/ConsoleController.php b/app/controller/ConsoleController.php index 3adf01f..63ccc51 100644 --- a/app/controller/ConsoleController.php +++ b/app/controller/ConsoleController.php @@ -37,7 +37,7 @@ class ConsoleController extends BaseController // 时间段 $month_start = date('Y-m-01 00:00:00'); $month_end = date('Y-m-d 23:59:59', strtotime('last day of this month')); - $week_start = date('Y-m-d 00:00:00', strtotime('this monday')); + $week_start = date('Y-m-d 00:00:00', strtotime('monday this week')); $week_end = date('Y-m-d 23:59:59', strtotime('next monday') - 1); $yesterday_start = date('Y-m-d 00:00:00', strtotime('yesterday')); $yesterday_end = date('Y-m-d 23:59:59', strtotime('yesterday')); diff --git a/view/console/console.html b/view/console/console.html index 27121c3..616770d 100644 --- a/view/console/console.html +++ b/view/console/console.html @@ -24,6 +24,76 @@ .index-card>div { text-align: center; } + .order-tite { + display: flex; + justify-content: space-between; + align-items: center; + } + .order-total { + margin: 18px; + } + + .order-total>div:first-child { + text-align: center; + } + + .order-total>div:first-child>p:first-child { + font-size: 2em; + font-weight: 700; + color: #566a7f; + } + + .order-total>div:first-child>p:last-child { + color: #686f77; + } + + .order-channel { + display: flex; + justify-content: space-between; + align-items: center; + } + .order-channel>div:nth-child(2) { + width: 80px; + text-align: right; + } + .order-channel>div:nth-child(3) { + width: 100px; + text-align: right; + } + + .info-channel { + display: flex; + align-items: center; + justify-content: flex-start; + padding: 8px 0; + } + + .info-channel>div:first-child { + height: 2.5em; + width: 2.5em; + border-radius: 5px; + display: flex; + align-items: center; + justify-content: center; + } + + .info-channel>div:first-child>svg { + width: 1.2em; + } + + .info-channel>div:last-child { + margin-left: 12px; + line-height: 1.2em; + } + + .info-channel>div:last-child>p:first-child { + color: #566a7f; + font-weight: 700; + } + + .info-channel>div:last-child>p:last-child { + color: #a1acb8; + } @@ -116,9 +186,79 @@
1433
+总订单
+微信
+全渠道统计
+支付宝
+全渠道统计
+云闪付
+全渠道统计
+