123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>监测指挥舱</title>
- <link rel="stylesheet" href="css/reset.css">
- <link rel="stylesheet" href="css/new_index.css">
- </head>
- <style>
-
- .centerBox {
- width: 75%;
- margin-right: 15px;
- background: transparent;
- }
- .boxFont {
- font-size: 1.2vw;
- }
- .centerMainBox1 {
- width: 100%;
- height: 60.5%;
- }
- .centerMainBox2 {
- width: 100%;
- height: 38%;
- position: relative;
- margin-top: 15px;
- }
- .centerMainBox2 .first_border {
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .boxTitle2 {
- width: 100%;
- height: 10%;
- font-size: .6vw;
- text-align: center;
- line-height: 10%;
- margin-top: 1vw;
- color: #0efcff;
- }
- .contList {
- position: relative;
- width: 70%;
- height: 8vw;
- margin: 1vw auto 0;
- }
- .content1 li {
- display: none;
- }
- .baseBox {
- width: 100%;
- border: none;
- background: none;
- }
- .boxTitle {
- font-size: .8vw;
- width: 38%;
- margin-top: 1vw;
- text-align: center;
- }
- .right {
- float: right;
- }
- .baseBoxLeft {
- width: 30%;
- height: 95%;
- position: relative;
- }
- .baseBoxRight {
- width: 68%;
- height: 100%;
- }
- .baseBoxLeft .first_border {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .baseBox1,
- .baseBox2,
- .baseBox3 {
- position: relative;
- }
- .baseBox1 .hardware,
- .baseBox2 img,
- .baseBox3 img {
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .csbaseBox1 {
- position: relative;
- z-index: 999;
- }
- #canvas {
- display: block;
- margin: 0 auto;
- width: 10vw;
- height: 5vw;
- }
- .progress {
- position: relative;
- }
- .progress img {
- width: 12.5vw;
- height: 2vw;
- position: absolute;
- top: .4vw;
- right: -.2vw;
- }
- .progress .disease {
- position: absolute;
- top: .7vw;
- left: .5vw;
- color: #fff;
- font-size: .8vw;
- }
- .progress .similar {
- position: absolute;
- top: .8vw;
- left: 3vw;
- color: #0efcff;
- font-size: .5vw;
- }
-
- .navLeft{
- position: absolute;
- top:5%;
- left:35%;
- width: 3.5%;
- height: 8%;
- z-index: 999;
- }
- .navLeft>img{
- width: 100%;
- height: 100%;
- }
- </style>
- <body>
- <div class="main">
- <div class="nav">XXXXX产业大数据指挥舱</div>
- <div class="nav_btn">
- <div class="btn_left">
- <a href="#">
- <div class="btn_list listActive">主页</div>
- </a>
- <a href="#">
- <div class="btn_list">土地流转</div>
- </a>
- <a href="#">
- <div class="btn_list">空天地</div>
- </a>
- <a href="#">
- <div class="btn_list">生长监测</div>
- </a>
- </div>
- <div class="btn_right">
- <a href="#">
- <div class="btn_list">生产加工</div>
- </a>
- <a href="#">
- <div class="btn_list">仓储管理</div>
- </a>
- <a href="#">
- <div class="btn_list">流通销售</div>
- </a>
- <a href="#">
- <div class="btn_list">数据中心</div>
- </a>
- </div>
- </div>
- <div class="content">
- <div class="centerBox">
- <div class="baseBox centerMainBox1" style="height:70%">
- <div class="baseBoxLeft left">
- <div class="boxTitle">茶叶病虫害预警</div>
- <img src="./img/left.png" class="first_border" alt="">
- <div class="firstBox">
- <div class="pic">
- <img src="img/demo_pic.png" class="first_top1" alt="">
- <img src="img/data_pic.png" class="first_top2" alt="">
- </div>
- <div class="picText">
- <span>样本图片</span>
- <span class="text_second">茶叶病虫害大数据库</span>
- </div>
- <div class="voice_animation">
- <canvas id="canvas">Your browser can not support canvas</canvas>
- </div>
- <div class="progress">
- <span class="disease">茶饼病</span>
-
- <span class="similar">相似度:85%</span>
- <img src="./img/progress.gif" alt="">
- </div>
- <div class="about_illness">
- <div class="symptom">
- <div class="symptom_title">病症症状</div>
- <div class="symptom_content">如需合作,请联系qq:863512936
- </div>
- </div>
- <div class="prevent">
- <div class="prevent_title">防治方法</div>
- <div class="prevent_content">
- 1.如需合作,请联系qq:863512936
- 2.如需商用,请联系qq:863512936
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="baseBoxRight right">
- <a class="navLeft" href="#"><img style="" src="./img/fanhui.png" alt=""></a>
-
- <div class="maps">
- <img class="land_level" src="img/landLevel.png" alt="">
- <img class="wifi_gif" src="img/wifi.gif"></img>
- <img class="sun_pic" src="img/sun.png" alt="">
- <img class="wrj_pic" src="img/wrj.png" alt="">
- <img class="wind_gif" src="img/wind_shape.gif" alt="">
- <img class="plant_pic display_box" src="img/plant.png" alt="">
- <div class="windows display_box">
- <ul>
- <li>土地信息</li>
- <li>如需商用:</li>
- <li>qq:863512936</li>
- <li>如需合作:</li>
- <li>qq:863512936</li>
- <li>qq:863512936</li>
- </ul>
- </div>
- <div class="window_two display_box">
- <ul>
- <li>刘新武</li>
- <li>年龄:41岁</li>
- <li>农事活动:6次</li>
- <li>信用等级:良好</li>
- </ul>
- </div>
- <div class="window_three display_box">
- <ul>
- <li>土壤数据</li>
- <li>湿度:63%</li>
- <li>酸碱度:PH4.8</li>
- <li>肥沃度:56%</li>
- </ul>
- </div>
- <div class="window_four display_box">
- <ul>
- <li>气象信息</li>
- <li>温度:19℃</li>
- <li>湿度:52%</li>
- <li>风速:2m/s</li>
- <li>降水:0mm</li>
- </ul>
- </div>
- <div class="window_five display_box">
- <ul>
- <li>植被信息</li>
- <li>品种名称:云台山大叶良种</li>
- <li>植株数量:76000株</li>
- <li>所属生长周期:幼年期</li>
- <li>长势情况:良好</li>
- </ul>
- </div>
- <div class="window_six display_box">
- <ul>
- <li>设备信息</li>
- <li>设备名称:无人机</li>
- <li>所属人:安化云台八角有限公司</li>
- <li>持续工作:3h</li>
- <li>连接状态:正常</li>
- </ul>
- </div>
- <a href="#"><div class="peasant"></div></a>
- <div class="land_box1"></div>
- <div class="land_box2"></div>
- <div class="land_box3"></div>
- <div class="land_box4"></div>
- <div class="plant"></div>
- <div class="soil_data"></div>
- <div class="weather_info"></div>
-
- </div>
- </div>
- </div>
-
- <div class="baseBox centerMainBox2" style="height:30%;">
- <img src="./img/down2.png" class="first_border" alt="">
- <div class="boxTitle2" style="width:26%;">统计数据</div>
- <div class="boxTitle2" style="width:26%;margin-left:22vw;margin-top: -1.4vw;">生长数据</div>
- <div class="boxTitle2" style="width:26%;margin-left:53vw;margin-top: -1.4vw;">气象数据</div>
- <div class="leftBottom">
- <div class="land_data">
- <p>10cm 温度30湿度67</p>
- <p>20cm 温度30湿度67</p>
- <p>30cm 温度30湿度67</p>
- </div>
- </div>
- <div class="right_box">
- <div class="grow_data">
- <img src="img/tree_pic.png" alt="">
- <p>生长周期:8周</p>
- <p>黏土</p>
- <p>10cm茶土:22.88</p>
- <span>未来5天降水量:0mm</span>
- <i></i>
- <div class="specialistSuggest">
- <div>专家建议:</div>
- <div>如需商用,请联系qq:863512936</div>
- </div>
- <div class="fertilizationSuggest">
- <div>该生长周期施肥建议:</div>
- <div>氮肥含量:1.3-1.5kg</div>
- <div>钾肥含量:1.5-1.7kg</div>
- </div>
- </div>
- <div class="weather_data">
- <div class="weather_text text_one">
- <span>温度:19℃</span>
- <span>湿度:52%</span>
- <span>风向:东南风</span>
- <span>风速:2m/s</span>
- </div>
- <div class="weather_text text_two">
- <span>降雨量:0mm</span>
- <span>蒸发量:0.326mm/h</span>
- <span>气压:0.326MPa</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="leftBox right" style="width:22%">
- <div class="baseBox baseBox1" style="margin-bottom:15px;height:40%">
- <img src="./img/right.png" class="hardware" alt="">
- <div class="csbaseBox1">
- <div class="boxTitle">硬件设备展示</div>
- <ul class="boxLis">
- <li class="left active">农业无人机</li>
- <li class="left">田间控制器</li>
- <li class="left">监控摄像头</li>
- <li class="left">土壤检测仪</li>
- </ul>
- <div class="content1">
- <ul>
- <li style="display: block;" class="contList">
-
- <div class="leftTopLine1"></div>
- <div class="leftTopLine2"></div>
- <div class="rightTopLine1"></div>
- <div class="rightTopLine2"></div>
- <div class="leftBottomLine1"></div>
- <div class="leftBottomLine2"></div>
- <div class="rightBottomLine1"></div>
- <div class="rightBottomLine2"></div>
- <div class="equipment_pic">
- <img class="first" src="img/uva.png" alt="">
- <img class="second" src="img/control.png" alt="">
- <img class="third" src="img/camera.png" alt="">
- <img class="fourth" src="img/detector.png" alt="">
- </div>
- </li>
- </ul>
- </div>
- <div class="liSpan">介绍</div>
- <p class="liP">
- 如需商用,请联系qq:863512936</p>
- </div>
- </div>
- <div class="baseBox baseBox2" style="margin-bottom:15px;height:29.5%">
- <img src="./img/right2.png" alt="">
-
- <div class="boxTitle2">灌溉数据</div>
- <div class="irrigate_data">
- <div class="irrigate_top">
- <div class="centerList">
- <div class="centerListFont">累计灌溉水量(m2)</div>
- <div class="centerListNum">
- <span class="">23678</span>
- </div>
- </div>
- <div class="centerList">
- <div class="centerListFont">灌溉压力(MPa)</div>
- <div class="centerListNum">
- <span class="">0.29</span>
- </div>
- </div>
- </div>
- <div class="irrigate_bottom">
- <div class="every_line">
- <span>当前灌溉流量(m²/h)</span>
- <i class="">0.78</i>
- </div>
- <div class="every_line">
- <span>当前灌溉阀门数量</span>
-
- <i class="counter-value">49</i>
- <i class="counter-value">2</i>
- </div>
- <div class="every_line">
- <span>茶园水池液位</span>
- <i>2.30</i>
- </div>
- </div>
- </div>
- </div>
- <div class="baseBox baseBox3" style="height:28%">
- <img src="./img/right3.png" alt="">
-
- <div class="boxTitle2">数据日志</div>
-
- <div class="data_day" id="demo" style="width:100%;overflow:hidden;height: 75%;">
- <table style="text-align: left;margin-left:10%;height:80%;">
- <tbody id="demo1">
-
- <tr>
- <td>u78</td>
- <td>传感器数据</td>
- <td>163.28</td>
- <td>2019年10月26日</td>
- </tr>
- <tr>
- <td>006</td>
- <td>无人机数据</td>
- <td>130.67</td>
- <td>2019年10月25日</td>
- </tr>
- <tr>
- <td>s07</td>
- <td>控制器数据</td>
- <td>163.28</td>
- <td>2019年10月25日</td>
- </tr>
- <tr>
- <td>872</td>
- <td>监视器数据</td>
- <td>130.67</td>
- <td>2019年10月24日</td>
- </tr>
- <tr>
- <td>d59</td>
- <td>土壤仪数据</td>
- <td>163.28</td>
- <td>2019年10月23日</td>
- </tr>
- <tr>
- <td>299</td>
- <td>灌溉阀数据</td>
- <td>130.67</td>
- <td>2019年10月23日</td>
- </tr>
- <tr>
- <td>256</td>
- <td>传感器数据</td>
- <td>163.28</td>
- <td>2019年10月22日</td>
- </tr>
- <tr>
- <td>026</td>
- <td>无人机数据</td>
- <td>130.67</td>
- <td>2019年10月20日</td>
- </tr>
- <tr>
- <td>037</td>
- <td>传感器数据</td>
- <td>163.28</td>
- <td>2019年10月22日</td>
- </tr>
- </tbody>
- <tbody id="demo2" style="text-align: left;margin-left:10%"></tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
- <script src="https://www.jq22.com/jquery/echarts-4.2.1.min.js"></script>
- <script src="js/dataScoll.js"></script>
- <script language="javascript" type="text/javascript">
- var demo = document.getElementById("demo");
- var demo1 = document.getElementById("demo1");
- var demo2 = document.getElementById("demo2");
- var speed = 15;
- demo2.innerHTML = demo1.innerHTML
- function Marquee() {
- if (demo2.offsetTop - demo.scrollTop <= 45) {
-
- demo.scrollTop -= demo1.offsetHeight
- } else {
-
- demo.scrollTop++
- }
- }
- var MyMar = setInterval(Marquee, speed);
- demo.onmouseover = function () { clearInterval(MyMar) }
- demo.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
- </script>
- <script>
- var doublePI = Math.PI * 2;
- var canvas;
- var ctx;
-
- var halfCanvasHeight = 100;
-
- var horizontalMargin = 150;
-
- var attenuationCoefficient = 2;
-
- var halfWaveCount = 20;
-
- var amplitudePercentage = 0.3;
-
- var radianStep = 0.4;
-
- var radianOffset = 0;
-
- var canvasWidth;
- function init() {
- canvas = document.getElementById("canvas");
- ctx = canvas.getContext("2d");
- window.addEventListener("resize", onResize);
- canvas.height = halfCanvasHeight * 2;
- onResize();
- loop();
- }
- function onResize() {
-
- canvasWidth = canvas.width = window.innerWidth - horizontalMargin;
- }
-
- function calcAttenuation(x) {
- return Math.pow(4 * attenuationCoefficient / (4 * attenuationCoefficient + Math.pow(x, 4)), 2 * attenuationCoefficient);
- }
-
- function drawAcousticWave(heightPercentage, alpha, lineWidth) {
- ctx.strokeStyle = "white";
- ctx.globalAlpha = alpha;
- ctx.lineWidth = lineWidth || 1;
- ctx.beginPath();
- ctx.moveTo(0, halfCanvasHeight);
- var x, y;
- for (var i = -attenuationCoefficient; i <= attenuationCoefficient; i += 0.01) {
-
- x = canvasWidth * (i + attenuationCoefficient) / (2 * attenuationCoefficient);
-
- y = halfCanvasHeight + halfCanvasHeight * amplitudePercentage * calcAttenuation(i) * heightPercentage * Math.sin(halfWaveCount * i + radianOffset);
- ctx.lineTo(x, y);
- }
- ctx.stroke();
- }
- function loop() {
- radianOffset = (radianOffset + radianStep) % doublePI;
- ctx.clearRect(0, 0, canvas.width, canvas.height);
- drawAcousticWave(1, 1, 2);
- for (var i = 2; i < 4; i++) {
- var reciprocal = 1 / i;
- drawAcousticWave(reciprocal, reciprocal / 4);
- drawAcousticWave(-reciprocal, reciprocal / 4);
- }
- requestAnimationFrame(loop);
- }
- init();
- setInterval(function () {
- numInit();
- }, 6500)
-
- $('.peasant').mouseenter(function () {
- console.log(111)
- console.log($('.window_two'))
- $('.window_two').removeClass('display_box')
- })
- $('.peasant').mouseout(function () {
- $('.window_two').addClass('display_box')
- })
- $('.land_box1').mouseenter(function () {
- console.log(15556)
- $('.windows').removeClass('display_box')
- })
- $('.land_box2').mouseenter(function () {
- console.log(15556)
- $('.windows').removeClass('display_box')
- })
- $('.land_box3').mouseenter(function () {
- console.log(15556)
- $('.windows').removeClass('display_box')
- })
- $('.land_box4').mouseenter(function () {
- console.log(15556)
- $('.windows').removeClass('display_box')
- })
- $('.land_box1').mouseout(function () {
- $('.windows').addClass('display_box')
- })
- $('.land_box2').mouseout(function () {
- $('.windows').addClass('display_box')
- })
- $('.land_box3').mouseout(function () {
- $('.windows').addClass('display_box')
- })
- $('.land_box4').mouseout(function () {
- $('.windows').addClass('display_box')
- })
- $('.plant').mouseenter(function () {
- $('.plant_pic').removeClass('display_box')
- $('.window_five').removeClass('display_box')
- })
- $('.plant').mouseout(function () {
- $('.plant_pic').addClass('display_box')
- $('.window_five').addClass('display_box')
- })
- $('.soil_data').mouseenter(function () {
- $('.window_three').removeClass('display_box')
- })
- $('.soil_data').mouseout(function () {
- $('.window_three').addClass('display_box')
- })
- $('.weather_info').mouseenter(function () {
- $('.window_four').removeClass('display_box')
- })
- $('.weather_info').mouseout(function () {
- $('.window_four').addClass('display_box')
- })
- $('.wrj_pic').mouseenter(function () {
- $('.window_six').removeClass('display_box')
- })
- $('.wrj_pic').mouseout(function () {
- $('.window_six').addClass('display_box')
- })
- $('.boxLis').on('mouseenter', 'li', function () {
- var that = $(this);
- that.addClass('active').siblings().removeClass('active');
- $('.equipment_pic img').hide();
- $('.equipment_pic img').eq(that.index()).show()
- })
- setInterval(function () {
- numInit();
- numInit1();
- numInit2();
- }, 6000)
- </script>
- </html>
|