Răsfoiți Sursa

大屏动态

moonsflyer 9 luni în urmă
părinte
comite
fa9b940f3a

+ 42 - 0
app/count/controller/BaseAdminController.php

@@ -0,0 +1,42 @@
+<?php
+// +----------------------------------------------------------------------
+// | likeshop100%开源免费商用商城系统
+// +----------------------------------------------------------------------
+// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
+// | 开源版本可自由商用,可去除界面版权logo
+// | 商业版本务必购买商业授权,以免引起法律纠纷
+// | 禁止对系统程序代码以任何目的,任何形式的再发布
+// | gitee下载:https://gitee.com/likeshop_gitee
+// | github下载:https://github.com/likeshop-github
+// | 访问官网:https://www.likeshop.cn
+// | 访问社区:https://home.likeshop.cn
+// | 访问手册:http://doc.likeshop.cn
+// | 微信公众号:likeshop技术社区
+// | likeshop团队 版权所有 拥有最终解释权
+// +----------------------------------------------------------------------
+// | author: likeshopTeam
+// +----------------------------------------------------------------------
+declare (strict_types=1);
+
+namespace app\count\controller;
+
+use app\common\controller\BaseLikeShopController;
+use think\App;
+
+class BaseAdminController extends BaseLikeShopController
+{
+    protected int $adminId = 0;
+    protected array $adminInfo = [];
+
+
+    public function initialize()
+    {
+
+        if (isset($this->request->adminInfo) && $this->request->adminInfo) {
+            $this->adminInfo = $this->request->adminInfo;
+            $this->adminId = $this->request->adminInfo['admin_id'];
+        }
+    }
+
+
+}

+ 41 - 0
app/count/controller/IndexController.php

@@ -0,0 +1,41 @@
+<?php
+// +----------------------------------------------------------------------
+// | likeshop100%开源免费商用商城系统
+// +----------------------------------------------------------------------
+// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
+// | 开源版本可自由商用,可去除界面版权logo
+// | 商业版本务必购买商业授权,以免引起法律纠纷
+// | 禁止对系统程序代码以任何目的,任何形式的再发布
+// | gitee下载:https://gitee.com/likeshop_gitee
+// | github下载:https://github.com/likeshop-github
+// | 访问官网:https://www.likeshop.cn
+// | 访问社区:https://home.likeshop.cn
+// | 访问手册:http://doc.likeshop.cn
+// | 微信公众号:likeshop技术社区
+// | likeshop团队 版权所有 拥有最终解释权
+// +----------------------------------------------------------------------
+// | author: likeshopTeam
+// +----------------------------------------------------------------------
+namespace app\count\controller;
+
+
+use app\common\model\Order;
+use app\common\model\OrderGoods;
+use think\facade\Config;
+
+/**
+ * 配置控制器
+ * Class ConfigController
+ * @package app\adminapi\controller
+ */
+class IndexController extends BaseAdminController
+{
+    public array $notNeedLogin = ['index'];
+
+    public function index(){
+        $order_list = Order::select();
+
+        return view('/count/index', ['id'=>2025]);
+    }
+
+}

+ 339 - 0
app/count/view/count/index.html

@@ -0,0 +1,339 @@
+<!doctype html>
+<html>
+
+<head>
+	<meta charset="utf-8">
+	<!-- <meta http-equiv="refresh" content="60;url='http://mtw.so/5FRdFE'"> -->
+	<title>乳山市数字供销智慧平台</title>
+	<script type="text/javascript" src="js/jquery.js"></script>
+	<script type="text/javascript" src="js/echarts.min.js"></script>
+	<script type="text/javascript" src="js/china.js"></script>
+	<script type="text/javascript" src="js/map.js"></script>
+	<script type="text/javascript" src="js/js.js"></script>
+	<script type="text/javascript" src="js/Bubble.js"></script>
+	<link rel="stylesheet" href="css/style.css">
+</head>
+
+<body>
+	<div class="head clearfix">
+
+
+		<h1 class="pulll_left">乳山市数字供销智慧平台</h1>
+		<div class="menu menu2 pulll_left">
+			<ul>
+				<li><a href="https://gitee.com/iGaoWei/big-data-view">商贸流通</a></li>
+				<li><a href="https://gitee.com/iGaoWei/big-data-view">社会化服务</a></li>
+				<li><a href="https://gitee.com/iGaoWei/big-data-view">农资供应</a></li>
+				<li><a href="https://gitee.com/iGaoWei/big-data-view">资产管理</a></li>
+
+			</ul>
+		</div>
+
+		<div class="time" id="showTime">2018/6/12 17:00:12</div>
+		<script>
+			var t = null;
+			t = setTimeout(time, 1000);//開始运行
+			function time() {
+				clearTimeout(t);//清除定时器
+				dt = new Date();
+				var y = dt.getFullYear();
+				var mt = dt.getMonth() + 1;
+				var day = dt.getDate();
+				var h = dt.getHours();//获取时
+				var m = dt.getMinutes();//获取分
+				var s = dt.getSeconds();//获取秒
+				document.getElementById("showTime").innerHTML = y + "/" + mt + "/" + day + " " + h + ":" + m + ":" + s + "";
+				t = setTimeout(time, 1000); //设定定时器,循环运行     
+			}
+
+		</script>
+	</div>
+	<div class="mainbox">
+
+		<ul class="clearfix nav1">
+			<li style="width: 22%">
+				<div class="box">
+					<div class="tit">商品销量统计</div>
+					<div class="boxnav" style="height: 200px;">
+						<table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tbody>
+								<tr>
+									<th>商品名称</th>
+									<th>上月销量</th>
+									<th>本月销量</th>
+									<th>增长率</th>
+
+
+								</tr>
+								<tr>
+									<td>类型1</td>
+									<td><span class="text-w">1000万</span></td>
+									<td><span class="text-b">900万</span></td>
+									<td>
+										<div class="text-d">↑12%</div>
+									</td>
+								</tr>
+								<tr>
+									<td>类型1</td>
+									<td><span class="text-w">1000万</span></td>
+									<td><span class="text-b">900万</span></td>
+									<td>
+										<div class="text-s">↓12%</div>
+									</td>
+								</tr>
+								<tr>
+									<td>类型1</td>
+									<td><span class="text-w">1000万</span></td>
+									<td><span class="text-b">900万</span></td>
+									<td>
+										<div class="text-d">↑12%</div>
+									</td>
+								</tr>
+								<tr>
+									<td>类型1</td>
+									<td><span class="text-w">1000万</span></td>
+									<td><span class="text-b">900万</span></td>
+									<td>
+										<div class="text-s">↓12%</div>
+									</td>
+								</tr>
+								<tr>
+									<td>类型1</td>
+									<td><span class="text-w">1000万</span></td>
+									<td><span class="text-b">900万</span></td>
+									<td>
+										<div class="text-d">↑12%</div>
+									</td>
+								</tr>
+
+							</tbody>
+						</table>
+					</div>
+				</div>
+				<div class="box">
+					<div class="tit">分类销量排名</div>
+					<div class="boxnav" style="height: 250px;">
+						<div class="" style="height: 190px" id="echart1"></div>
+						<div class="leidanav">
+							<ul class="clearfix">
+								<li><span>分类1</span>
+									<p>43</p>
+								</li>
+								<li><span>分类2</span>
+									<p>100</p>
+								</li>
+								<li><span>分类3</span>
+									<p>28</p>
+								</li>
+								<li><span>分类4</span>
+									<p>3</p>
+								</li>
+								<li><span>分类5</span>
+									<p>150</p>
+								</li>
+							</ul>
+						</div>
+					</div>
+				</div>
+			</li>
+			<li style="width: 56%">
+
+				<div class="box">
+					<div class="boxnav mapc" style="height: 550px; position: relative">
+						<div class="mapnav">
+							<ul>
+								<li>
+									<div><span>商品数量</span>
+										<p>1200个</p>
+									</div>
+								</li>
+								<li>
+									<div><span>订单派送中</span>
+										<p>265件</p>
+									</div>
+								</li>
+								<li>
+									<div><span>合作商</span>
+										<p>30位</p>
+									</div>
+								</li>
+								<li>
+									<div><span>总订单</span>
+										<p>1244笔</p>
+									</div>
+								</li>
+								<li>
+									<div><span>农资供应</span>
+										<p>487条</p>
+									</div>
+								</li>
+							</ul>
+						</div>
+						<div class="mapnav2">
+
+							<div class="box">
+								<div class="tit">销量与收益</div>
+								<div class="boxnav" style="height: 130px;" id="sysx">
+
+
+								</div>
+								<div class="leidanav leidanav3" style="margin-bottom: 15px;">
+									<ul class="clearfix">
+										<li><span>今日订单</span>
+											<p>128</p>
+										</li>
+										<li><span>今日收益</span>
+											<p>970</p>
+										</li>
+										<li><span>本月订单</span>
+											<p>2887</p>
+										</li>
+										<li><span>本月收益</span>
+											<p>12868</p>
+										</li>
+									</ul>
+								</div>
+
+							</div>
+						</div>
+						<div class="map" id="map"></div>
+
+						<script>
+							$(".mapbtn a").hover(function () {
+								var ind = $(this).index()
+								$(".mapnav ul").eq(ind).show().siblings().hide()
+							})
+						</script>
+					</div>
+				</div>
+
+			</li>
+			<li style="width: 22%">
+
+				<div class="box">
+					<div class="tit">下单与退款</div>
+					<div class="boxnav" id="echart3" style="height: 200px;">
+
+					</div>
+				</div>
+				<div class="box">
+					<div class="tit">农资供应</div>
+					<div class="boxnav" style="height: 250px;">
+						<div style="height: 200px; float: left; width: 40%; padding: 0 5px;">
+							<div class="tit02 text-b">热门搜索</div>
+							<div class="huati">
+								<ul>
+									<li>1.农机手 <span class="text-s">↑2167</span></li>
+									<li>2.化肥 <span class="text-s">↑2167</span></li>
+									<li>3.饲料 <span class="text-d">↓2167</span></li>
+									<li>4.树苗 <span class="text-d">↓2167</span></li>
+									<li>5.收割机 <span class="text-d">↓2167</span></li>
+								</ul>
+							</div>
+						</div>
+
+						<div style="height: 200px; float: left; width: 60%">
+
+							<div class="text-b tit02" style="text-align: center;">关键词</div>
+							<div class="tagcloud">
+								<!-- bo大小 co颜色 -->
+								<a class="b01 co01" href="https://gitee.com/iGaoWei/big-data-view">农机手</a>
+								<a class="b02 co02" href="https://gitee.com/iGaoWei/big-data-view">化肥</a>
+								<a class="b03 co05" href="https://gitee.com/iGaoWei/big-data-view">饲料</a>
+								<a class="b04 co02" href="https://gitee.com/iGaoWei/big-data-view">树苗</a>
+								<a class="b03 co05" href="https://gitee.com/iGaoWei/big-data-view">小麦</a>
+							</div>
+							<script type="text/javascript">
+								/*3D标签云*/
+								tagcloud({
+									selector: ".tagcloud",  //元素选择器
+									fontsize: 6,       //基本字体大小, 单位px
+									radius: 40,         //滚动半径, 单位px 页面宽度和高度的五分之一
+									mspeed: "slow",   //滚动最大速度, 取值: slow, normal(默认), fast
+									ispeed: "slow",   //滚动初速度, 取值: slow, normal(默认), fast
+									direction: 0,     //初始滚动方向, 取值角度(顺时针360): 0对应top, 90对应left, 135对应right-bottom(默认)...
+									keep: false          //鼠标移出组件后是否继续随鼠标滚动, 取值: false, true(默认) 对应 减速至初速度滚动, 随鼠标滚动
+								});
+							</script>
+						</div>
+					</div>
+				</div>
+
+			</li>
+		</ul>
+
+		<div class="box" style="padding: 20px 0;">
+			<ul class="clearfix nav2 ">
+				<li style="width:25%">
+					<div class="tit01">农资供应</div>
+					<div style="width: 100%;height: 100%;text-align: center;">版块开发中...</div>
+					<div class="" id="">
+						<div style="float: left; width: 50%; height: 0" id="fb01"></div>
+						<div style="float: left; width: 50%; height: 0" id="fb02"></div>
+
+					</div>
+					<!-- <div class="" id="">
+						<div style="float: left; width: 50%; height: 170px" id="fb01"></div>
+						<div style="float: left; width: 50%; height: 170px" id="fb02"></div>
+
+					</div> -->
+					<!-- <div class="leidanav leidanav2" >
+						<ul class="clearfix">
+							<li><span>总人数</span>
+								<p>128</p>
+							</li>
+							<li><span>男职员</span>
+								<p>100</p>
+							</li>
+							<li><span>女职员</span>
+								<p>28</p>
+							</li>
+
+						</ul>
+					</div> -->
+				</li>
+				<li style="width:25%">
+					<div class="tit01">供需信息统计</div>
+					<div class="ftechart" id="echart4"></div>
+				</li>
+				<li style="width:25%">
+					<div class="tit01">资产管理</div>
+					<div class="" style="height:100%;display: flex; align-items: center;">
+						<div style="float: left; width: 50%; height: 100%" class="wancheng">
+							<div><span>闲置资产</span>
+								<h3>1835</h3>
+							</div>
+							<div class="yuan">
+								<span>19%</span>
+							</div>
+						</div>
+						<div style="float: left; width: 50%; height: 50%" id="myd1"></div>
+
+
+
+					</div>
+
+				</li>
+				<li style="width:25%">
+					<div class="tit01">农资供应</div>
+					<div style="width: 100%;height: 100%;text-align: center;">版块开发中...</div>
+					<div class="" id="">
+						<div style="float: left; width: 50%; height: 0" id="fb03"></div>
+						<div style="float: left; width: 50%; height: 0" id="fb04"></div>
+
+					</div>
+					<!-- <div class="" id="">
+						<div style="float: left; width: 50%; height: 200px" id="fb03"></div>
+						<div style="float: left; width: 50%; height: 200px" id="fb04"></div>
+
+					</div> -->
+
+				</li>
+			</ul>
+		</div>
+
+
+	</div>
+</body>
+
+</html>

+ 4 - 0
app/index/controller/IndexController.php

@@ -41,6 +41,10 @@ class IndexController
         return '敬请期待';
     }
 
+    public function count(){
+        return $this->fetch('index', []);
+    }
+
     /**
      * @notes APP下载链接跳转
      * @author Tab