From 9d1f480f6b40767d7adfbf2845ab8c013cbeb05d Mon Sep 17 00:00:00 2001 From: 陈战涛 <chenzhantao7055@sina.com> Date: 星期四, 16 三月 2023 09:07:31 +0800 Subject: [PATCH] 调整整体页面 --- /dev/null | 50 -------------------------------------------------- 1 files changed, 0 insertions(+), 50 deletions(-) diff --git a/igds-app/comprehensive-display-100.html b/igds-app/comprehensive-display-100.html deleted file mode 100644 index 4ac9cb9..0000000 --- a/igds-app/comprehensive-display-100.html +++ /dev/null @@ -1,358 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>缁煎悎灞曠ず</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - .bg-white{ - background-color:#fff!important - } - .ckzl_show { - display: block; - padding: 20px; - box-sizing: border-box; - } - .ckzl_show h3 { - color: #245ca7; - font-size: 20px; - border-bottom: 1px #efefef solid; - padding-bottom: 10px; - margin-bottom: 15px; - } - .ckzl_show .show_p p { - line-height: 30px; - } - .ckzl_show .show_p span { - align-self: center; - width: 80px; - } - .ckzl_show .show_tjt { - display: block; - margin: auto; - text-align: center; - } - .ckzl_show .show_tjt img { - width: auto; - height: 200px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">缁煎悎灞曠ず</h1> - </header> - <div class="mui-content"> - <div class="ckzl_show bg-white"> - <h3 style="font-size: 16px" id="deptName">搴撳尯鍚嶇О锛�</h3> - <h3 style="font-size: 16px" id="depotNum">浠撳簱涓暟锛�</h3> - <div class="show_tjt" id="EchartsContent1" style="width:100%;height: 200px;"> - </div> - <div class="show_tjt" id="EchartsContent2" style="width:100%;height: 200px;"> - </div> - <div class="show_tjt" id="EchartsContent3" style="width:100%;height: 200px;"> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var user; - var data = { - "interfaceId": "5101", - "sign": "10101", - "outId": "10101", - "reqDateTime": new Date(), - "tokenAuth": "" - }; - - var deptName; //鍒嗗簱鍚嶇О - var depotNum = 0; //浠撳簱鎬讳釜鏁� - var pieChart1; - var pieChart2; - var pieChart3; - - mui.init() - - mui.plusReady(function() { - user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - pieChart1 = initPieChart1(); - pieChart2 = initPieChart2(); - pieChart3 = initPieChart3(); - getList() - }) - - function getList() { - var url = user.url + "/api-phone/gateway"; - //鍙戦�佽姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(data) { - if (data.code == "0000") { - depotNum = data.data.depotNum; - deptName = data.data.deptName; - $("#depotNum").html("浠撳簱涓暟锛�" + depotNum + "涓�"); - $("#deptName").html("搴撳尯鍚嶇О锛�" + deptName); - //1. 绮鎬ц川 - var foodType = data.data.listFoodType; - if (foodType != null && foodType.length > 0) { - var series1 = new Array(); - for (var i = 0; i < foodType.length; i++) { - var temp = { - value: '', - name: '' - }; - temp.value = foodType[i].typeNum; - temp.name = foodType[i].typeName; - series1.push(temp); - } - pieChart1.option.series[0].data = series1; - pieChart1.chart.setOption(pieChart1.option, true); - } - //2. 绮鍝佺 - var foodVariety = data.data.listFoodVariety; - if (foodVariety != null && foodVariety.length > 0) { - var series2 = new Array(); - for (var i = 0; i < foodVariety.length; i++) { - var temp = { - value: '', - name: '' - }; - temp.value = foodVariety[i].varietyNum; - temp.name = foodVariety[i].varietyName; - series2.push(temp); - } - pieChart2.option.series[0].data = series2; - pieChart2.chart.setOption(pieChart2.option, true); - } - //3. 绮绛夌骇 - var foodLevel = data.data.listFoodLevel; - if (foodLevel != null && foodLevel.length > 0) { - var series3 = new Array(); - for (var i = 0; i < foodLevel.length; i++) { - var temp = { - value: '', - name: '' - }; - temp.value = foodLevel[i].levelNum; - temp.name = foodLevel[i].levelName; - series3.push(temp); - } - pieChart3.option.series[0].data = series3; - pieChart3.chart.setOption(pieChart3.option, true); - } - } else { - mui.alert("鏆傛棤鏁版嵁锛�","鎻愮ず",["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒","鎻愮ず",["纭畾"],function(){},"div"); - } - }) - - } - - //鍒濆鍖栫伯椋熸�ц川楗肩姸鍥� - function initPieChart1() { - var option = { - title: { - text: '瀛樺偍缁熻-绮鎬ц川', - x: 'center', - textStyle: { - fontSize: 16, - } - }, - tooltip: { - trigger: 'item', - formatter: "{a} <br/>{b}: {c} ({d}%)" - }, - legend: { - orient: 'vertical', - left: 0, - top: 25, - itemGap: 5, - itemWidth: 5, - itemHeight: 5 - }, - series: [{ - name: '', - type: 'pie', - radius: '75%', - center: ['50%', '50%'], - data: [{ - value: 10, - name: '##1' - }, - { - value: 10, - name: '##2' - }, - { - value: 20, - name: '##3' - } - ], - itemStyle: { - emphasis: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } - }, - label: { - show: false - } - }], - } - var myChart = echarts.init(document.getElementById('EchartsContent1'), "light"); - // 浣跨敤鍒氭寚瀹氱殑閰嶇疆椤瑰拰鏁版嵁鏄剧ず鍥捐〃銆� - myChart.setOption(option, true); - return { - "chart": myChart, - "option": option - } - }; - //鍒濆鍖栫伯椋熷搧绉嶉ゼ鐘跺浘 - function initPieChart2() { - var option = { - title: { - text: '瀛樺偍缁熻-绮鍝佺', - x: 'center', - textStyle: { - fontSize: 16, - } - }, - tooltip: { - trigger: 'item', - formatter: "{a} <br/>{b}: {c} ({d}%)" - }, - legend: { - orient: 'vertical', - left: 0, - top: 25, - itemGap: 5, - itemWidth: 5, - itemHeight: 5 - }, - series: [{ - name: '', - type: 'pie', - radius: '75%', - center: ['50%', '50%'], - data: [{ - value: 10, - name: '##1' - }, - { - value: 10, - name: '##2' - }, - { - value: 20, - name: '##3' - } - ], - itemStyle: { - emphasis: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } - }, - label: { - show: false - } - }], - } - var myChart = echarts.init(document.getElementById('EchartsContent2'), "light"); - // 浣跨敤鍒氭寚瀹氱殑閰嶇疆椤瑰拰鏁版嵁鏄剧ず鍥捐〃銆� - myChart.setOption(option, true); - return { - "chart": myChart, - "option": option - } - }; - //鍒濆鍖栫伯椋熺瓑绾чゼ鐘跺浘 - function initPieChart3() { - var option = { - title: { - text: '瀛樺偍缁熻-绮绛夌骇', - x: 'center', - textStyle: { - fontSize: 16, - } - }, - tooltip: { - trigger: 'item', - formatter: "{a} <br/>{b}: {c} ({d}%)" - }, - legend: { - orient: 'vertical', - left: 0, - top: 25, - itemGap: 5, - itemWidth: 5, - itemHeight: 5 - }, - series: [{ - name: '', - type: 'pie', - radius: '75%', - center: ['50%', '50%'], - data: [{ - value: 10, - name: '##1' - }, - { - value: 10, - name: '##2' - }, - { - value: 20, - name: '##3' - } - ], - itemStyle: { - emphasis: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' - } - }, - label: { - show: false - } - }], - } - var myChart = echarts.init(document.getElementById('EchartsContent3'), "light"); - // 浣跨敤鍒氭寚瀹氱殑閰嶇疆椤瑰拰鏁版嵁鏄剧ず鍥捐〃銆� - myChart.setOption(option, true); - return { - "chart": myChart, - "option": option - } - }; - </script> - </body> -</html> diff --git a/igds-app/device-control-air.html b/igds-app/device-control-air.html deleted file mode 100644 index 70d5d21..0000000 --- a/igds-app/device-control-air.html +++ /dev/null @@ -1,504 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>娓╂帶鎺у埗</title> - <meta name="viewport" - content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link rel="stylesheet" href="./css/mui.picker.css" /> - <link rel="stylesheet" href="./css/mui.picker.min.css" /> - <link rel="stylesheet" href="./css/mui.poppicker.css" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-grid-view.mui-grid-9 .mui-media { - background: #c6c8ca; - height: 120px; - width: 33.3333%; - } - - .mui-grid-view.mui-grid-9 { - padding: 5px 5px; - border-top: none; - border-left: none; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #0062cc; - margin-top: unset; - } - - .img_ico { - width: 70px; - height: auto; - display: block; - margin: auto; - margin-top: 10px; - } - - .title { - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #333; - height: 40px; - line-height: 40px; - } - - /*绌鸿皟鎿嶄綔寮瑰嚭绐�*/ - .mark_air { - background: rgba(0, 0, 0, .8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - - .mark_air_layer { - background: #fff; - width: 80%; - margin: auto; - border-radius: 5px; - } - - .mark_air_layer .title { - background: #245ca7; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - } - - .mark_air_layer .title a { - line-height: 40px; - font-size: 2.5rem; - float: right; - } - - .mark_air_layer .mark_air_btn button { - background: #ff6355; - color: #fff; - font-size: 18px; - } - - .mark_air_btn { - margin: 10px; - text-align: center; - } - - .mark_air_layer .mark_air_btn button:hover { - opacity: .8; - } - - a { - text-decoration: none; - color: #f7f7f7; - } - - .mui-table-view-cell { - position: relative; - overflow: hidden; - height: 50px; - padding: 11px 15px; - } - - .mui-table-view-cell span { - line-height: 30px; - } - - .mui-input-row.mui-input-range { - padding-right: 10px; - height: 60px; - } - - .mui-input-row label { - padding: 25px 15px; - } - - .mui-input-range input[type=range] { - margin: 30px 0; - } - - .mui-table-view-cell select { - width: 30%; - float: right; - margin-top: -4px; - font-size: 16px; - height: unset; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绌鸿皟璁惧</h1> - </header> - <div class="mui-content"> - <div id="deviceList1"> - <div class="title"><strong>浠撳簱姝i潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/STATUS_05_OPEN.gif"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_05_OPEN.gif"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_05_CLOSE.png"> - </a> - </li> - </ul> - </div> - <div id="deviceList2"> - - - <!-- <div class="title"><strong>浠撳簱鑳岄潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/STATUS_05_CLOSE.png"> - - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_05_CLOSE.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog()"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_05_OPEN.gif"> - </a> - </li> - </ul> --> - </div> - - <!--寮瑰嚭--> - <div class="mark_air" id="openOne"> - <div class="mark_air_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName1">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - <div class="mark_air_body"> - <ul class="mui-table-view"> - - <li class="mui-table-view-cell"> - <span>寮�鍏�</span> - <div id="openStatus" class="mui-switch mui-switch-blue"> - <div class="mui-switch-handle"></div> - </div> - </li> - <li class="mui-table-view-cell"> - <span>妯″紡</span> - <select id="targetModel"> - <option>璇烽�夋嫨</option> - <option value="01">鍒跺喎</option> - <option value="02">閫氶</option> - </select> - </li> - <div class="mui-input-row mui-input-range"> - <label>娓╁害</label> - <input type="range" id='targetTemp' value="20" min="9" max="25"> - </div> - </ul> - </div> - <div class="mark_air_btn mx-3 mb-3"> - <button class="btn btn-block" style="height: 40px;width: 60%;" onclick="toExecute()">纭畾</button> - </div> - - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script src="./js/mui.picker.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/mui.poppicker.js"></script> - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var deviceList; //璁惧闆嗗悎 - var indexTag = null; //璁惧鎿嶄綔鏃剁殑鏍囪 - //绌鸿皟璁剧疆鍙傛暟 - var openStatus = true; - var targetModel = ''; - var targetTemp = ''; - - //鑾峰彇浠撳簱涓嬬殑閫氶璁惧璇锋眰鍙傛暟 - var data1 = { - "interfaceId": "5402", - "sign": "10402", - "outId": "10402", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "05" - } - }; - - var data0 = { - - } - //鎺у埗璁惧鍙傛暟 - var data2 = { - "interfaceId": "5404", - "sign": "10404", - "outId": "10404", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "", - "depotId": "", - "passCode": "", - "serId": "", - "id": "", - "name": "", - "targetStatus": "", - "targetModel": "", - "targetTemp": "20" - } - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - var user = JSON.parse(localStorage.getItem('user')); - $("#depotName").html(curr.depotName); - //鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getDeviceList(); - }) - - //鐩戝惉寮圭獥涓紑鍏� - mui('.mui-content .mui-switch').each(function() { - this.addEventListener('toggle', function(event) { - openStatus = (event.detail.isActive ? 'true' : 'false'); - }); - }); - - //鑾峰彇浠撳簱淇℃伅 - function getDeviceList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deviceList = result.data; - if (deviceList != null && deviceList.length > 0) { - renderDeviceList(); - } else { - mui.alert("鏆傛棤璁惧锛�", "鎻愮ず", ["纭畾"], function() {}, "div") - } - } else { - mui.alert("鏆傛棤璁惧锛�", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //娓叉煋 - function renderDeviceList() { - //鏍囪浠撳簱姝e弽闈㈢殑璁惧鏁� - var count1 = 0; - var count2 = 0; - - var html1 = ''; - var html2 = ''; - html1 += '<div class="title"><strong>浠撳簱姝i潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - html2 += '<div class="title"><strong>浠撳簱鑳岄潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - var img_url; - $.each(deviceList, function(index, item) { - img_url = ''; - //璁剧疆璁惧鍥剧墖璺緞 - if (item.type == "05") { - if (item.status == "OPEN") { - img_url = './images/device-status/STATUS_05_OPEN.gif'; - } else { - img_url = './images/device-status/STATUS_05_CLOSE.png'; - } - } - //浠撳簱姝i潰 - if (item.location == '01') { - html1 += - '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html1 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html1 += 'src="' + img_url + '">'; - html1 += '</a></li>'; - count1++; - } - //浠撳簱鑳岄潰 - if (item.location == '02') { - html2 += - '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html2 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html2 += 'src="' + img_url + '">'; - html2 += '</a></li>'; - count2++; - } - }) - html1 += '</ul>'; - html2 += '</ul>'; - if (count1 > 0) { - $("#deviceList1").html(html1); - } else { - $("#deviceList1").html(""); - } - if (count2 > 0) { - $("#deviceList2").html(html2); - } else { - $("#deviceList2").html(""); - } - } - - //璁惧鎿嶄綔 - function toExecute() { - if (indexTag != null && indexTag >= 0) { - //鑾峰彇鐩爣妯″紡鍜屾俯搴� - targetModel = mui("#targetModel")[0].value; - targetTemp = mui("#targetTemp")[0].value; - //璧嬪�煎弬鏁� - data2.data.type = deviceList[indexTag].type; - data2.data.depotId = deviceList[indexTag].depotId; - data2.data.passCode = deviceList[indexTag].passCode; - data2.data.serId = deviceList[indexTag].serId; - data2.data.id = deviceList[indexTag].id; - data2.data.name = deviceList[indexTag].name; - if (openStatus) { - data2.data.targetStatus = 'OPEN'; - } else { - data2.data.targetStatus = 'CLOSE'; - } - data2.data.targetModel = targetModel; - data2.data.targetTemp = targetTemp; - - //鍙戦�佹搷浣滆姹� - toControlDevice(); - - //鍏抽棴寮圭獥 - closeDialog(); - } - } - - //璁惧鎿嶄綔璇锋眰 - function toControlDevice() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.alert("鎿嶄綔鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掑悗閲嶆柊鎵撳紑姝ら〉闈紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } else { - mui.alert(result.msg, "鎻愮ず", ["纭畾"], function() {}, "div") - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //鎵撳紑寮圭獥 - function openDialog(index) { - indexTag = index; - $("#markName1").html("璁惧鎿嶄綔 - " + deviceList[index].name); - - //寮圭獥寮�鍏宠祴鍊� - $("#openStatus").removeClass("mui-active"); - if (deviceList[index].status == "OPEN") { - $("#openStatus").addClass("mui-active"); - } - - $('#openOne').css('display', 'flex'); - } - - //鍏抽棴寮圭獥 - function closeDialog() { - indexTag = null; - $("#openOne").css('display', 'none'); - } - - //鐩戝惉鏃堕棿閫夋嫨 - function searchTime(tag) { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - var dateTime = year + "-" + month + "-" + day; - var dtPicker = new mui.DtPicker({ - type: 'datetime', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: dateTime //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - var h = selectItems.h.text; //鑾峰彇閫夋嫨鐨勬棩 - var i = selectItems.i.text; //鑾峰彇閫夋嫨鐨勬棩 - dateTime = y + "-" + m + "-" + d + " " + h + ":" + i; - $("#" + tag).val(dateTime); - }) - } - </script> - </body> -</html> diff --git a/igds-app/device-control-door.html b/igds-app/device-control-door.html deleted file mode 100644 index 5c4f8cf..0000000 --- a/igds-app/device-control-door.html +++ /dev/null @@ -1,392 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>闂ㄧ鎺у埗</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-grid-view.mui-grid-9 .mui-media { - background: #ddd; - height: 130px; - width: 33.3333%; - } - - .mui-grid-view.mui-grid-9 { - padding: 5px 5px; - border-top: none; - border-left: none; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #0062cc; - margin-top: unset; - } - - .img_ico { - width: 70px; - height: auto; - display: block; - margin: auto; - margin-top: 10px; - } - - .title { - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #333; - height: 40px; - line-height: 40px; - } - - /*鎿嶄綔寮瑰嚭绐�*/ - .mark_one { - background: rgba(0, 0, 0, .8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - - .mark_one_layer { - background: #fff; - width: 85%; - margin: auto; - border-radius: 5px; - } - - .mark_one_layer .title { - background: #245ca7; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - border-radius: 5px 5px 0 0; - } - - .mark_one_layer .title a { - line-height: 40px; - font-size: 2.5rem; - float: right; - } - - .mark_one_layer .btn { - display: block; - font-size: 1.5rem; - text-align: center; - } - - .mark_one_layer .btn button { - color: #fff; - border-radius: 5px; - line-height: 35px; - font-size: 16px; - margin: 10px 10px; - } - - .mark_one_btn1 { - background: #2f64ab; - width: 40%; - } - - .mark_one_btn2 { - background: #e4606d; - width: 40%; - } - - a { - text-decoration: none; - color: #f7f7f7; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>闂ㄧ璁惧</h1> - </header> - <div class="mui-content"> - <div id="deviceList1"> - <!-- <div class="title"><strong>浠撳簱姝i潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/lock.png"> - </a> - </li> - </ul> --> - </div> - <div id="deviceList2"> - <!-- <div class="title"><strong>浠撳簱鑳岄潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/lock_open.png"> - - </a> - </li> - </ul> --> - </div> - - <!--寮圭獥--> - <div class="mark_one" id="openOne" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName1">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 寮�闂� - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽棬 - </button> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var deviceList; //璁惧闆嗗悎 - var indexTag = null; //璁惧鎿嶄綔鏃剁殑鏍囪 - //鑾峰彇浠撳簱涓嬬殑闂ㄧ璁惧璇锋眰鍙傛暟 - var data1 = { - "interfaceId": "5402", - "sign": "10402", - "outId": "10402", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "0E" //闂ㄧ - } - }; - //鎺у埗璁惧鍙傛暟 - var data2 = { - "interfaceId": "5405", - "sign": "10405", - "outId": "", - "reqDateTime": new Date(), - "tokenAuth": "", - "data1": [] - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - var user = JSON.parse(localStorage.getItem('user')); - $("#depotName").html(curr.depotName); - //鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - //璁剧疆闂ㄧ鏉冮檺鐮� - data2.outId = curr.doorToken; - - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getDeviceList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getDeviceList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deviceList = result.data; - if (deviceList != null && deviceList.length > 0) { - renderDeviceList(); - } else { - mui.alert('鏆傛棤璁惧锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert('鏃犵浉鍏宠澶囦俊鎭紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDeviceList() { - //鏍囪浠撳簱姝e弽闈㈢殑璁惧鏁� - var count1 = 0; - var count2 = 0; - - var html1 = ''; - var html2 = ''; - html1 += '<div class="title"><strong>浠撳簱姝i潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - html2 += '<div class="title"><strong>浠撳簱鑳岄潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - var img_url; - $.each(deviceList, function(index, item) { - img_url = ''; - //璁剧疆璁惧鍥剧墖璺緞 - if (item.type == "0E") { - if (item.status == "OPEN") { - img_url = './images/device-status/lock_open.png'; - } else { - img_url = './images/device-status/lock.png'; - } - } - - //浠撳簱姝i潰 - if (item.location == '01') { - html1 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html1 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html1 += 'src="' + img_url + '">'; - html1 += '</a></li>'; - count1++; - } - //浠撳簱鑳岄潰 - if (item.location == '02') { - html2 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html2 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html2 += 'src="' + img_url + '">'; - html2 += '</a></li>'; - count2++; - } - }) - html1 += '</ul>'; - html2 += '</ul>'; - if (count1 > 0) { - $("#deviceList1").html(html1); - } else { - $("#deviceList1").html(""); - } - if (count2 > 0) { - $("#deviceList2").html(html2); - } else { - $("#deviceList2").html(""); - } - } - - //璁惧鎿嶄綔 - function toExecute(targetStatus) { - if (indexTag != null && indexTag >= 0) { - var batchTag = false; - //鍒ゆ柇鏄惁鏄壒閲� - if (targetStatus == 'W_OPEN_ALL') { - targetStatus = 'OPEN'; - batchTag = true; - } - if (targetStatus == 'W_CLOSE_ALL') { - targetStatus = 'CLOSE'; - batchTag = true; - } - //鍙傛暟娓呯┖ - data2.data1 = []; - if (batchTag) { //鎵归噺鎿嶄綔 - $.each(deviceList, function(index, item) { - if (deviceList[indexTag].type == item.type) { - data2.data1.push({ - "id": item.id, - "depotId": item.depotId, - "passCode": item.passCode, - "name": item.name, - "serId": item.serId, - "link": item.link, - "type": item.type, - "targetStatus": targetStatus - }) - } - }) - } else { //鍗曡澶囨搷浣� - data2.data1.push({ - "id": deviceList[indexTag].id, - "depotId": deviceList[indexTag].depotId, - "passCode": deviceList[indexTag].passCode, - "name": deviceList[indexTag].name, - "serId": deviceList[indexTag].serId, - "link": deviceList[indexTag].link, - "type": deviceList[indexTag].type, - "targetStatus": targetStatus - }) - } - //鍙戦�佹搷浣滆姹� - toControlDevice(); - - //鍏抽棴寮圭獥 - closeDialog(); - } - } - - //璁惧鎿嶄綔璇锋眰 - function toControlDevice() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.alert('鎿嶄綔鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掑悗閲嶆柊鎵撳紑姝ら〉闈紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //鎵撳紑寮圭獥 - function openDialog(index) { - indexTag = index; - $("#markName1").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openOne').css('display', 'flex'); - } - - //鍏抽棴寮圭獥 - function closeDialog() { - indexTag = null; - $("#openOne").css('display', 'none'); - } - </script> - </body> -</html> diff --git a/igds-app/device-control-fan.html b/igds-app/device-control-fan.html deleted file mode 100644 index ca9aa38..0000000 --- a/igds-app/device-control-fan.html +++ /dev/null @@ -1,641 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>椋庢満鎺у埗</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-grid-view.mui-grid-9 .mui-media { - background: #c6c8ca; - height: 130px; - width: 33.3333%; - } - - .mui-grid-view.mui-grid-9 { - padding: 5px 5px; - border-top: none; - border-left: none; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #0062cc; - margin-top: unset; - } - - .img_ico { - width: 70px; - height: auto; - display: block; - margin: auto; - margin-top: 10px; - } - - .title { - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #333; - height: 40px; - line-height: 40px; - } - - /*鎿嶄綔寮瑰嚭绐�*/ - .mark_one { - background: rgba(0, 0, 0, .8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - - .mark_one_layer { - background: #fff; - width: 85%; - margin: auto; - border-radius: 5px; - } - - .mark_one_layer .title { - background: #245ca7; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - border-radius: 5px 5px 0 0; - } - - .mark_one_layer .title a { - line-height: 40px; - font-size: 2.5rem; - float: right; - } - - .mark_one_layer .btn { - display: block; - font-size: 1.5rem; - text-align: center; - } - - .mark_one_layer .btn button { - color: #fff; - border-radius: 5px; - line-height: 35px; - font-size: 16px; - margin: 10px 10px; - } - - .mark_one_btn1 { - background: #2f64ab; - width: 40%; - } - - .mark_one_btn2 { - background: #e4606d; - width: 40%; - } - - .mark_one_btn3 { - background: #117a8b; - width: 40%; - } - - .mark_one_btn4 { - background: #e4606d; - width: 25%; - } - - .mark_one_btn5 { - background: #117a8b; - width: 25%; - } - - a { - text-decoration: none; - color: #f7f7f7; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>椋庢満璁惧</h1> - </header> - <div class="mui-content"> - <div id="deviceList1"> - <!-- <div class="title"><strong>浠撳簱姝i潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_01_CLOSE.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_01_CLOSE.png"> - </a> - </li> - </ul> --> - </div> - <div id="deviceList2"> - <!-- <div class="title"><strong>浠撳簱鑳岄潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/STATUS_02_F_OPEN_F.gif"> - - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_02_F_OPEN.gif"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_02_W_OPEN.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_02_W_CLOSE.png"> - </a> - </li> - </ul> --> - </div> - - <!--杞存祦椋庢満寮圭獥--> - <div class="mark_one" id="openOne" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName1">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 寮�椋庣獥 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽绐� - </button> - </div> - <div class="btn"> - <button class="mark_one_btn3 mb-3" onclick="toExecute('F_OPEN')"> - 寮�椋庢満 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('F_CLOSE')"> - 鍏抽鏈� - </button> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('W_OPEN_ALL')"> - 椋庣獥鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('W_CLOSE_ALL')"> - 椋庣獥鍏ㄥ叧 - </button> - </div> - </div> - </div> - <!--鐜祦椋庢満寮圭獥--> - <div class="mark_one" id="openTwo" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName2">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - <div class="btn"> - <button class="mark_one_btn5 mb-3" onclick="toExecute('F_OPEN')"> - 寮洪 - </button> - <button class="mark_one_btn4 mb-3" onclick="toExecute('F_CLOSE')"> - 鍏抽鏈� - </button> - <button class="mark_one_btn5 mb-3" onclick="toExecute('F_OPEN_F')"> - 寮遍 - </button> - </div> - </div> - </div> - <!--娣锋祦椋庢満寮圭獥--> - <div class="mark_one" id="openThree" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName3">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 寮�椋庡彛 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽鍙� - </button> - </div> - <div class="btn"> - <button class="mark_one_btn5 mb-3" onclick="toExecute('F_OPEN')"> - 姝h浆 - </button> - <button class="mark_one_btn4 mb-3" onclick="toExecute('F_CLOSE')"> - 鍏抽鏈� - </button> - <button class="mark_one_btn5 mb-3" onclick="toExecute('F_OPEN_F')"> - 鍙嶈浆 - </button> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('W_OPEN_ALL')"> - 椋庡彛鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('W_CLOSE_ALL')"> - 椋庡彛鍏ㄥ叧 - </button> - </div> - </div> - </div> - <!--鍔犲帇椋庢満寮圭獥--> - <div class="mark_one" id="openFour" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName4">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - - <div class="btn"> - <button class="mark_one_btn3 mb-3" onclick="toExecute('OPEN')"> - 鎵撳紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽棴 - </button> - </div> - <div class="btn"> - <button class="mark_one_btn3 mb-3" onclick="toExecute('OPEN_ALL')"> - 鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('OPEN_ALL')"> - 鍏ㄥ叧 - </button> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var deviceList; //璁惧闆嗗悎 - var indexTag = null; //璁惧鎿嶄綔鏃剁殑鏍囪 - //鑾峰彇浠撳簱涓嬬殑閫氶璁惧璇锋眰鍙傛暟 - var data1 = { - "interfaceId": "5402", - "sign": "10402", - "outId": "10402", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "02", //杞存祦椋庢満 - "type1": "04", //鐜祦椋庢満 - "type2": "0C", //娣锋祦椋庢満 - "type3": "0D" //鍔犲帇椋庢満 - } - }; - //鎺у埗璁惧鍙傛暟 - var data2 = { - "interfaceId": "5403", - "sign": "10403", - "outId": "10403", - "reqDateTime": new Date(), - "tokenAuth": "", - "data1": [] - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - var user = JSON.parse(localStorage.getItem('user')); - $("#depotName").html(curr.depotName); - //鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getDeviceList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getDeviceList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deviceList = result.data; - if (deviceList != null && deviceList.length > 0) { - renderDeviceList(); - } else { - mui.alert('鏆傛棤璁惧锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert('鏃犵浉鍏宠澶囦俊鎭紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDeviceList() { - //鏍囪浠撳簱姝e弽闈㈢殑璁惧鏁� - var count1 = 0; - var count2 = 0; - - var html1 = ''; - var html2 = ''; - html1 += '<div class="title"><strong>浠撳簱姝i潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - html2 += '<div class="title"><strong>浠撳簱鑳岄潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - var img_url; - var typeTag; - $.each(deviceList, function(index, item) { - img_url = ''; - typeTag = ''; - //璁剧疆璁惧鍥剧墖璺緞 - if (item.type == "02") { - typeTag = 'one'; - if (item.status == "F_OPEN_F") { - img_url = './images/device-status/STATUS_02_F_OPEN_F.gif'; - } else if (item.status == "F_OPEN") { - img_url = './images/device-status/STATUS_02_F_OPEN.gif'; - } else if (item.status == "F_CLOSE") { - img_url = './images/device-status/STATUS_02_W_OPEN.png'; - } else if (item.status == "W_OPEN") { - img_url = './images/device-status/STATUS_02_W_OPEN.png'; - } else { - img_url = './images/device-status/STATUS_02_W_CLOSE.png'; - } - } else if (item.type == "04") { - typeTag = 'two'; - if (item.status == "OPEN") { - img_url = './images/device-status/STATUS_04_OPEN.gif'; - } else { - img_url = './images/device-status/STATUS_0B_CLOSE.png'; - } - } else if (item.type == "0C") { - typeTag = 'three'; - if (item.status == "F_OPEN_F") { - img_url = './images/device-status/STATUS_0C_F_OPEN_F.gif'; - } else if (item.status == "F_OPEN") { - img_url = './images/device-status/STATUS_0C_F_OPEN.gif'; - } else if (item.status == "F_CLOSE") { - img_url = './images/device-status/STATUS_0C_W_OPEN.png'; - } else if (item.status == "W_OPEN") { - img_url = './images/device-status/STATUS_0C_W_OPEN.png'; - } else { - img_url = './images/device-status/STATUS_0C_W_CLOSE.png'; - } - } else if (item.type == "0D") { - typeTag = 'four'; - if (item.status == "OPEN") { - img_url = './images/device-status/STATUS_0D_OPEN.gif'; - } else { - img_url = './images/device-status/STATUS_0D_CLOSE.png'; - } - } - if (item.location == '01') { //浠撳簱姝i潰 - html1 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\',\'' + typeTag + '\')">'; - html1 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html1 += 'src="' + img_url + '">'; - html1 += '</a></li>'; - count1++; - } else if (item.location == '02') { //浠撳簱鑳岄潰 - html2 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\',\'' + typeTag + '\')">'; - html2 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html2 += 'src="' + img_url + '">'; - html2 += '</a></li>'; - count2++; - } - }) - html1 += '</ul>'; - html2 += '</ul>'; - if (count1 > 0) { - $("#deviceList1").html(html1); - } else { - $("#deviceList1").html(""); - } - if (count2 > 0) { - $("#deviceList2").html(html2); - } else { - $("#deviceList2").html(""); - } - } - - //璁惧鎿嶄綔 - function toExecute(targetStatus) { - - if (indexTag != null && indexTag >= 0) { - //濡傛灉鏄酱娴侀鏈猴紝鍏堟牴鎹鏈虹姸鎬佸垽鏂鏈烘搷浣滄槸鍚﹀彲浠ユ墽琛� - if (deviceList[indexTag].type == '02') { - //椋庢満鐘舵�佷负椋庢満寮�椋庣獥寮�锛屽嵆F_OPEN鎴栬�匜_OPEN_F鏃讹紝涓嶈兘鎵ц鍏抽绐楁搷浣� - if ((deviceList[indexTag].status == 'F_OPEN' || deviceList[indexTag].status == 'F_OPEN_F') && targetStatus == 'CLOSE') { - mui.alert("姝ら鏈烘鍦ㄨ繍琛岋紝涓嶈兘鎵ц鍏抽棴椋庣獥鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満寮�椋庣獥寮�锛屽嵆F_OPEN鎴栬�匜_OPEN_F鏃讹紝涓嶈兘鎵ц椋庣獥鍏ㄥ叧鎿嶄綔 - if ((deviceList[indexTag].status == 'F_OPEN' || deviceList[indexTag].status == 'F_OPEN_F') && targetStatus == 'W_CLOSE_ALL') { - mui.alert("姝ら鏈烘鍦ㄨ繍琛岋紝涓嶈兘鎵ц椋庣獥鍏ㄥ叧鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満鍏抽绐楀叧锛屽嵆W_CLOSE鏃讹紝涓嶈兘鎵ц寮�椋庢満鎿嶄綔 - if (deviceList[indexTag].status == 'W_CLOSE' && (targetStatus == 'F_CLOSE' || targetStatus == 'F_OPEN')) { - mui.alert("姝ら鏈虹殑椋庣獥鍏抽棴涓紝涓嶈兘鎵ц椋庢満鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - } - //濡傛灉鏄贩娴侀鏈猴紝鍏堝垽鏂鏈烘搷浣滄槸鍚﹀彲浠ユ墽琛� - if (deviceList[indexTag].type == '0C') { - //椋庢満鐘舵�佷负椋庢満寮�椋庡彛寮�锛屽嵆F_OPEN鏃讹紝涓嶈兘鎵ц鍏抽鍙f搷浣� - if ((deviceList[indexTag].status == 'F_OPEN_F' || deviceList[indexTag].status == 'F_OPEN') && targetStatus == 'CLOSE') { - mui.alert("姝ら鏈烘鍦ㄨ繍琛岋紝涓嶈兘鎵ц鍏抽棴椋庡彛鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満寮�椋庣獥寮�锛屽嵆F_OPEN鏃讹紝涓嶈兘鎵ц椋庣獥鍏ㄥ叧鎿嶄綔 - if ((deviceList[indexTag].status == 'F_OPEN_F' || deviceList[indexTag].status == 'F_OPEN') && targetStatus == 'W_CLOSE_ALL') { - mui.alert("姝ら鏈烘鍦ㄨ繍琛岋紝涓嶈兘鎵ц椋庡彛鍏ㄥ叧鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満鍏抽绐楀叧锛屽嵆W_CLOSE鏃讹紝涓嶈兘鎵ц寮�椋庣獥鎿嶄綔 - if (deviceList[indexTag].status == 'W_CLOSE' && (targetStatus == 'F_CLOSE' || targetStatus == 'F_OPEN' || targetStatus == - 'F_OPEN_F')) { - mui.alert("姝ら鏈虹殑椋庡彛鍏抽棴涓紝涓嶈兘鎵ц椋庢満鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満寮�椋庣獥寮�锛屽嵆F_OPEN鏃讹紝涓嶈兘鎵ц鍙嶈浆鎿嶄綔 - if (deviceList[indexTag].status == 'F_OPEN' && targetStatus == 'F_OPEN_F') { - mui.alert("姝ら鏈烘杞姸鎬侊紝涓嶈兘鎵ц鍙嶈浆鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - //椋庢満鐘舵�佷负椋庢満寮�椋庣獥寮�锛屽嵆F_OPEN_F鏃讹紝涓嶈兘鎵ц姝h浆鎿嶄綔 - if (deviceList[indexTag].status == 'F_OPEN_F' && targetStatus == 'F_OPEN') { - mui.alert("姝ら鏈哄弽杞姸鎬侊紝涓嶈兘鎵ц姝h浆鎿嶄綔锛�","鎻愮ず",["纭畾"],function(){},"div") - return; - } - } - //鍒ゆ柇鏄惁鏄壒閲� - var batchTag = false; - if (targetStatus == 'W_OPEN_ALL') { - targetStatus = 'OPEN'; - batchTag = true; - } - if (targetStatus == 'W_CLOSE_ALL') { - targetStatus = 'CLOSE'; - batchTag = true; - } - if (targetStatus == 'OPEN_ALL') { - targetStatus = 'OPEN'; - batchTag = true; - } - if (targetStatus == 'CLOSE_ALL') { - targetStatus = 'CLOSE'; - batchTag = true; - } - - //鍙傛暟娓呯┖ - data2.data1 = []; - if (batchTag) { //鎵归噺鎿嶄綔 - $.each(deviceList, function(index, item) { - if (deviceList[indexTag].type == item.type) { - data2.data1.push({ - "id": item.id, - "depotId": item.depotId, - "passCode": item.passCode, - "name": item.name, - "serId": item.serId, - "link": item.link, - "type": item.type, - "targetStatus": targetStatus - }) - } - }) - } else { //鍗曡澶囨搷浣� - data2.data1.push({ - "id": deviceList[indexTag].id, - "depotId": deviceList[indexTag].depotId, - "passCode": deviceList[indexTag].passCode, - "name": deviceList[indexTag].name, - "serId": deviceList[indexTag].serId, - "link": deviceList[indexTag].link, - "type": deviceList[indexTag].type, - "targetStatus": targetStatus - }) - } - //鍙戦�佹搷浣滆姹� - toControlDevice(); - - //鍏抽棴寮圭獥 - closeDialog(); - } - } - - //璁惧鎿嶄綔璇锋眰 - function toControlDevice() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.alert("鎿嶄綔鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掑悗閲嶆柊鎵撳紑姝ら〉闈紒","鎻愮ず",["纭畾"],function(){},"div") - } else { - mui.alert(result.msg,"鎻愮ず",["纭畾"],function(){},"div") - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒","鎻愮ず",["纭畾"],function(){},"div") - } - }) - } - - //鎵撳紑寮圭獥 - function openDialog(index, tag) { - indexTag = index; - if (tag == 'one') { - $("#markName1").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openOne').css('display', 'flex'); - } - if (tag == 'two') { - $("#markName2").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openTwo').css('display', 'flex'); - } - if (tag == 'three') { - $("#markName3").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openThree').css('display', 'flex'); - } - if (tag == 'four') { - $("#markName4").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openFour').css('display', 'flex'); - } - } - - //鍏抽棴寮圭獥 - function closeDialog() { - indexTag = null; - $("#openOne").css('display', 'none'); - $("#openTwo").css('display', 'none'); - $("#openThree").css('display', 'none'); - $("#openFour").css('display', 'none'); - } - </script> - </body> -</html> diff --git a/igds-app/device-control-gas.html b/igds-app/device-control-gas.html deleted file mode 100644 index 7bff215..0000000 --- a/igds-app/device-control-gas.html +++ /dev/null @@ -1,424 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>姘旇皟鎺у埗</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-grid-view.mui-grid-9 .mui-media { - background: #c6c8ca; - height: 130px; - width: 33.3333%; - } - - .mui-grid-view.mui-grid-9 { - padding: 5px 5px; - border-top: none; - border-left: none; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #0062cc; - margin-top: unset; - } - - .img_ico { - width: 70px; - height: auto; - display: block; - margin: auto; - margin-top: 10px; - } - - .title { - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #333; - height: 40px; - line-height: 40px; - } - - /*鎿嶄綔寮瑰嚭绐�*/ - .mark_one { - background: rgba(0, 0, 0, .8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - - .mark_one_layer { - background: #fff; - width: 85%; - margin: auto; - border-radius: 5px; - } - - .mark_one_layer .title { - background: #245ca7; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - border-radius: 5px 5px 0 0; - } - - .mark_one_layer .title a { - line-height: 40px; - font-size: 2.5rem; - float: right; - } - - .mark_one_layer .btn { - display: block; - font-size: 1.5rem; - text-align: center; - } - - .mark_one_layer .btn button { - color: #fff; - border-radius: 5px; - line-height: 35px; - font-size: 16px; - margin: 10px 10px; - } - - .mark_one_btn1 { - background: #2f64ab; - width: 40%; - } - - .mark_one_btn2 { - background: #e4606d; - width: 40%; - } - - a { - text-decoration: none; - color: #f7f7f7; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>姘旇皟璁惧</h1> - </header> - <div class="mui-content"> - <div id="deviceList1"> - <!-- <div class="title"><strong>浠撳簱姝i潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/icon-on.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/icon-on.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/icon-off.png"> - </a> - </li> - </ul> --> - </div> - <div id="deviceList2"> - <!-- <div class="title"><strong>浠撳簱鑳岄潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/icon-on.png"> - - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/icon-off.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog(1)"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/icon-off.png"> - </a> - </li> - </ul> --> - </div> - - <!--寮圭獥--> - <div class="mark_one" id="openOne" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName1">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 鎵撳紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽棴 - </button> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('W_OPEN_ALL')"> - 鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('W_CLOSE_ALL')"> - 鍏ㄥ叧 - </button> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var deviceList; //璁惧闆嗗悎 - var indexTag = null; //璁惧鎿嶄綔鏃剁殑鏍囪 - //鑾峰彇浠撳簱涓嬬殑姘旇皟璁惧璇锋眰鍙傛暟 - var data1 = { - "interfaceId": "5402", - "sign": "10402", - "outId": "10402", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "07" //闃�闂� - } - }; - //鎺у埗璁惧鍙傛暟 - var data2 = { - "interfaceId": "5403", - "sign": "10403", - "outId": "10403", - "reqDateTime": new Date(), - "tokenAuth": "", - "data1": [] - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - var user = JSON.parse(localStorage.getItem('user')); - $("#depotName").html(curr.depotName); - //鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getDeviceList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getDeviceList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deviceList = result.data; - if (deviceList != null && deviceList.length > 0) { - renderDeviceList(); - } else { - mui.alert('鏆傛棤璁惧锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert('鏃犵浉鍏宠澶囦俊鎭紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDeviceList() { - //鏍囪浠撳簱姝e弽闈㈢殑璁惧鏁� - var count1 = 0; - var count2 = 0; - - var html1 = ''; - var html2 = ''; - html1 += '<div class="title"><strong>浠撳簱姝i潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - html2 += '<div class="title"><strong>浠撳簱鑳岄潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - var img_url; - $.each(deviceList, function(index, item) { - img_url = ''; - //璁剧疆璁惧鍥剧墖璺緞 - if (item.type == "07") { - if (item.status == "OPEN") { - img_url = './images/device-status/icon-on.png'; - } else { - img_url = './images/device-status/icon-off.png'; - } - } - - //浠撳簱姝i潰 - if (item.location == '01') { - html1 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html1 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html1 += 'src="' + img_url + '">'; - html1 += '</a></li>'; - count1++; - } - //浠撳簱鑳岄潰 - if (item.location == '02') { - html2 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\')">'; - html2 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html2 += 'src="' + img_url + '">'; - html2 += '</a></li>'; - count2++; - } - }) - html1 += '</ul>'; - html2 += '</ul>'; - if (count1 > 0) { - $("#deviceList1").html(html1); - } else { - $("#deviceList1").html(""); - } - if (count2 > 0) { - $("#deviceList2").html(html2); - } else { - $("#deviceList2").html(""); - } - } - - //璁惧鎿嶄綔 - function toExecute(targetStatus) { - if (indexTag != null && indexTag >= 0) { - var batchTag = false; - //鍒ゆ柇鏄惁鏄壒閲� - if (targetStatus == 'W_OPEN_ALL') { - targetStatus = 'OPEN'; - batchTag = true; - } - if (targetStatus == 'W_CLOSE_ALL') { - targetStatus = 'CLOSE'; - batchTag = true; - } - //鍙傛暟娓呯┖ - data2.data1 = []; - if (batchTag) { - //鎵归噺鎿嶄綔 - $.each(deviceList, function(index, item) { - if (deviceList[indexTag].type == item.type) { - data2.data1.push({ - "id": item.id, - "depotId": item.depotId, - "passCode": item.passCode, - "name": item.name, - "serId": item.serId, - "link": item.link, - "type": item.type, - "targetStatus": targetStatus - }) - } - }) - } else { - //鍗曡澶囨搷浣� - data2.data1.push({ - "id": deviceList[indexTag].id, - "depotId": deviceList[indexTag].depotId, - "passCode": deviceList[indexTag].passCode, - "name": deviceList[indexTag].name, - "serId": deviceList[indexTag].serId, - "link": deviceList[indexTag].link, - "type": deviceList[indexTag].type, - "targetStatus": targetStatus - }); - } - //鍙戦�佹搷浣滆姹� - toControlDevice(); - - //鍏抽棴寮圭獥 - closeDialog(); - } - } - - //璁惧鎿嶄綔璇锋眰 - function toControlDevice() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.alert('鎿嶄綔鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掑悗閲嶆柊鎵撳紑姝ら〉闈紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //鎵撳紑寮圭獥 - function openDialog(index) { - indexTag = index; - $("#markName1").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openOne').css('display', 'flex'); - } - - //鍏抽棴寮圭獥 - function closeDialog() { - indexTag = null; - $("#openOne").css('display', 'none'); - } - </script> - </body> -</html> diff --git a/igds-app/device-control-ventilate.html b/igds-app/device-control-ventilate.html deleted file mode 100644 index b0704bc..0000000 --- a/igds-app/device-control-ventilate.html +++ /dev/null @@ -1,465 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>閫氶鎺у埗</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-grid-view.mui-grid-9 .mui-media { - background: #c6c8ca; - height: 120px; - width: 33.3333%; - } - - .mui-grid-view.mui-grid-9 { - padding: 5px 5px; - border-top: none; - border-left: none; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #0062cc; - } - - .img_ico { - width: 70px; - height: auto; - display: block; - margin: auto; - margin-top: 10px; - } - - .title { - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #333; - height: 40px; - line-height: 40px; - } - - /*鎿嶄綔寮瑰嚭绐�*/ - .mark_one { - background: rgba(0, 0, 0, .8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - - .mark_one_layer { - background: #fff; - width: 85%; - margin: auto; - border-radius: 5px; - } - - .mark_one_layer .title { - background: #245ca7; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - border-radius: 5px 5px 0 0; - } - - .mark_one_layer .title a { - line-height: 40px; - font-size: 2.5rem; - float: right; - } - - .mark_one_layer .btn { - display: block; - font-size: 1.5rem; - text-align: center; - } - - .mark_one_layer .btn button { - color: #fff; - border-radius: 5px; - line-height: 35px; - font-size: 16px; - margin: 10px 10px; - } - - .mark_one_btn1 { - background: #2f64ab; - width: 40%; - } - - .mark_one_btn2 { - background: #e4606d; - width: 40%; - } - - a { - text-decoration: none; - color: #f7f7f7; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>閫氶璁惧</h1> - </header> - <div class="mui-content"> - <div id="deviceList1"> - <!-- <div class="title"><strong>浠撳簱姝i潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/STATUS_01_CLOSE.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_01_CLOSE.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','one')"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_01_CLOSE.png"> - </a> - </li> - </ul> --> - </div> - <div id="deviceList2"> - <!-- <div class="title"><strong>浠撳簱鑳岄潰</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##1</div> - <img class="img_ico" src="./images/device-status/STATUS_0B_OPEN.png"> - - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##3</div> - <img class="img_ico" src="./images/device-status/STATUS_0B_OPEN.png"> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="openDialog('','two')"> - <div class="mui-media-body">##2</div> - <img class="img_ico" src="./images/device-status/STATUS_0B_OPEN.png"> - </a> - </li> - </ul> --> - </div> - - <!--绐楁埛寮圭獥--> - <div class="mark_one" id="openOne" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName1">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 寮�绐楀彛 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏崇獥鍙� - </button> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('W_OPEN_ALL')"> - 绐楁埛鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('W_CLOSE_ALL')"> - 绐楁埛鍏ㄥ叧 - </button> - </div> - </div> - </div> - <!--閫氶鍙e脊绐�--> - <div class="mark_one" id="openTwo" style="display: none;"> - <div class="mark_one_layer"> - <div class="title"> - <span style="font-size: 16px;" id="markName2">璁惧鎿嶄綔</span> - <a onclick="closeDialog()" class="close">×</a> - </div> - - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('OPEN')"> - 寮�椋庡彛 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('CLOSE')"> - 鍏抽鍙� - </button> - </div> - <div class="btn"> - <button class="mark_one_btn1 mb-3" onclick="toExecute('W_OPEN_ALL')"> - 椋庡彛鍏ㄥ紑 - </button> - <button class="mark_one_btn2 mb-3" onclick="toExecute('W_CLOSE_ALL')"> - 椋庡彛鍏ㄥ叧 - </button> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var deviceList; //璁惧闆嗗悎 - var indexTag = null; //璁惧鎿嶄綔鏃剁殑鏍囪 - //鑾峰彇浠撳簱涓嬬殑閫氶璁惧璇锋眰鍙傛暟 - var data1 = { - "interfaceId": "5402", - "sign": "10402", - "outId": "10402", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "01", //绐楁埛 - "type1": "0B" //閫氶鍙� - } - }; - //鎺у埗璁惧鍙傛暟 - var data2 = { - "interfaceId": "5403", - "sign": "10403", - "outId": "10403", - "reqDateTime": new Date(), - "tokenAuth": "", - "data1": [] - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - var user = JSON.parse(localStorage.getItem('user')); - $("#depotName").html(curr.depotName); - //鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getDeviceList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getDeviceList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deviceList = result.data; - if (deviceList != null && deviceList.length > 0) { - renderDeviceList(); - } else { - mui.alert('鏆傛棤璁惧锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert('鏃犵浉鍏宠澶囦俊鎭紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDeviceList() { - //鏍囪浠撳簱姝e弽闈㈢殑璁惧鏁� - var count1 = 0; - var count2 = 0; - - var html1 = ''; - var html2 = ''; - html1 += '<div class="title"><strong>浠撳簱姝i潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - html2 += '<div class="title"><strong>浠撳簱鑳岄潰</strong></div><ul class="mui-table-view mui-grid-view mui-grid-9">'; - var img_url; - var typeTag; - $.each(deviceList, function(index, item) { - img_url = ''; - typeTag = ''; - //璁剧疆璁惧鍥剧墖璺緞 - if (item.type == "01") { - typeTag = 'one'; - if (item.status == "OPEN") { - img_url = './images/device-status/STATUS_01_OPEN.png'; - } else { - img_url = './images/device-status/STATUS_01_CLOSE.png'; - } - } else if (item.type == "0B") { - typeTag = 'two'; - if (item.status == "OPEN") { - img_url = './images/device-status/STATUS_0B_OPEN.png'; - } else { - img_url = './images/device-status/STATUS_0B_CLOSE.png'; - } - } - - //浠撳簱姝i潰 - if (item.location == '01') { - html1 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\',\'' + typeTag + '\')">'; - html1 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html1 += 'src="' + img_url + '">'; - html1 += '</a></li>'; - count1++; - } - //浠撳簱鑳岄潰 - if (item.location == '02') { - html2 += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="javascript:void(0)" ' + - 'onclick="openDialog(\'' + index + '\',\'' + typeTag + '\')">'; - html2 += '<div class="mui-media-body">' + item.name + '</div><img class="img_ico" '; - html2 += 'src="' + img_url + '">'; - html2 += '</a></li>'; - count2++; - } - }) - html1 += '</ul>'; - html2 += '</ul>'; - if (count1 > 0) { - $("#deviceList1").html(html1); - } else { - $("#deviceList1").html(""); - } - if (count2 > 0) { - $("#deviceList2").html(html2); - } else { - $("#deviceList2").html(""); - } - } - - //璁惧鎿嶄綔 - function toExecute(targetStatus) { - if (indexTag != null && indexTag >= 0) { - var batchTag = false; - //鍒ゆ柇鏄惁鏄壒閲� - if (targetStatus == 'W_OPEN_ALL') { - targetStatus = 'OPEN'; - batchTag = true; - } - if (targetStatus == 'W_CLOSE_ALL') { - targetStatus = 'CLOSE'; - batchTag = true; - } - //鍙傛暟娓呯┖ - data2.data1 = []; - if (batchTag) { //鎵归噺鎿嶄綔 - $.each(deviceList, function(index, item) { - if (deviceList[indexTag].type == item.type) { - data2.data1.push({ - "id": item.id, - "depotId": item.depotId, - "passCode": item.passCode, - "name": item.name, - "serId": item.serId, - "link": item.link, - "type": item.type, - "targetStatus": targetStatus - }) - } - }) - } else { //鍗曡澶囨搷浣� - data2.data1.push({ - "id": deviceList[indexTag].id, - "depotId": deviceList[indexTag].depotId, - "passCode": deviceList[indexTag].passCode, - "name": deviceList[indexTag].name, - "serId": deviceList[indexTag].serId, - "link": deviceList[indexTag].link, - "type": deviceList[indexTag].type, - "targetStatus": targetStatus - }) - } - //鍙戦�佹搷浣滆姹� - toControlDevice(); - - //鍏抽棴寮圭獥 - closeDialog(); - } - } - - //璁惧鎿嶄綔璇锋眰 - function toControlDevice() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.alert('鎿嶄綔鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掑悗閲嶆柊鎵撳紑姝ら〉闈紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //鎵撳紑寮圭獥 - function openDialog(index, tag) { - indexTag = index; - if (tag == "one") { - $("#markName1").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openOne').css('display', 'flex'); - } - if (tag == "two") { - $("#markName2").html("璁惧鎿嶄綔 - " + deviceList[index].name); - $('#openTwo').css('display', 'flex'); - } - } - - //鍏抽棴寮圭獥 - function closeDialog() { - indexTag = null; - $("#openOne").css('display', 'none'); - $("#openTwo").css('display', 'none'); - } - </script> - </body> -</html> diff --git a/igds-app/device-listDepot.html b/igds-app/device-listDepot.html deleted file mode 100644 index d9c59bc..0000000 --- a/igds-app/device-listDepot.html +++ /dev/null @@ -1,246 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>璁惧鎿嶄綔-浠撳簱鍒楄〃</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 { - margin: auto; - background-color: #4e555b; - border-left: none; - border-top: none; - } - - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - padding: 10px 10px; - } - - .mui-grid-view.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn) { - padding: 8px 0; - } - - .mui-col-xs-4 { - width: 33.333333%; - } - - .mui-icon-list, - .mui-icon-chat, - .mui-icon-contact, - .mui-icon-gear, - .mui-icon-close { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9:after, - .mui-grid-view.mui-grid-9:before { - display: none; - - } - - .depot_img { - width: 60px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="typeName"></span>浠撳簱鍒楄〃</h1> - </header> - <div class="mui-content"> - <div class="mui-content"> - <div> - <ul id="depotList" class="mui-table-view mui-grid-view mui-grid-9"> - <!-- <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="toDetail()"> - <div class="mui-media-body">鍏ュ簱涓�</div> - <img class="depot_img" src="./images/ico_depot1.png"> - <div class="mui-media-body">1鍙蜂粨</div> - </a> - </li>--> - </ul> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var depotList; //瑙嗛璁惧闆嗗悎 - var tag; - var data = { - "interfaceId": "5401", - "sign": "10301", - "outId": "10301", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "" - } - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var curr = plus.webview.currentWebview(); - $("#typeName").html(curr.typeName+" - "); - tag = curr.tag + '.html'; - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getdepotList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getdepotList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - depotList = result.data; - if (depotList != null && depotList.length > 0) { - renderDepotList(); - } else { - mui.alert("鏆傛棤鏁版嵁锛�", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDepotList() { - var html = ''; - - $.each(depotList, function(index, item) { - html += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">'; - html += '<a href="javascript:void(0)" onclick="toDetail(\'' + index + '\')">'; - html += '<div class="mui-media-body">' + (item.depotStatusName ? item.depotStatusName:'') + '</div>'; - html += '<img class="depot_img" '; - if (item.depotType == "01") { - if (item.depotStatus == "01") { - html += 'src="./images/ico_depot1.png">'; - } else if (item.depotStatus == "02") { - html += 'src="./images/ico_depot2.png">'; - } else if (item.depotStatus == "03") { - html += 'src="./images/ico_depot3.png">'; - } else if (item.depotStatus == "04") { - html += 'src="./images/ico_depot4.png">'; - } else if (item.depotStatus == "08") { - html += 'src="./images/ico_depot8.png">'; - } else { - html += 'src="./images/ico_depot5.png">'; - } - } else if (item.depotType == "02" || item.depotType == "04") { - if (item.depotStatus == "01") { - html += 'src="./images/ico_depot111.png">'; - } else if (item.depotStatus == "02") { - html += 'src="./images/ico_depot222.png">'; - } else if (item.depotStatus == "03") { - html += 'src="./images/ico_depot333.png">'; - } else if (item.depotStatus == "04") { - html += 'src="./images/ico_depot444.png">'; - } else if (item.depotStatus == "08") { - html += 'src="./images/ico_depot888.png">'; - } else { - html += 'src="./images/ico_depot555.png">'; - } - } else if (item.depotType == "03") { - if (item.depotStatus == "01") { - html += 'src="./images/ico_depot11.png">'; - } else if (item.depotStatus == "02") { - html += 'src="./images/ico_depot22.png">'; - } else if (item.depotStatus == "03") { - html += 'src="./images/ico_depot33.png">'; - } else if (item.depotStatus == "04") { - html += 'src="./images/ico_depot44.png">'; - } else if (item.depotStatus == "08") { - html += 'src="./images/ico_depot88.png">'; - } else { - html += 'src="./images/ico_depot55.png">'; - } - } - html += '<div class="mui-media-body">' + item.depotName + '</div>'; - html += '</a></li>'; - }) - $("#depotList").html(html); - } - - //璺宠浆璁惧鎿嶄綔椤甸潰 - function toDetail(index){ - - //鍒ゆ柇鏄惁涓洪棬绂侊紝鑻ヤ负闂ㄧ锛屽垯闇�瑕佽緭鍏ユ潈闄愮爜杩涜楠岃瘉锛岄獙璇佹垚鍔熸柟鍙烦杞搴斾粨搴� - if(tag == 'device-control-door.html'){ - - mui.prompt('', '璇疯緭鍏ユ潈闄愮爜', '闂ㄧ鏉冮檺鐮�', ['纭畾', '鍙栨秷'], function(e) { - if (e.index == 0) { - var token = e.value; - mui.openWindow({ - url: tag, - id: tag, - extras: { - doorToken: token, - depotId: depotList[index].depotId, - depotName: depotList[index].depotName - } - }) - } - }, 'div') - - }else{ - mui.openWindow({ - url: tag, - id: tag, - extras: { - depotId: depotList[index].depotId, - depotName: depotList[index].depotName - } - }) - } - } - </script> - </body> -</html> diff --git a/igds-app/device-wind-manage.html b/igds-app/device-wind-manage.html deleted file mode 100644 index 9a8be94..0000000 --- a/igds-app/device-wind-manage.html +++ /dev/null @@ -1,85 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>閫氶鎺у埗</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: auto; - } - .mui-content>.mui-table-view:first-child { - margin-top: 0px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - border-right: none; - border-bottom: none; - width: 33.3333%; - } - .mui-table-view-cell a{ - background: #FFFFFF; - border-radius: 6px; - } - .img_ico{ - width: 55px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">閫氶鎺у埗</h1> - </header> - <div class="mui-content"> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getDeviceView('device-control-ventilate','閫氶鎺у埗')"> - <img class="img_ico" src="./images/ico_tfkz.png"> - <div class="mui-media-body">椋庣獥鎺у埗</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getDeviceView('device-control-fan','椋庢満鎺у埗')"> - <img class="img_ico" src="./images/ico_fjkz.png"> - <div class="mui-media-body">椋庢満鎺у埗</div> - </a> - </li> - </ul> - - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init() - //璺宠浆璁惧鎿嶄綔椤甸潰 - function getDeviceView(tag,typeName){ - mui.openWindow({ - url: "device-listDepot.html", - id: "device-listDepot", - extras: { - tag: tag, - typeName: typeName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/edit.html b/igds-app/edit.html deleted file mode 100644 index 0824512..0000000 --- a/igds-app/edit.html +++ /dev/null @@ -1,150 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>淇℃伅淇敼</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - width: 96%; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">淇℃伅淇敼</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="margin: 0;"> - <form class="mui-input-group"> - <div class="mui-input-row"> - <label>鏂板瘑鐮侊細</label> - <input id="newPassword1" type="password" class="mui-input-password" placeholder="璇疯緭鍏ユ柊瀵嗙爜"> - </div> - <div class="mui-input-row"> - <label>纭瀵嗙爜锛�</label> - <input id="newPassword2" type="password" class="mui-input-password" placeholder="璇峰啀娆¤緭鍏ユ柊瀵嗙爜"> - </div> - <div class="mui-input-row"> - <label>淇敼鎵嬫満锛�</label> - <input id="newMobile" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ユ墜鏈哄彿"> - </div> - <div class="mui-input-row"> - <label>鐢ㄦ埛鏄电О锛�</label> - <input id="newCname" type="text" placeholder=""> - </div> - </form> - <div class="mui-button-row"> - <button style="width: 60%;margin-top: 10px;height: 40px;font-size: 18px;" type="button" class="mui-btn mui-btn-primary" - onclick="userUpdate()">鎻愪氦</button> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var data = { - "interfaceId": "5004", - "sign": "10004", - "outId": "10004", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "newPassword1": "", - "newPassword2": "", - "newMobile": "", - "newCname": "" - } - }; - mui.init(); - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - data.data.newCname = user.cname; - url = user.url + "/api-phone/gateway"; - //娓叉煋鐢ㄦ埛鍚� - $("#newCname").val(user.cname); - }); - - //鏇存柊鐢ㄦ埛淇℃伅 - function userUpdate(){ - //楠岃瘉瀵嗙爜 - var newPassword1 = mui("#newPassword1")[0].value; - if (newPassword1 == '') { - mui.alert("璇疯緭鍏ュ瘑鐮侊紒", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - var newPassword2 = mui("#newPassword2")[0].value; - if (newPassword2 == '') { - mui.alert("璇疯緭鍏ョ‘璁ゅ瘑鐮侊紒", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - if(newPassword1 != newPassword2){ - mui.alert("瀵嗙爜涓嶄竴鑷达紝璇烽噸鏂拌緭鍏ワ紒", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - - //楠岃瘉鎵嬫満鍙锋牸寮� - var newMobile = mui("#newMobile")[0].value; - if (newMobile) { - var flag = /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(newMobile); - if(!flag){ - mui.alert('鎵嬫満鍙锋牸寮忎笉姝g‘锛�', '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - } - var newCname = mui("#newCname")[0].value; - - //璧嬪�� - data.data.newPassword1 = newPassword1; - data.data.newPassword2 = newPassword2; - data.data.newMobile = newMobile; - data.data.newCname = newCname; - upDate(); - } - - //鍙戦�佹洿鏂拌姹� - function upDate() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - mui.toast("鏇存柊鎴愬姛锛岃閲嶆柊鐧婚檰锛�"); - //鑾峰彇淇℃伅锛屽苟灏嗗瘑鐮佽涓虹┖锛岃繑鍥炵櫥褰曢〉闈� - var user = JSON.parse(localStorage.getItem('user')); - user.password = ""; - localStorage.setItem('user', JSON.stringify(user)); - plus.runtime.restart(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/energy-manage.html b/igds-app/energy-manage.html deleted file mode 100644 index 9ca3751..0000000 --- a/igds-app/energy-manage.html +++ /dev/null @@ -1,82 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鑳借�楃鐞�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: auto; - } - .mui-content>.mui-table-view:first-child { - margin-top: 0px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - border-right: none; - border-bottom: none; - width: 33.3333%; - } - .mui-table-view-cell a{ - background: #FFFFFF; - border-radius: 6px; - } - .img_ico{ - width: 55px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鑳借�楃鐞�</h1> - </header> - <div class="mui-content"> - - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('energy_detail')"> - <img class="img_ico" src="./images/ico_energy_ss.png"> - <div class="mui-media-body">鑳借�楄鎯�</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 10px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('energy_remote')"> - <img class="img_ico" src="./images/ico_energy_yc.png"> - <div class="mui-media-body">杩滅▼鎶勮〃</div> - </a> - </li> - </ul> - - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init() - function toView(tag) { - var url = tag + ".html"; - mui.openWindow({ - url: url, - id: tag, - }) - } - </script> - </body> -</html> diff --git a/igds-app/energy_detail.html b/igds-app/energy_detail.html deleted file mode 100644 index fd9851b..0000000 --- a/igds-app/energy_detail.html +++ /dev/null @@ -1,315 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鑳借�楄鎯�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-content { - margin: 0 5px; - } - - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-content>.mui-table-view:first-child { - margin-top: -1px; - } - .mui-content-padded { - margin:unset; - padding: 10px 6px; - margin-bottom: 1px; - } - input[type=search] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - } - input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea { - line-height: 15px; - margin-bottom: 1px; - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - border-radius: 50px; - background-color: #efeff4; - } - - .inout_real{ - background: #fff; - margin-top: 8px; - } - .inout_real .inout_title{ - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - } - .enerty{ - width: 100%; - border-top: 1px #efefef solid; - padding: 12px 15px; - } - .enerty h3{ - font-size: 16px; - font-weight: 400; - } - .t1{ - font-weight: 600; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鑳借�楄鎯�</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <div style="margin-bottom: 6px;"> - <span style="width: 35%;margin-left: 5px;">寮�濮嬫椂闂达細</span> - <input id="dateStart" type="search" style="width: 65%;margin-left: 1px;" onclick="searchStart()" placeholder="閫夋嫨鏃堕棿"> - </div> - <div style="margin-bottom: 6px;"> - <span style="width: 35%;margin-left: 5px;">鎴鏃堕棿锛�</span> - <input id="dateEnd" type="search" style="width: 65%;margin-left: 1px;" onclick="searchEnd()" placeholder="閫夋嫨鏃堕棿"> - </div> - <div> - <span style="width: 35%;margin-left: 5px;">浠撳簱鍒楄〃锛�</span> - <select id="depotId" value="" style="width: 45%;margin-left: 1px;"> - </select> - <button style="width: 20%;background: #668dc1;color: #FFFFFF;" onclick="getEnertyData()">鏌ヨ</button> - </div> - </div> - <div class="inout_real"> - <div class="inout_title"><strong>鑳借�楃粺璁�</strong></div> - <div style="padding: 0 15px;"> - <div class="enerty"> - <h3> - <span> 鎬荤數鑳斤細</span> - <span id="esSum" class="t1">0 KW-h</span> - </h3> - </div> - <div class="enerty"> - <h3> - <span>鏈夊姛鐢佃兘锛�</span> - <span id="epSum" class="t1">0 KW-h</span> - </h3> - </div> - <div class="enerty"> - <h3> - <span>鏃犲姛鐢佃兘锛�</span> - <span id="eqSum" class="t1">0 KW-h</span> - </h3> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var url; - var dateStart; //寮�濮嬫椂闂� - var dateEnd; //鎴鏃堕棿 - var depotId; - var depotList; - var data = { - "interfaceId": "5502", - "sign": "10502", - "outId": "10502", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "start": "", - "end": "" - } - }; - //鏌ヨ浠撳簱鍒楄〃 - var data1 = { - "interfaceId": "5501", - "sign": "10501", - "outId": "10501", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - - mui.init(); - mui.plusReady(function() { - //鑾峰彇鍙傛暟 - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - data.tokenAuth = user.tokenAuth; - data1.tokenAuth = user.tokenAuth; - //榛樿鑾峰彇鏃堕棿(褰撳墠鏃ユ湡鍙婁竴鏈堝墠鐨勬棩鏈�) - dateStart = getDate('start'); - dateEnd = getDate('end'); - $("#dateStart").val(dateStart); - $("#dateEnd").val(dateEnd); - data.data.start = dateStart; - data.data.end = dateEnd; - //鏌ヨ浠撳簱鍒楄〃 - getDepotList(); - mui.toast("璇烽�夋嫨鏉′欢杩涜鏌ヨ锛�"); - }) - - //鐩戝惉浠撳簱杈撳叆妗� - mui('.mui-content-padded').on('change', 'select[id="depotId"]', function() { - //灏嗚緭鍏ユ鐨勫�艰祴鍊肩粰鍙傛暟 - var index = mui("#depotId")[0].value; - depotId = depotList[index].depotId; - data.data.depotId = depotId; - }); - - //璇锋眰鑳借�椾俊鎭� - function getEnertyData() { - if (!(data.data.depotId)) { - mui.alert('璇峰厛閫夋嫨浠撳簱锛�', '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - //璇锋眰 - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - renderData(result.data); - } else { - mui.toast('鏉′欢鑾峰彇鏁版嵁涓虹┖锛�'); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋椤甸潰 - function renderData(data) { - $("#epSum").html(data.epSum + " KW-h"); - $("#eqSum").html(data.eqSum + " KW-h"); - $("#esSum").html(data.esSum + " KW-h"); - } - - //璇锋眰鑾峰彇浠撳簱鍒楄〃 - function getDepotList() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - depotList = result.data; - if (depotList != null && depotList.length > 0) { - renderDepotList(); - } else { - mui.toast("娌℃湁浠撳簱淇℃伅锛�"); - } - } else { - mui.toast("娌℃湁浠撳簱淇℃伅锛�"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋浠撳簱鍒楄〃 - function renderDepotList() { - var html = ''; - html += '<option>璇烽�夋嫨浠撳簱</option>' - $.each(depotList, function(index, item) { - html += '<option value="' + index; - html += '">' + item.depotName + '</option>'; - }) - $("#depotId").html(html); - } - - //鑾峰彇鏃ユ湡 - function getDate(t) { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - if (t == 'start') { - month = date.getMonth() - } - if (t == 'end') { - month = date.getMonth() + 1; - } - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - return year + "-" + month + "-" + day - } - - //鐩戝惉寮�濮嬫椂闂撮�夋嫨 - function searchStart() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: dateStart //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateStart = y + "-" + m + "-" + d; - $("#dateStart").val(dateStart); - data.data.dateStart = y + "-" + m + "-" + d; - }) - } - //鐩戝惉鎴鏃堕棿閫夋嫨 - function searchEnd() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00 , 01), //璧峰鏃ユ湡 - value: dateEnd //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateEnd = y + "-" + m + "-" + d; - $("#dateEnd").val(dateEnd); - data.data.dateEnd = y + "-" + m + "-" + d; - }) - } - </script> - </body> -</html> diff --git a/igds-app/energy_remote.html b/igds-app/energy_remote.html deleted file mode 100644 index 666d508..0000000 --- a/igds-app/energy_remote.html +++ /dev/null @@ -1,234 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>杩滅▼鎶勮〃</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - width: 96%; - margin: auto; - } - - .mui-content-padded { - margin:unset; - padding: 10px 6px; - margin-bottom: 5px; - text-align: center; - } - input[type=search] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - } - - .inout_title1{ - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - - .inout_table { - margin-bottom: 6px; - } - - .inout_table table { - width: 100%; - background-color: #fff !important - } - - .inout_table tr { - font-size: 13px; - text-align: center; - line-height: 30px; - } - - .inout_table th { - min-width: 42px; - text-align: center; - } - .inout_table td { - min-width: 42px; - text-align: center; - padding: 0 2px; - } - .right{ - border-right: 2px #efefef solid !important; - } - .back{ - background: #bfdbf9; - } - .first{ - width: 96%; - margin: auto; - - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">杩滅▼鎶勮〃</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <span style="width: 35%;margin-left: 5px;">閫夋嫨鏃堕棿锛�</span> - <input id="dateTime" type="search" style="width: 65%;margin-left: 5px;" onclick="search()" placeholder="閫夋嫨鏃堕棿"> - </div> - <!--瀹炴椂淇℃伅--> - <div class="inout_title1"><strong>鎶勮〃淇℃伅</strong></div> - <div class="inout_table"> - <table> - <thead> - <tr> - <th class="right">浠撳簱</th> - <th class="right">鏈夊姛鐢佃兘</th> - <th class="right">鏃犲姛鐢佃兘</th> - <th class="right">鎬荤數鑳�</th> - <th>鏇存柊鏃堕棿</th> - </tr> - </thead> - <tbody id="meterList"> - <!-- <tr class="back"> - <td class="right">45鍙蜂粨</td> - <td class="right">1000</td> - <td class="right">1000</td> - <td class="right">10000</td> - <td>10:10:10</td> - </tr> --> - </tbody> - </table> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var url; - var meterList; - var dateTime; - var data = { - "interfaceId": "5503", - "sign": "10303", - "outId": "10303", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "start": "" - } - }; - mui.init(); - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - data.tokenAuth = user.tokenAuth; - dateTime = getDate(); - data.data.start = dateTime; - $("#dateTime").val(dateTime); - getMeterList(); - }) - - //榛樿鑾峰彇褰撳ぉ鏃ユ湡(yyyy-MM-dd) - function getDate() { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - return year + "-" + month + "-" + day - } - - //鐩戝惉鏃堕棿閫夋嫨 - function search() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: dateTime //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateTime = y + "-" + m + "-" + d; - $("#dateTime").val(dateTime); - data.data.start = dateTime; - getMeterList(); - }) - } - - function getMeterList() { - $("#meterList").html(""); - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - meterList = result.data; - renderMeter(); - } else { - var html = '<tr><td class="back" colspan="5">' + result.msg + '</td></tr>'; - $("#meterList").html(html); - mui.toast(result.msg); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒","鎻愮ず",["纭畾"],function(){},"div") - } - }) - } - - //娓叉煋椤甸潰 - function renderMeter() { - var html = ''; - $.each(meterList, function(index, item) { - if (index % 2 == 0) { - html += '<tr class="back">'; - } else { - html += '<tr>'; - } - html += '<td class="right">' + item.depotName + '</td>'; - html += '<td class="right">' + item.ep + '</td>'; - html += '<td class="right">' + item.eq + '</td>'; - html += '<td class="right">' + item.es + '</td>'; - html += '<td>' + item.updateTime + '</td></tr>'; - }) - $("#meterList").html(html); - } - </script> - </body> -</html> diff --git a/igds-app/gas-detail.html b/igds-app/gas-detail.html deleted file mode 100644 index 5b7898a..0000000 --- a/igds-app/gas-detail.html +++ /dev/null @@ -1,276 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>姘斾綋灞曠ず</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .gas_title { - background: #fff; - border-bottom: 1px #efefef solid; - padding: 20px; - box-sizing: border-box; - width: 96%; - margin: auto; - } - - .gas_title strong { - display: block; - text-align: center; - color: #245ca7; - font-size: 16px; - } - - .gas_title span { - display: block; - text-align: center; - padding: 5px 0; - font-size: 14px; - } - - .gas_table { - width: 96%; - margin: auto; - margin-top: 6px; - } - - .gas_table table { - width: 100%; - background-color: #fff !important - } - - .gas_table th { - border-top: 1px #efefef solid !important; - font-size: 15px; - text-align: center; - } - - .gas_table tr { - font-size: 14px; - text-align: center; - line-height: 35px; - } - - .gas_table td { - border-top: 1px #efefef solid !important; - } - - .gas_table .yello { - color: #ffa800; - } - - .gas_table .red { - color: #f00; - } - - .gas_table .blue { - color: #0020c1; - } - - .gas_table .green { - color: #1c7430; - } - - - .gas_btn { - display: block; - text-align: center; - } - - .gas_btn button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 3px; - height: 44px; - line-height: 44px; - padding: 0 20px; - margin: 10px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>姘斾綋淇℃伅</h1> - </header> - <div class="mui-content"> - <div class="gas_title"> - <strong>姘斾綋妫�娴嬭褰�</strong> - <span id="checkUser">妫�娴嬩汉锛�</span> - <span id="receiveDate">妫�娴嬫椂闂达細</span> - </div> - <div class="gas_table"> - <table> - <tr> - <th width="40%">姘斾綋绫诲瀷</th> - <th width="20%" class="red">鏈�楂�</th> - <th width="20%" class="blue">骞冲潎</th> - <th width="20%" class="green">鏈�浣�</th> - </tr> - <tr> - <td>CO2娴撳害(PPM)</td> - <td class="red" id="perCo2Max"></td> - <td class="blue" id="perCo2"></td> - <td class="green" id="perCo2Min"></td> - </tr> - <tr> - <td>PH3娴撳害(PPM)</td> - <td class="red" id="perPh3Max"></td> - <td class="blue" id="perPh3"></td> - <td class="green" id="perPh3Min"></td> - </tr> - <tr> - <td>O2娴撳害(%)</td> - <td class="red" id="perO2Max"></td> - <td class="blue" id="perO2"></td> - <td class="green" id="perO2Min"></td> - </tr> - <tr> - <td>N2娴撳害(%)</td> - <td class="red" id="perN2Max"></td> - <td class="blue" id="perN2"></td> - <td class="green" id="perN2Min"></td> - </tr> - </table> - </div> - - <div class="gas_btn"> - <button onclick="gatherGas()">姘斾綋閲囬泦</button> - </div> - - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var gasData; //闆嗗悎 - //姘斾綋灞曠ず鎺ュ彛鏁版嵁 - var data1 = { - "interfaceId": "5306", - "sign": "10306", - "outId": "10306", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "" - } - }; - //姘斾綋閲囬泦鐨勫弬鏁� - var data2 = { - "interfaceId": "5307", - "sign": "10307", - "outId": "10307", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "" - } - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - $("#depotName").html(curr.depotName); - //鑾峰彇鎺ュ彛璺緞鍙妕okenAuth - var user = JSON.parse(localStorage.getItem('user')) - //璇锋眰鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data1.data.type = curr.depotType; - data2.tokenAuth = user.tokenAuth; - data2.data.depotId = curr.depotId; - url = user.url + "/api-phone/gateway"; - //鏌ヨ浠撳簱姘斾綋淇℃伅 - getGasData(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getGasData() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - gasData = result.data; - if (gasData != null) { - renderGasList(); - } else { - mui.alert("鏆傛棤妫�娴嬭褰曪紒", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert("鏃犳皵浣撴娴嬭褰曪紒", '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderGasList() { - $("#checkUser").html("妫�娴嬩汉锛�" + gasData.checkUser); - $("#receiveDate").html("妫�娴嬫椂闂达細" + gasData.receiveDate); - $("#perCo2Max").html(gasData.perCo2Max); - $("#perCo2").html(gasData.perCo2); - $("#perCo2Min").html(gasData.perCo2Min); - $("#perPh3Max").html(gasData.perPh3Max); - $("#perPh3").html(gasData.perPh3); - $("#perPh3Min").html(gasData.perPh3Min); - $("#perO2Max").html(gasData.perO2Max); - $("#perO2").html(gasData.perO2); - $("#perO2Min").html(gasData.perO2Min); - $("#perN2Max").html(gasData.perN2Max); - $("#perN2").html(gasData.perN2); - $("#perN2Min").html(gasData.perN2Min); - } - - //姘斾綋閲囬泦 - function gatherGas() { - //鍙戦�佽姹傞噰闆嗘皵浣� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(data) { - if (data.code == "0000") { - mui.alert('閲囬泦鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掗噸鏂版墦寮�姝ら〉闈㈡煡鐪嬮噰闆嗘暟鎹紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(data.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/gas-display.html b/igds-app/gas-display.html deleted file mode 100644 index 93c9afc..0000000 --- a/igds-app/gas-display.html +++ /dev/null @@ -1,219 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>姘斾綋妫�娴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - /*姘斾綋妫�娴�-浠撳簱鍒楄〃*/ - .gas_depot { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .gas_depot_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .gas_depot_body { - padding-left: 15px; - } - - .gas_depot_body table { - width: 100%; - } - - .gas_depot_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .gas_depot_img { - width: 8px; - margin-right: 3px; - } - - .gas_depot_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .gas_depot_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">姘斾綋妫�娴�-浠撳簱鍒楄〃</h1> - </header> - <div class="mui-content"> - <div id="gasList"> - <div class="gas_depot"> - <div class="gas_depot_title"></div> - <div class="gas_depot_body"> - <table> - <tr class="gas_depot_tr"> - <td class="gas_depot_one">浠撳簱鍚嶇О锛�</td> - <td class="gas_depot_two">##鍙蜂粨</td> - <td> - <a href="javascript:void(0)" onclick="gasDetail()"> - <img class="gas_depot_img" src="./images/ico_arr.png"> - </a> - </td> - </tr> - <tr> - <td class="gas_depot_one">CO2娴撳害锛�</td> - <td class="gas_depot_two">## PPM</td> - <td></td> - </tr> - <tr> - <td class="gas_depot_one">PH3娴撳害锛�</td> - <td class="gas_depot_two">## PPM</td> - <td></td> - </tr> - <tr> - <td class="gas_depot_one">O2娴撳害锛�</td> - <td class="gas_depot_two">## %</td> - <td></td> - </tr> - <tr> - <td class="gas_depot_one">N2娴撳害锛�</td> - <td class="gas_depot_two">## %</td> - <td></td> - </tr> - <tr style="border-bottom: 0 #efefef solid;"> - <td class="gas_depot_one">妫�娴嬫椂闂达細</td> - <td class="gas_depot_two">2020-01-01 01:01:01</td> - <td></td> - </tr> - </table> - </div> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var gasList; //姘斾綋浠撳簱鍒楄〃闆嗗悎 - var data = { - "interfaceId": "5301", - "sign": "10301", - "outId": "10301", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "gas" - } - }; - mui.init() - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getGasList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getGasList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - gasList = result.data; - if (gasList != null && gasList.length > 0) { - renderGasList(); - } else { - mui.alert("鏆傛棤鏁版嵁锛�", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderGasList() { - var html = ''; - $.each(gasList, function(index, item) { - html += '<div class="gas_depot"><div class="gas_depot_title"></div><div class="gas_depot_body"><table>'; - - html += '<tr class="gas_depot_tr"><td class="gas_depot_one">浠撳簱鍚嶇О锛�</td><td class="gas_depot_two">' + - item.depotName + '</td><td><a href="javascript:void(0)" onclick="gasDetail(\'' + index + '\')">' + - '<img class="gas_depot_img" src="./images/ico_arr.png"></a></td></tr>'; - - html += '<tr><td class="gas_depot_one">CO2娴撳害锛�</td><td class="gas_depot_two">' + - item.perCo2 + ' PPM</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">PH3娴撳害锛�</td><td class="gas_depot_two">' + - item.perPh3 + ' PPM</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">O2娴撳害锛�</td><td class="gas_depot_two">' + - item.perO2 + ' PPM</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">N2娴撳害锛�</td><td class="gas_depot_two">' + - item.perN2 + ' PPM</td><td></td></tr>'; - - html += '<tr style="border-bottom: 0 #efefef solid;"><td class="gas_depot_one">妫�娴嬫椂闂达細</td>' + - '<td class="gas_depot_two">' + (item.receiveDate == null ? '鏃犳娴嬭褰�' : item.receiveDate) + '</td><td></td></tr>'; - html += '</table></div></div>'; - }) - $("#gasList").html(html); - } - - function gasDetail(index) { - mui.openWindow({ - url: "gas-detail.html", - id: "gas-detail", - extras: { - depotType: gasList[index].depotType, - depotId: gasList[index].depotId, - depotName: gasList[index].depotName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/grain-detail-bungalow-his.html b/igds-app/grain-detail-bungalow-his.html deleted file mode 100644 index d10e0f3..0000000 --- a/igds-app/grain-detail-bungalow-his.html +++ /dev/null @@ -1,386 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <title>鍘嗗彶璇︾粏</title> - <meta name="viewport" - content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/> - <link href="./css/mui.min.css" rel="stylesheet"/> - - <style> - .mui-content { - width: 96%; - margin: auto; - } - - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .grain_all { - display: block; - height: 212px; - } - - .grain_all .grain_title { - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - background: #FFFFFF; - } - - .grain_all .t1 { - font-size: 16px; - font-weight: 400; - } - - .grain_all .t2 { - font-size: 18px; - } - - .down { - float: left; - width: 25%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .first { - float: left; - width: 100%; - background: #FFFFFF; - padding: 5px 0; - border-top: 1px #efefef solid; - } - - .first strong { - font-weight: 400; - float: left; - } - - .up { - float: left; - width: 33.333%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .f1 { - border-right: 1px #efefef solid; - } - - .grain_title2 { - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - margin-top: 5px; - } - - .grain_table1 { - width: 100%; - } - - .grain_table1 table { - width: 100%; - background-color: #fff !important - } - - .grain_table1 th { - font-size: 15px; - text-align: center; - } - - .grain_table1 tr { - font-size: 14px; - text-align: center; - line-height: 35px; - border-top: 1px #efefef solid !important; - } - - .grain_table1 .yello { - color: #ffa800; - } - - .grain_table1 .red { - color: #f00; - } - - .grain_table1 .blue { - color: #0020c1; - } - - .grain_table1 .green { - color: #1c7430; - } - - - .grain_table2 { - width: 100%; - overflow: scroll; - } - - .grain_table2 table { - width: 100%; - background-color: #fff !important - } - - .grain_table2 tr { - font-size: 13px; - text-align: center; - line-height: 30px; - border-top: 1px #efefef solid !important; - } - - .grain_table2 th { - font-weight: 400; - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - .grain_table2 td { - min-width: 42px; - text-align: center; - padding: 0 5px; - } - </style> -</head> -<body> -<header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绮儏璇︾粏</h1> -</header> -<div class="mui-content"> - <div class="grain_all mb-2"> - <div class="grain_title"> - <strong>绮儏鎬昏</strong> - </div> - <div class="up"> - <h3 class="t1">绮潎娓�</h3> - <h3 class="t2"><span id="tempAve"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮珮娓�</h3> - <h3 class="t2"><span id="tempMax"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮綆娓�</h3> - <h3 class="t2"><span id="tempMin"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳唴娓�</h3> - <h3 class="t2"><span id="tempIn"></span>鈩�</h3> - </div> - <div class="down f1"> - <h3 class="t1">浠撳唴婀�</h3> - <h3 class="t2"><span id="humidityIn"></span>%</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳娓�</h3> - <h3 class="t2"><span id="tempOut"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳婀�</h3> - <h3 class="t2"><span id="humidityOut"></span>%</h3> - </div> - <div class="first"> - <strong style="padding-left: 15px;">閲囬泦鏃堕棿锛�</strong> - <strong id="receiveDate"></strong> - </div> - </div> - <div class="grain_title2"><strong>鍚勫眰绮儏淇℃伅</strong></div> - <div class="grain_table1"> - <table> - <thead> - <tr> - <th width="25%">鏄剧ず鎺у埗</th> - <th width="25%" class="yello">骞冲潎娓�</th> - <th width="25%" class="red">鏈�楂樻俯</th> - <th width="25%" class="blue">鏈�浣庢俯</th> - </tr> - </thead> - <tbody id="table1"> - <!-- <tr> - <td> - <input type="checkbox"> - <span>1灞�</span> - </td> - <td class="yello">###鈩�</td> - <td class="red">###鈩�</td> - <td class="blue">###鈩�</td> - </tr>--> - </tbody> - </table> - </div> - <div class="grain_title2"><strong><span id="ceng"></span>灞傝缁嗙伯鎯�</strong></div> - <div class="grain_table2"> - <table> - <thead id="table2_1"> -<!-- <tr>--> -<!-- <th>琛孿鍒�</th>--> -<!-- <th>1鍒�</th>--> -<!-- <th>2鍒�</th>--> -<!-- <th>3鍒�</th>--> -<!-- <th>4鍒�</th>--> -<!-- <th>5鍒�</th>--> -<!-- <th>6鍒�</th>--> -<!-- <th>7鍒�</th>--> -<!-- <th>8鍒�</th>--> -<!-- <th>9鍒�</th>--> -<!-- <th>10鍒�</th>--> -<!-- </tr>--> - </thead> - <tbody id="table2_2"> -<!-- <tr>--> -<!-- <td>1琛�</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.82</td>--> -<!-- <td>19.22</td>--> -<!-- </tr>--> - </tbody> - </table> - </div> - <div style="margin-bottom: 10px;"></div> -</div> -<script src="./js/mui.js"></script> -<script src="./js/jquery.min.js"></script> -<script src="./js/echarts.min.js"></script> -<script type="text/javascript" charset="utf-8"> - var grainData; //绮儏淇℃伅 - var depotName; //浠撳簱鍚嶇О - var tagCeng; //绮儏灞傛暟 - var tagHang; //绮儏灞傛暟 - var tagLie; //绮儏灞傛暟 - - mui.init() - mui.plusReady(function () { - //鑾峰彇绮儏淇℃伅銆佷粨搴撳悕绉扮瓑鍙傛暟 - var curr = plus.webview.currentWebview(); - grainData = curr.data; - depotName = curr.depotName; - $("#depotName").html(depotName); - //绮儏娓叉煋 - renderGrain(); - }) - - //娓叉煋绮儏鏁版嵁 - function renderGrain() { - if (grainData != null) { - //瑙f瀽鍑哄眰琛屽垪 - var array = grainData.cable.split("-"); - tagCeng = parseInt(array[0], 10); - tagHang = parseInt(array[1], 10); - tagLie = parseInt(array[2], 10); - //娓叉煋鎬昏淇℃伅 - $("#tempAve").html(grainData.tempAve); - $("#tempMax").html(grainData.tempMax); - $("#tempMin").html(grainData.tempMin); - $("#tempIn").html(grainData.tempIn); - $("#humidityIn").html(grainData.humidityIn); - $("#tempOut").html(grainData.tempOut); - $("#humidityOut").html(grainData.humidityOut); - $("#receiveDate").html(grainData.receiveDate); - //娓叉煋鍚勫眰绮儏 - var tableOne = grainData.details; - var html1 = ''; - tagCeng = tableOne.length; - if (tableOne != null && tableOne.length > 0) { - $.each(tableOne, function (index, item) { - html1 += '<tr><td><input id="check' + item.fz + '" type="checkbox" onclick="showCen(\'' + item.fz + '\')">'; - html1 += '<span>' + item.fzName + '</span></td>'; - html1 += '<td class="yello">' + item.tempAve + '鈩�</td>'; - html1 += '<td class="red">' + item.tempMax + '鈩�</td>'; - html1 += '<td class="blue">' + item.tempMin + '鈩�</td>'; - }) - } else { - html1 += '<tr><td colspan="4">鏆傛棤鏁版嵁</td></tr>'; - } - $("#table1").html(html1); - //榛樿閫変腑1灞傚苟娓叉煋 - $("#check1").attr("checked", true); - renderTierGrain(1); - } - } - - //閫夋嫨灞傛覆鏌� - function showCen(fz) { - for (var i = 1; i <= tagCeng; i++) { - if (fz != i) { - $("#check" + i).attr("checked", false); - } - } - renderTierGrain(fz) - } - - //娓叉煋鏌愬眰绮儏 - function renderTierGrain(tag) { - var tableTwo = grainData.points; - var html1 = ''; - var html2 = ''; - if (tableTwo != null && tableTwo.length > 0) { - var arrData = new Array; - arrData.push(0); - $.each(tableTwo, function (index, item) { - if (item.fz == tag) { - arrData.push(item.temp); - } - }) - - if (arrData.length > 1) { - html1 += '<tr><th>琛孿\鍒�</th>'; - var count = 1; - for (var i = 1; i <= tagHang; i++) { - html2 += '<tr><td>' + i + '琛�</td>'; - for (var j = i; j < arrData.length; j += tagHang) { - - if (i == 1) { - html1 += '<td>' + count + '鍒�</td>'; - count += 1; - } - html2 += '<td>' + arrData[j] + '</td>'; - } - html1 += '</tr>'; - html2 += '</tr>'; - } - } - } else { - html1 += '<tr><td>鏆傛棤鏁版嵁</td></tr>'; - } - $("#ceng").html(tag); - $("#table2_1").html(html1); - $("#table2_2").html(html2); - } -</script> -</body> -</html> diff --git a/igds-app/grain-detail-bungalow.html b/igds-app/grain-detail-bungalow.html deleted file mode 100644 index 8ce850d..0000000 --- a/igds-app/grain-detail-bungalow.html +++ /dev/null @@ -1,499 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏灞曠ず</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-content { - width: 96%; - margin: auto; - } - - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .grain_all { - display: block; - height: 212px; - } - - .grain_all .grain_title { - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing:border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - background: #FFFFFF; - } - - .grain_all .t1 { - font-size: 16px; - font-weight: 400; - } - - .grain_all .t2 { - font-size: 18px; - } - - .down { - float: left; - width: 25%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .first { - float: left; - width: 100%; - background: #FFFFFF; - padding: 5px 0; - border-top: 1px #efefef solid; - } - - .first strong { - font-weight: 400; - float: left; - } - - .up { - float: left; - width: 33.333%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .f1 { - border-right: 1px #efefef solid; - } - - .grain_title2 { - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - margin-top: 5px; - } - - .grain_table1 { - width: 100%; - } - - .grain_table1 table { - width: 100%; - background-color: #fff !important - } - - .grain_table1 th{ - font-size: 15px; - text-align: center; - } - - .grain_table1 tr { - font-size: 14px; - text-align: center; - line-height: 35px; - border-top: 1px #efefef solid !important; - } - - .grain_table1 .yello { - color: #ffa800; - } - - .grain_table1 .red { - color: #f00; - } - - .grain_table1 .blue { - color: #0020c1; - } - - .grain_table2 { - width: 100%; - overflow: scroll; - } - - .grain_table2 table { - width: 100%; - background-color: #fff !important - } - - .grain_table2 tr { - font-size: 13px; - text-align: center; - line-height: 30px; - border-top: 1px #efefef solid !important; - } - - .grain_table2 th { - font-weight: 400; - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - .grain_table2 td { - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - .grain-btn { - display: block; - text-align: center; - } - - .grain-btn button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 3px; - height: 44px; - line-height: 44px; - padding: 0 15px; - font-size: 16px; - margin: 20px 10px; - } - - .grain-btn p { - margin: 0px; - padding: 0px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绮儏灞曠ず</h1> - </header> - <div class="mui-content"> - <div class="grain_all mb-2"> - <div class="grain_title"> - <strong>绮儏鎬昏</strong> - </div> - <div class="up"> - <h3 class="t1">绮潎娓�</h3> - <h3 class="t2"><span id="tempAve"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮珮娓�</h3> - <h3 class="t2"><span id="tempMax"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮綆娓�</h3> - <h3 class="t2"><span id="tempMin"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳唴娓�</h3> - <h3 class="t2"><span id="tempIn"></span>鈩�</h3> - </div> - <div class="down f1"> - <h3 class="t1">浠撳唴婀�</h3> - <h3 class="t2"><span id="humidityIn"></span>%</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳娓�</h3> - <h3 class="t2"><span id="tempOut"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳婀�</h3> - <h3 class="t2"><span id="humidityOut"></span>%</h3> - </div> - <div class="first"> - <strong style="padding-left: 15px;">閲囬泦鏃堕棿锛�</strong> - <strong id="receiveDate"></strong> - </div> - </div> - <div class="grain_title2"><strong>鍚勫眰绮儏淇℃伅</strong></div> - <div class="grain_table1"> - <table> - <thead> - <tr> - <th width="25%">鏄剧ず鎺у埗</th> - <th width="25%" class="yello">骞冲潎娓�</th> - <th width="25%" class="red">鏈�楂樻俯</th> - <th width="25%" class="blue">鏈�浣庢俯</th> - </tr> - </thead> - <tbody id="table1"> - <!-- <tr> - <td> - <input type="checkbox"> - <span>1灞�</span> - </td> - <td class="yello">###鈩�</td> - <td class="red">###鈩�</td> - <td class="blue">###鈩�</td> - </tr>--> - </tbody> - </table> - </div> - <div class="grain_title2"><strong><span id="ceng"></span>灞傝缁嗙伯鎯�</strong></div> - <div class="grain_table2"> - <table> - <thead id="table2_1"> - <tr> - <th>琛孿鍒�</th> - <th>1鍒�</th> - <th>2鍒�</th> - <th>3鍒�</th> - <th>4鍒�</th> - <th>5鍒�</th> - <th>6鍒�</th> - <th>7鍒�</th> - <th>8鍒�</th> - <th>9鍒�</th> - <th>10鍒�</th> - </tr> - </thead> - <tbody id="table2_2"> - <tr> - <td>1琛�</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.82</td> - <td>19.22</td> - </tr> - </tbody> - </table> - </div> - - <div class="grain-btn"> - <button class="" onclick="gatherGrain()">绮儏閲囬泦</button> - <button style="background: #9e5cda;" onclick="historyGrain()">鍘嗗彶鏁版嵁</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var grainData; - var depotId; - var depotName; - var depotType; - var tagCeng; //绮儏灞傛暟 - var tagHang; //绮儏灞傛暟 - var tagLie; //绮儏灞傛暟 - //绮儏鏌ヨ鍙傛暟 - var data1 = { - "interfaceId": "5302", - "sign": "10302", - "outId": "10302", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "" - } - }; - //绮儏閲囬泦鍙傛暟 - var data2 = { - "interfaceId": "5305", - "sign": "10305", - "outId": "10305", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "" - } - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - depotId = curr.depotId; - depotName = curr.depotName; - depotType = curr.depotType; - $("#depotName").html(depotName); - //鑾峰彇鎺ュ彛璺緞鍙妕okenAuth - var user = JSON.parse(localStorage.getItem('user')) - //璇锋眰鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data2.tokenAuth = user.tokenAuth; - data1.data.depotId = depotId; - data1.data.type = depotType; - data2.data.depotId = depotId; - url = user.url + "/api-phone/gateway"; - //鏌ヨ浠撳簱绮儏淇℃伅 - getGrainData(); - }) - - function getGrainData() { - //鍙戦�佽幏鍙栫伯鎯呰姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - grainData = result.data; - renderGrain(); - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - - } - - //娓叉煋绮儏鏁版嵁 - function renderGrain() { - if (grainData != null) { - //瑙f瀽鍑哄眰琛屽垪 - var array = grainData.cable.split("-"); - tagCeng = parseInt(array[0], 10); - tagHang = parseInt(array[1], 10); - tagLie = parseInt(array[2], 10); - //娓叉煋鎬昏淇℃伅 - $("#tempAve").html(grainData.tempAve); - $("#tempMax").html(grainData.tempMax); - $("#tempMin").html(grainData.tempMin); - $("#tempIn").html(grainData.tempIn); - $("#humidityIn").html(grainData.humidityIn); - $("#tempOut").html(grainData.tempOut); - $("#humidityOut").html(grainData.humidityOut); - $("#receiveDate").html(grainData.receiveDate); - //娓叉煋鍚勫眰绮儏 - var tableOne = grainData.details; - var html1 = ''; - tagCeng = tableOne.length; - if (tableOne != null && tableOne.length > 0) { - $.each(tableOne, function(index, item) { - html1 += '<tr><td><input id="check' + item.fz + '" type="checkbox" onclick="showCen(\'' + item.fz + '\')">'; - html1 += '<span>' + item.fzName + '</span></td>'; - html1 += '<td class="yello">' + item.tempAve + '鈩�</td>'; - html1 += '<td class="red">' + item.tempMax + '鈩�</td>'; - html1 += '<td class="blue">' + item.tempMin + '鈩�</td>'; - }) - } else { - html1 += '<tr><td colspan="4">鏆傛棤鏁版嵁</td></tr>'; - } - $("#table1").html(html1); - //榛樿閫変腑1灞傚苟娓叉煋 - $("#check1").attr("checked", true); - renderTierGrain(1); - } - } - - //閫夋嫨灞傛覆鏌� - function showCen(fz) { - for (var i = 1; i <= tagCeng; i++) { - if (fz != i) { - $("#check" + i).attr("checked", false); - } - } - renderTierGrain(fz) - } - - //娓叉煋鏌愬眰绮儏 - function renderTierGrain(tag) { - var tableTwo = grainData.points; - var html1 = ''; - var html2 = ''; - if (tableTwo != null && tableTwo.length > 0) { - var arrData = new Array; - arrData.push(0); - $.each(tableTwo, function(index, item) { - if (item.fz == tag) { - arrData.push(item.temp); - } - }) - - if (arrData.length > 1) { - html1 += '<tr><th>琛孿\鍒�</th>'; - var count = 1; - for (var i = 1; i <= tagHang; i++) { - html2 += '<tr><td>' + i + '琛�</td>'; - for (var j = i; j < arrData.length; j += tagHang) { - - if (i == 1) { - html1 += '<td>' + count + '鍒�</td>'; - count += 1; - } - html2 += '<td>' + arrData[j] + '</td>'; - } - html1 += '</tr>'; - html2 += '</tr>'; - } - } - } else { - html1 += '<tr><td>鏆傛棤鏁版嵁</td></tr>'; - } - $("#ceng").html(tag); - $("#table2_1").html(html1); - $("#table2_2").html(html2); - } - //绮儏閲囬泦 - function gatherGrain() { - //鍙戦�佽幏鍙栫伯鎯呰姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(data) { - if (data.code == "0000") { - mui.alert('閲囬泦鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掗噸鏂版墦寮�姝ら〉闈㈡煡鐪嬮噰闆嗘暟鎹紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(data.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //璺宠浆鍘嗗彶鏁版嵁椤甸潰 - function historyGrain() { - mui.openWindow({ - url: "grain-history-list.html", - id: "grain-history-list", - extras: { - depotType: depotType, - depotId: depotId, - depotName: depotName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/grain-detail-drum-his.html b/igds-app/grain-detail-drum-his.html deleted file mode 100644 index 9764265..0000000 --- a/igds-app/grain-detail-drum-his.html +++ /dev/null @@ -1,401 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鍘嗗彶璇︾粏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-content { - width: 96%; - margin: auto; - } - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - /* 绮儏鎬昏 */ - .grain_all { - display: block; - height: 212px; - } - - .grain_all .grain_title { - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - background: #FFFFFF; - } - - .grain_all .t1 { - font-size: 16px; - font-weight: 400; - } - - .grain_all .t2 { - font-size: 18px; - } - - .down { - float: left; - width: 25%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .first { - float: left; - width: 100%; - background: #FFFFFF; - padding: 5px 0; - border-top: 1px #efefef solid; - } - - .first strong { - font-weight: 400; - float: left; - } - - .up { - float: left; - width: 33.333%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .f1 { - border-right: 1px #efefef solid; - } - - .grain_title2 { - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - margin-top: 5px; - } - - .grain_table1 { - width: 100%; - } - - .grain_table1 table { - width: 100%; - background-color: #fff !important - } - - .grain_table1 th { - font-size: 15px; - text-align: center; - } - - .grain_table1 tr { - font-size: 14px; - text-align: center; - line-height: 35px; - border-top: 1px #efefef solid !important; - } - - .grain_table1 .yello { - color: #ffa800; - } - - .grain_table1 .red { - color: #f00; - } - - .grain_table1 .blue { - color: #0020c1; - } - - .grain_table2 { - width: 100%; - overflow: scroll; - } - - .grain_table2 table { - width: 100%; - background-color: #fff !important - } - - .grain_table2 tr { - font-size: 13px; - text-align: center; - line-height: 30px; - border-top: 1px #efefef solid !important; - } - .grain_table2 th { - font-weight: 400; - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - .grain_table2 td { - min-width: 42px; - text-align: center; - padding: 0 5px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绮儏璇︾粏</h1> - </header> - <div class="mui-content"> - <div class="grain_all mb-2"> - <div class="grain_title"> - <strong>绮儏鎬昏</strong> - </div> - <div class="up"> - <h3 class="t1">绮潎娓�</h3> - <h3 class="t2"><span id="tempAve"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮珮娓�</h3> - <h3 class="t2"><span id="tempMax"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮綆娓�</h3> - <h3 class="t2"><span id="tempMin"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳唴娓�</h3> - <h3 class="t2"><span id="tempIn"></span>鈩�</h3> - </div> - <div class="down f1"> - <h3 class="t1">浠撳唴婀�</h3> - <h3 class="t2"><span id="humidityIn"></span>%</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳娓�</h3> - <h3 class="t2"><span id="tempOut"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳婀�</h3> - <h3 class="t2"><span id="humidityOut"></span>%</h3> - </div> - <div class="first"> - <strong style="padding-left: 15px;">閲囬泦鏃堕棿锛�</strong> - <strong id="receiveDate"></strong> - </div> - </div> - <div class="grain_title2"><strong>鍚勫眰绮儏淇℃伅</strong></div> - <div class="grain_table1"> - <table> - <thead> - <tr> - <th width="25%">鏄剧ず鎺у埗</th> - <th width="25%" class="yello">骞冲潎娓�</th> - <th width="25%" class="red">鏈�楂樻俯</th> - <th width="25%" class="blue">鏈�浣庢俯</th> - </tr> - </thead> - <tbody id="table1"> - <!-- <tr> - <td> - <input type="checkbox"> - <span>1灞�</span> - </td> - <td class="yello">###鈩�</td> - <td class="red">###鈩�</td> - <td class="blue">###鈩�</td> - </tr>--> - </tbody> - </table> - </div> - <div class="grain_title2"><strong><span id="ceng"></span>灞傝缁嗙伯鎯�</strong></div> - <div class="grain_table2" style="margin-top:2px;"> - <table> - <thead id="table2_1"> - <!-- <tr> - <th>鍦圽鍒�</th> - <th>1鍒�</th> - <th>2鍒�</th> - <th>3鍒�</th> - <th>4鍒�</th> - <th>5鍒�</th> - <th>6鍒�</th> - <th>7鍒�</th> - <th>8鍒�</th> - </tr> --> - </thead> - <tbody id="table2_2"> - <!-- <tr> - <td>1鍦�</td> - <td>0.0</td> - <td>0.0</td> - <td>0.0</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - </tr>--> - </tbody> - </table> - </div> - - <div style="margin-bottom: 10px;"></div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var grainData; //绮儏淇℃伅 - var depotName; //浠撳簱鍚嶇О - var tagCeng; //绮儏灞傛暟 - var tagHang; //绮儏灞傛暟 - var tagLie; //绮儏灞傛暟 - - mui.init() - mui.plusReady(function() { - //鑾峰彇绮儏淇℃伅銆佷粨搴撳悕绉扮瓑鍙傛暟 - var curr = plus.webview.currentWebview(); - grainData = curr.data; - depotName = curr.depotName; - $("#depotName").html(depotName); - //绮儏娓叉煋 - renderGrain(); - }) - - //娓叉煋绮儏鏁版嵁 - function renderGrain() { - if (grainData != null) { - //瑙f瀽鍑哄眰,鍙栨渶澶у眰 - var array1 = grainData.cableCir.split("-"); - tagCeng = parseInt(array1[0], 10); - for(var i = 1;i<array1.length;i++){ - if(parseInt(array1[i], 10)>tagLie){ - tagCeng = parseInt(array1[i], 10); - } - } - //瑙f瀽鍑哄湀 - tagHang = array1.length; - //瑙f瀽鍑哄垪锛屽彇鏈�澶у垪 - var array2 = grainData.cable.split("-"); - tagLie = parseInt(array2[0], 10); - for(var i = 1;i<array2.length;i++){ - if(parseInt(array2[i], 10)>tagLie){ - tagLie = parseInt(array2[i], 10); - } - } - - //娓叉煋鎬昏淇℃伅 - $("#tempAve").html(grainData.tempAve); - $("#tempMax").html(grainData.tempMax); - $("#tempMin").html(grainData.tempMin); - $("#tempIn").html(grainData.tempIn); - $("#humidityIn").html(grainData.humidityIn); - $("#tempOut").html(grainData.tempOut); - $("#humidityOut").html(grainData.humidityOut); - $("#receiveDate").html(grainData.receiveDate); - //娓叉煋鍚勫眰绮儏 - var tableOne = grainData.details; - var html1 = ''; - tagCeng = tableOne.length; - if (tableOne != null && tableOne.length > 0) { - $.each(tableOne, function(index, item) { - html1 += '<tr><td><input id="check' + item.fz + '" type="checkbox" onclick="showCen(\'' + item.fz + '\')">'; - html1 += '<span>' + item.fzName + '</span></td>'; - html1 += '<td class="yello">' + item.tempAve + '鈩�</td>'; - html1 += '<td class="red">' + item.tempMax + '鈩�</td>'; - html1 += '<td class="blue">' + item.tempMin + '鈩�</td>'; - }) - } else { - html1 += '<tr><td colspan="4">鏆傛棤鏁版嵁</td></tr>'; - } - $("#table1").html(html1); - //榛樿閫変腑1灞傚苟娓叉煋 - $("#check1").attr("checked", true); - renderTierGrain(1); - } - } - - //閫夋嫨灞傛覆鏌� - function showCen(fz) { - for (var i = 1; i <= tagCeng; i++) { - if (fz != i) { - $("#check" + i).attr("checked", false); - } - } - renderTierGrain(fz) - } - - //娓叉煋鏌愬眰绮儏 - function renderTierGrain(tag) { - - var tableTwo = grainData.points; - //姣忓湀鍒楁暟 - var array = grainData.cable.split("-"); - var html1 = ''; - var html2 = ''; - if (tableTwo != null && tableTwo.length > 0) { - var arrData = new Array; - arrData.push(0); - $.each(tableTwo, function(index, item) { - if (item.fz == tag) { - arrData.push(item.temp); - } - }) - if (arrData.length > 1) { - var count = 1; - html1 += '<tr><th>鍦圽\鍒�</th>'; - for (var i = 1; i <= tagHang; i++) { - if(count < arrData.length){ - html2 += '<tr><td>' + i + '鍦�</td>'; - var temp = 0; - if(i>1){ - temp = parseInt(array[i-2], 10); - } - for (var j = 1; j <= tagLie; j ++) { - if(i==1){ - html1 += '<td>' + j + '鍒�</td>'; - } - if(j <= array[i-1]){ - html2 += '<td>' + arrData[j+temp] + '</td>'; - count += 1; - }else{ - html2 += '<td>鈥�</td>'; - } - } - html1 += '</tr>'; - html2 += '</tr>'; - } - } - } - } else { - html1 += '<tr><td>鏆傛棤鏁版嵁</td></tr>'; - } - $("#ceng").html(tag); - $("#table2_1").html(html1); - $("#table2_2").html(html2); - } - </script> - </body> -</html> diff --git a/igds-app/grain-detail-drum.html b/igds-app/grain-detail-drum.html deleted file mode 100644 index e66a591..0000000 --- a/igds-app/grain-detail-drum.html +++ /dev/null @@ -1,520 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏灞曠ず</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-content { - width: 96%; - margin: auto; - } - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - /* 绮儏鎬昏 */ - .grain_all { - display: block; - height: 212px; - } - - .grain_all .grain_title { - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - background: #FFFFFF; - } - - .grain_all .t1 { - font-size: 16px; - font-weight: 400; - } - - .grain_all .t2 { - font-size: 18px; - } - - .down { - float: left; - width: 25%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .first { - float: left; - width: 100%; - background: #FFFFFF; - padding: 5px 0; - border-top: 1px #efefef solid; - } - - .first strong { - font-weight: 400; - float: left; - } - - .up { - float: left; - width: 33.333%; - background: #FFFFFF; - padding: 10px 0; - text-align: center; - border-top: 1px #efefef solid; - } - - .f1 { - border-right: 1px #efefef solid; - } - - .grain_title2 { - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - margin-top: 5px; - } - - .grain_table1 { - width: 100%; - } - - .grain_table1 table { - width: 100%; - background-color: #fff !important - } - - .grain_table1 th { - font-size: 15px; - text-align: center; - } - - .grain_table1 tr { - font-size: 14px; - text-align: center; - line-height: 35px; - border-top: 1px #efefef solid !important; - } - - .grain_table1 .yello { - color: #ffa800; - } - - .grain_table1 .red { - color: #f00; - } - - .grain_table1 .blue { - color: #0020c1; - } - - .grain_table2 { - width: 100%; - overflow: scroll; - } - - .grain_table2 table { - width: 100%; - background-color: #fff !important - } - - .grain_table2 tr { - font-size: 13px; - text-align: center; - line-height: 30px; - border-top: 1px #efefef solid !important; - } - .grain_table2 th { - font-weight: 400; - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - .grain_table2 td { - min-width: 42px; - text-align: center; - padding: 0 5px; - } - - - - .grain-btn { - display: block; - text-align: center; - } - - .grain-btn button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 3px; - height: 44px; - line-height: 44px; - padding: 0 15px; - font-size: 16px; - margin: 20px 10px; - } - - .grain-btn p { - margin: 0px; - padding: 0px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绮儏灞曠ず</h1> - </header> - <div class="mui-content"> - <div class="grain_all mb-2"> - <div class="grain_title"> - <strong>绮儏鎬昏</strong> - </div> - <div class="up"> - <h3 class="t1">绮潎娓�</h3> - <h3 class="t2"><span id="tempAve"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮珮娓�</h3> - <h3 class="t2"><span id="tempMax"></span>鈩�</h3> - </div> - <div class="up"> - <h3 class="t1">绮綆娓�</h3> - <h3 class="t2"><span id="tempMin"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳唴娓�</h3> - <h3 class="t2"><span id="tempIn"></span>鈩�</h3> - </div> - <div class="down f1"> - <h3 class="t1">浠撳唴婀�</h3> - <h3 class="t2"><span id="humidityIn"></span>%</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳娓�</h3> - <h3 class="t2"><span id="tempOut"></span>鈩�</h3> - </div> - <div class="down"> - <h3 class="t1">浠撳婀�</h3> - <h3 class="t2"><span id="humidityOut"></span>%</h3> - </div> - <div class="first"> - <strong style="padding-left: 15px;">閲囬泦鏃堕棿锛�</strong> - <strong id="receiveDate"></strong> - </div> - </div> - <div class="grain_title2"><strong>鍚勫眰绮儏淇℃伅</strong></div> - <div class="grain_table1"> - <table> - <thead> - <tr> - <th width="25%">鏄剧ず鎺у埗</th> - <th width="25%" class="yello">骞冲潎娓�</th> - <th width="25%" class="red">鏈�楂樻俯</th> - <th width="25%" class="blue">鏈�浣庢俯</th> - </tr> - </thead> - <tbody id="table1"> - <!-- <tr> - <td> - <input type="checkbox"> - <span>1灞�</span> - </td> - <td class="yello">###鈩�</td> - <td class="red">###鈩�</td> - <td class="blue">###鈩�</td> - </tr>--> - </tbody> - </table> - </div> - <div class="grain_title2"><strong><span id="ceng"></span>灞傝缁嗙伯鎯�</strong></div> - <div class="grain_table2" style="margin-top:2px;"> - <table> - <thead id="table2_1"> - <!-- <tr> - <th>鍦圽鍒�</th> - <th>1鍒�</th> - <th>2鍒�</th> - <th>3鍒�</th> - <th>4鍒�</th> - <th>5鍒�</th> - <th>6鍒�</th> - <th>7鍒�</th> - <th>8鍒�</th> - </tr> --> - </thead> - <tbody id="table2_2"> - <!-- <tr> - <td>1鍦�</td> - <td>0.0</td> - <td>0.0</td> - <td>0.0</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - <td>鈥�</td> - </tr>--> - </tbody> - </table> - </div> - - <div class="grain-btn"> - <button class="" onclick="gatherGrain()">绮儏閲囬泦</button> - <button style="background: #9e5cda;" onclick="historyGrain()">鍘嗗彶鏁版嵁</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var grainData; - var depotId; - var depotName; - var depotType; - var tagCeng; //灞� - var tagHang; //鍦� - var tagLie; //鍒� - //绮儏鏌ヨ鍙傛暟 - var data1 = { - "interfaceId": "5303", - "sign": "10303", - "outId": "10303", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "" - } - }; - //绮儏閲囬泦鍙傛暟 - var data2 = { - "interfaceId": "5305", - "sign": "10305", - "outId": "10305", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "" - } - }; - mui.init() - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - depotId = curr.depotId; - depotName = curr.depotName; - depotType = curr.depotType; - $("#depotName").html(depotName); - //鑾峰彇鎺ュ彛璺緞鍙妕okenAuth - var user = JSON.parse(localStorage.getItem('user')) - //璇锋眰鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data2.tokenAuth = user.tokenAuth; - data1.data.depotId = depotId; - data1.data.type = depotType; - data2.data.depotId = depotId; - url = user.url + "/api-phone/gateway"; - //鏌ヨ浠撳簱绮儏淇℃伅 - getGrainData(); - }) - - function getGrainData() { - //鍙戦�佽幏鍙栫伯鎯呰姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - grainData = result.data; - renderGrain(); - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - - } - - //娓叉煋绮儏鏁版嵁 - function renderGrain() { - if (grainData != null) { - //瑙f瀽鍑哄眰,鍙栨渶澶у眰 - var array1 = grainData.cableCir.split("-"); - tagCeng = parseInt(array1[0], 10); - for (var i = 1; i < array1.length; i++) { - if (parseInt(array1[i], 10) > tagLie) { - tagCeng = parseInt(array1[i], 10); - } - } - //瑙f瀽鍑哄湀 - tagHang = array1.length; - //瑙f瀽鍑哄垪锛屽彇鏈�澶у垪 - var array2 = grainData.cable.split("-"); - tagLie = parseInt(array2[0], 10); - for (var i = 1; i < array2.length; i++) { - if (parseInt(array2[i], 10) > tagLie) { - tagLie = parseInt(array2[i], 10); - } - } - - //娓叉煋鎬昏淇℃伅 - $("#tempAve").html(grainData.tempAve); - $("#tempMax").html(grainData.tempMax); - $("#tempMin").html(grainData.tempMin); - $("#tempIn").html(grainData.tempIn); - $("#humidityIn").html(grainData.humidityIn); - $("#tempOut").html(grainData.tempOut); - $("#humidityOut").html(grainData.humidityOut); - $("#receiveDate").html(grainData.receiveDate); - //娓叉煋鍚勫眰绮儏 - var tableOne = grainData.details; - var html1 = ''; - tagCeng = tableOne.length; - if (tableOne != null && tableOne.length > 0) { - $.each(tableOne, function(index, item) { - html1 += '<tr><td><input id="check' + item.fz + '" type="checkbox" onclick="showCen(\'' + item.fz + '\')">'; - html1 += '<span>' + item.fzName + '</span></td>'; - html1 += '<td class="yello">' + item.tempAve + '鈩�</td>'; - html1 += '<td class="red">' + item.tempMax + '鈩�</td>'; - html1 += '<td class="blue">' + item.tempMin + '鈩�</td>'; - }) - } else { - html1 += '<tr><td colspan="4">鏆傛棤鏁版嵁</td></tr>'; - } - $("#table1").html(html1); - //榛樿閫変腑1灞傚苟娓叉煋 - $("#check1").attr("checked", true); - renderTierGrain(1); - } - } - - //閫夋嫨灞傛覆鏌� - function showCen(fz) { - for (var i = 1; i <= tagCeng; i++) { - if (fz != i) { - $("#check" + i).attr("checked", false); - } - } - renderTierGrain(fz) - } - - //娓叉煋鏌愬眰绮儏 - function renderTierGrain(tag) { - - var tableTwo = grainData.points; - var array = grainData.cable.split("-"); - var html1 = ''; - var html2 = ''; - if (tableTwo != null && tableTwo.length > 0) { - var arrData = new Array; - arrData.push(0); - $.each(tableTwo, function(index, item) { - if (item.fz == tag) { - arrData.push(item.temp); - } - }) - if (arrData.length > 1) { - var count = 1; - html1 += '<tr><th>鍦圽\鍒�</th>'; - for (var i = 1; i <= tagHang; i++) { - - if (count < arrData.length) { - html2 += '<tr><td>' + i + '鍦�</td>'; - var temp = 0; - if (i > 1) { - temp = parseInt(array[i - 2], 10); - } - for (var j = 1; j <= tagLie; j++) { - if (i == 1) { - html1 += '<td>' + j + '鍒�</td>'; - } - if (j <= array[i - 1]) { - html2 += '<td>' + arrData[j + temp] + '</td>'; - count += 1; - } else { - html2 += '<td>鈥�</td>'; - } - } - html1 += '</tr>'; - html2 += '</tr>'; - } - } - } - } else { - html1 += '<tr><td>鏆傛棤鏁版嵁</td></tr>'; - } - $("#ceng").html(tag); - $("#table2_1").html(html1); - $("#table2_2").html(html2); - } - //绮儏閲囬泦 - function gatherGrain() { - //鍙戦�佽幏鍙栫伯鎯呰姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(data) { - if (data.code == "0000") { - mui.alert('閲囬泦鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掗噸鏂版墦寮�姝ら〉闈㈡煡鐪嬮噰闆嗘暟鎹紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(data.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //璺宠浆鍘嗗彶鏁版嵁椤甸潰 - function historyGrain() { - mui.openWindow({ - url: "grain-history-list.html", - id: "grain-history-list", - extras: { - depotType: depotType, - depotId: depotId, - depotName: depotName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/grain-history-list-old.html b/igds-app/grain-history-list-old.html deleted file mode 100644 index bbe79df..0000000 --- a/igds-app/grain-history-list-old.html +++ /dev/null @@ -1,267 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏鍘嗗彶鏁版嵁</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-content { - margin: 0 5px; - } - - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-content>.mui-table-view:first-child { - margin-top: -1px; - } - - .mui-table-view-chevron .mui-table-view-cell { - padding-right: 0px; - } - - .mui-col-xs-10 { - width: 100%; - } - - .mui-h4, - h4 { - font-size: 17px; - font-weight: 600; - } - - .first { - color: #C7254E; - font-size: 15px; - float: right; - margin-right: 50px; - } - - .mui-h5, - h5 { - font-size: 14px; - font-weight: 400; - color: #333; - } - - .mui-table-view-cell p { - color: #333; - } - - .mui-scroll-wrapper { - width: unset; - } - - .mui-navigate-right:after, - .mui-push-right:after { - right: 10px; - top: -5px; - font-size: 25px; - - } - .mui-pull-bottom-tips{ - display: none; - } - - .f1 { - width: 33.33%; - float: left; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>鈥旂伯鎯呭巻鍙叉暟鎹�</h1> - </header> - <div class="mui-content"> - <!--涓嬫媺鍒锋柊瀹瑰櫒--> - <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> - <!--鏁版嵁鍒楄〃--> - <ul class="mui-table-view mui-table-view-chevron"> - <!-- <li class="mui-table-view-cell"> - <div onclick="toWarnDetail('1')" class="mui-table"> - <div class="mui-table-cell mui-col-xs-10"> - <h4 class="mui-ellipsis">妫�娴嬫椂闂达細2021-01-01 01:01</h4> - <h5 class="f1">绮潎娓╋細<span>44</span></h5> - <h5 class="f1">绮珮娓╋細<span>44</span></h5> - <h5 class="f1">绮綆娓╋細<span>44</span></h5> - <h5 class="f1">浠撳唴娓╋細<span>33</span></h5> - <h5 class="f1"> </h5> - <h5 class="f1">浠撳唴婀匡細<span>44</span></h5> - <h5 class="f1">浠撳娓╋細<span>33</span></h5> - <h5 class="f1"> </h5> - <h5 class="f1">浠撳婀匡細<span>44</span></h5> - </div> - <div class="mui-col-xs-2"><a class="mui-navigate-right"></a></div> - </div> - </li> --> - </ul> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var user; - var url; - var depotId; - var depotName; - var depotType; - var historyList; - var dataList = []; - var tagCount = 0; - var pageNo = 0; //椤电爜 - var tagStop = false; - var data = { - "interfaceId": "5310", - "sign": "10310", - "outId": "10310", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "", - "pageSize": "10", - "pageNo": "", - "depotId": "" - } - }; - mui.init({ - pullRefresh: { - container: '#pullrefresh', - down: { - // style: 'circle', - // callback: pullupRefresh //涓嬫媺鍒锋柊 - }, - up: { - auto: true, - contentrefresh: '姝e湪鍔犺浇...', - callback: pullupRefresh //涓婃粦鍒锋柊 - }, - preventDefaultException: { - className: /^mui-/ - } - } - }); - - mui.plusReady(function() { - var curr = plus.webview.currentWebview(); - user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - depotId = curr.depotId - depotName = curr.depotName - depotType = curr.depotType - data.tokenAuth = user.tokenAuth; - data.data.depotId = depotId; - data.data.type = depotType; - $("#depotName").html(depotName); - }) - - //鍒濆鍑哄姞杞介〉闈㈡暟鎹� - function pullupRefresh() { - //璇锋眰鑾峰彇鏁版嵁 - getHistoryList(); - } - - function getHistoryList() { - //鑾峰彇鏌ヨ椤靛弬鏁� - pageNo += 1; - data.data.pageNo = pageNo; - //璇锋眰 - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - historyList = result.data; - if (historyList != null && historyList.length > 0) { - renderData(); - }else{ - tagStop = true; - mui.toast("娌℃湁鏇村鏁版嵁锛�"); - } - } else { - tagStop = true; - mui.toast("娌℃湁鏇村鏁版嵁锛�"); - } - }, - error: function() { - mui.toast('绯荤粺绻佸繖,璇烽噸璇曪紒'); - } - }) - } - - //娓叉煋椤甸潰 - function renderData() { - //鍒濆鍖栨暟鎹埌椤甸潰 - mui('#pullrefresh').pullRefresh().endPullupToRefresh((tagStop)); - var table = document.body.querySelector('.mui-table-view'); - $.each(historyList, function(index, item) { - dataList.push(item); - var li = document.createElement('li'); - li.className = 'mui-table-view-cell'; - var html = ''; - html += '<div onclick="toDetail(\'' + tagCount + '\')" class="mui-table">'; - html += '<div class="mui-table-cell mui-col-xs-10"><h4 class="mui-ellipsis">妫�娴嬫椂闂达細' + - item.receiveDate + '</h4>'; - html += '<h5 class="f1">绮潎娓╋細' + item.tempAve + '鈩�</h5>'; - html += '<h5 class="f1">绮珮娓╋細' + item.tempMax + '鈩�</h5>'; - html += '<h5 class="f1">绮綆娓╋細' + item.tempMin + '鈩�</h5>'; - html += '<h5 class="f1">浠撳唴娓╋細' + item.tempIn + '鈩�</h5>'; - html += '<h5 class="f1"></h5>'; - html += '<h5 class="f1">浠撳唴婀匡細' + item.humidityIn + '%</h5>'; - html += '<h5 class="f1">浠撳娓╋細' + item.tempOut + '鈩�</h5>'; - html += '<h5 class="f1"></h5>'; - html += '<h5 class="f1">浠撳婀匡細' + item.humidityOut + '%</h5>'; - html += '</div><div class="mui-col-xs-2"><a class="mui-navigate-right"></a></div></div>'; - li.innerHTML = html; - table.appendChild(li); - tagCount ++; - }) - } - - //鏌ョ湅璇︽儏椤甸潰 - function toDetail(index) { - if (depotType == '01') { - //骞虫埧浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-bungalow-his.html", - id: "grain-detail-bungalow-his", - extras: { - data: dataList[index], - depotName: depotName - } - }) - } else if (depotType == '02' || depotType == '04') { - //鍦嗙瓛浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-drum-his.html", - id: "grain-detail-drum-his", - extras: { - data: dataList[index], - depotName: depotName - } - }) - } else { - mui.alert('鏆傛棤鏉冮檺锛�', '鎻愮ず'); - } - } - </script> - </body> -</html> diff --git a/igds-app/grain-history-list.html b/igds-app/grain-history-list.html deleted file mode 100644 index 5c421de..0000000 --- a/igds-app/grain-history-list.html +++ /dev/null @@ -1,378 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏鍘嗗彶鏁版嵁</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-content { - margin: 0 5px; - } - - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-content>.mui-table-view:first-child { - margin-top: -1px; - } - .mui-content-padded { - margin:unset; - padding: 6px; - margin-bottom: 1px; - } - input[type=search] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - } - input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea { - line-height: 15px; - margin-bottom: 1px; - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - border-radius: 50px; - background-color: #efeff4; - } - - .mui-table-view-chevron .mui-table-view-cell { - padding-right: 0px; - } - - .mui-col-xs-10 { - width: 100%; - } - - .mui-h4, - h4 { - font-size: 17px; - font-weight: 600; - } - - .first { - color: #C7254E; - font-size: 15px; - float: right; - margin-right: 50px; - } - - .mui-h5, - h5 { - font-size: 14px; - font-weight: 400; - color: #333; - } - - .mui-table-view-cell p { - color: #333; - } - - .mui-scroll-wrapper { - width: unset; - } - - .mui-navigate-right:after, - .mui-push-right:after { - right: 10px; - top: -5px; - font-size: 25px; - - } - .mui-pull-bottom-tips{ - display: none; - } - - .f1 { - width: 33.33%; - float: left; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>绮儏鍘嗗彶鏁版嵁</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <div id="depot" style="margin-bottom: 6px;"> - <span style="width: 25%;margin-left: 5px;">浠撳簱锛�</span> - <select id="depotId" value="" style="width: 75%;margin-left: 1px;"> - </select> - </div> - <div> - <span style="width: 25%;margin-left: 5px;">鏃ユ湡锛�</span> - <input id="dateTime" type="search" style="width: 55%;margin-left: 5px;" onclick="search()" placeholder="閫夋嫨鏃堕棿"> - <button style="width: 18%;background: #668dc1;color: #FFFFFF;" onclick="getHistoryList()">鏌ヨ</button> - </div> - </div> - <ul id="hisList" class="mui-table-view mui-table-view-chevron"> - <!-- <li class="mui-table-view-cell"> - <div onclick="toWarnDetail('1')" class="mui-table"> - <div class="mui-table-cell mui-col-xs-10"> - <h4 class="mui-ellipsis">妫�娴嬫椂闂达細2021-01-01 01:01</h4> - <h5 class="f1">绮潎娓╋細<span>44</span></h5> - <h5 class="f1">绮珮娓╋細<span>44</span></h5> - <h5 class="f1">绮綆娓╋細<span>44</span></h5> - <h5 class="f1">浠撳唴娓╋細<span>33</span></h5> - <h5 class="f1"> </h5> - <h5 class="f1">浠撳唴婀匡細<span>44</span></h5> - <h5 class="f1">浠撳娓╋細<span>33</span></h5> - <h5 class="f1"> </h5> - <h5 class="f1">浠撳婀匡細<span>44</span></h5> - </div> - <div class="mui-col-xs-2"><a class="mui-navigate-right"></a></div> - </div> - </li> --> - </ul> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - var user; - var url; - var dateTime; //鏃ユ湡锛歽yyy-MM - var depotId; - var depotName; - var depotType; - var depotList; - var historyList; - var data = { - "interfaceId": "5310", - "sign": "10310", - "outId": "10310", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "", - "depotId": "", - "dateTime": '' - } - }; - //鏌ヨ浠撳簱鍒楄〃 - var data1 = { - "interfaceId": "5301", - "sign": "10301", - "outId": "10301", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "grain" - } - }; - - mui.init(); - mui.plusReady(function() { - user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - data.tokenAuth = user.tokenAuth; - data1.tokenAuth = user.tokenAuth; - dateTime = getDate(); - $("#dateTime").val(dateTime); - var curr = plus.webview.currentWebview(); - if(curr.depotId){ //浠庣伯鎯呴〉闈㈣繘鍏ワ紝鎼哄甫浠撳簱id - $('#depot').css('display', 'none'); //闅愯棌浠撳簱閫夋嫨妗� - depotId = curr.depotId; - depotName = curr.depotName; - depotType = curr.depotType; - data.data.depotId = depotId; - data.data.type = depotType; - $("#depotName").html(depotName + '鈥�'); - // getHistoryList(); - mui.toast("璇烽�夋嫨鏉′欢杩涜鏌ヨ锛�"); - }else{ //浠庡巻鍙叉暟鎹〉闈㈣繘鍏ワ紝娌℃湁鎼哄甫浠撳簱id - getDepotList(); //鏌ヨ浠撳簱鍒楄〃 - mui.toast("璇烽�夋嫨鏉′欢杩涜鏌ヨ锛�"); - } - }) - - //鐩戝惉浠撳簱杈撳叆妗� - mui('.mui-content-padded').on('change', 'select[id="depotId"]', function() { - //灏嗚緭鍏ユ鐨勫�艰祴鍊肩粰鍙傛暟 - var index = mui("#depotId")[0].value; - depotId = depotList[index].depotId; - depotType = depotList[index].depotType; - depotName = depotList[index].depotName; - data.data.depotId = depotId; - data.data.type = depotType; - $("#hisList").html(""); - $("#depotName").html(depotName + '鈥�'); - }); - - //璇锋眰鏌ヨ鍘嗗彶鏁版嵁 - function getHistoryList() { - if(!(data.data.depotId)){ - mui.toast("璇峰厛閫夋嫨浠撳簱锛�"); - return; - } - //璇锋眰 - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - historyList = result.data; - if (historyList != null && historyList.length > 0) { - renderData(); - } else { - $("#hisList").html(""); - mui.toast('娌℃湁绗﹀悎鏉′欢鐨勬暟鎹紒'); - } - } else { - $("#hisList").html(""); - mui.toast('娌℃湁绗﹀悎鏉′欢鐨勬暟鎹紒'); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒","鎻愮ず",["纭畾"],function(){},"div") - } - }) - } - - //娓叉煋椤甸潰 - function renderData() { - var html = ''; - $.each(historyList, function(index, item) { - html += '<li class="mui-table-view-cell">'; - html += '<div onclick="toDetail(\'' + index + '\')" class="mui-table">'; - html += '<div class="mui-table-cell mui-col-xs-10"><h4 class="mui-ellipsis">妫�娴嬫椂闂达細' + - item.receiveDate + '</h4>'; - html += '<h5 class="f1">绮潎娓╋細' + item.tempAve + '鈩�</h5>'; - html += '<h5 class="f1">绮珮娓╋細' + item.tempMax + '鈩�</h5>'; - html += '<h5 class="f1">绮綆娓╋細' + item.tempMin + '鈩�</h5>'; - html += '<h5 class="f1">浠撳唴娓╋細' + item.tempIn + '鈩�</h5>'; - html += '<h5 class="f1"></h5>'; - html += '<h5 class="f1">浠撳唴婀匡細' + item.humidityIn + '%</h5>'; - html += '<h5 class="f1">浠撳娓╋細' + item.tempOut + '鈩�</h5>'; - html += '<h5 class="f1"></h5>'; - html += '<h5 class="f1">浠撳婀匡細' + item.humidityOut + '%</h5>'; - html += '</div><div class="mui-col-xs-2"><a class="mui-navigate-right"></a></div></div></li>'; - }) - $("#hisList").html(html); - } - - //璇锋眰鑾峰彇浠撳簱鍒楄〃 - function getDepotList() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - depotList = result.data; - if(depotList != null && depotList.length>0){ - renderDepotList(); - }else{ - mui.toast("娌℃湁浠撳簱淇℃伅锛�"); - } - } else { - mui.toast("娌℃湁浠撳簱淇℃伅锛�"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋浠撳簱鍒楄〃 - function renderDepotList(){ - var html = ''; - html += '<option>璇烽�夋嫨浠撳簱</option>' - $.each(depotList, function(index, item) { - html += '<option value="' + index; - html += '">' + item.depotName + '</option>'; - }) - $("#depotId").html(html); - } - - //榛樿鑾峰彇褰撳墠鏃ユ湡(yyyy-MM) - function getDate() { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - data.data.dateTime = year + "-" + month + "-" + day; - return year + "-" + month; - } - - //鐩戝惉鏃堕棿閫夋嫨 - function search() { - var dtPicker = new mui.DtPicker({ - type: 'month', - beginDate: new Date(2010, 00), //璧峰鏃ユ湡 - value: dateTime //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateTime = y + "-" + m; - $("#dateTime").val(dateTime); - data.data.dateTime = y + "-" + m + "-" + d; - }) - } - - //鏌ョ湅璇︽儏椤甸潰 - function toDetail(index) { - if (depotType == '01') { - //骞虫埧浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-bungalow-his.html", - id: "grain-detail-bungalow-his", - extras: { - data: historyList[index], - depotName: depotName - } - }) - } else if (depotType == '02' || depotType == '04') { - //鍦嗙瓛浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-drum-his.html", - id: "grain-detail-drum-his", - extras: { - data: historyList[index], - depotName: depotName - } - }) - } else { - mui.alert('鏆傛棤鏉冮檺锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } - </script> - </body> -</html> diff --git a/igds-app/grain-listDepot.html b/igds-app/grain-listDepot.html deleted file mode 100644 index b1a298e..0000000 --- a/igds-app/grain-listDepot.html +++ /dev/null @@ -1,270 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏妫�娴�-浠撳簱鍒楄〃</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-content { - margin: 0 5px; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 { - margin: auto; - background-color: #4e555b; - border-left: none; - border-top: none; - } - - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - padding: 10px 10px; - } - - .mui-grid-view.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn) { - padding: 8px 0; - } - - .mui-col-xs-4 { - width: 33.333333%; - } - - .mui-icon-list, - .mui-icon-chat, - .mui-icon-contact, - .mui-icon-gear, - .mui-icon-close { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - color: #FFFFFF; - } - - .mui-grid-view.mui-grid-9:after, - .mui-grid-view.mui-grid-9:before { - display: none; - - } - - .depot_img { - width: 60px; - height: auto; - display: block; - margin: auto; - } - - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">绮儏妫�娴�-浠撳簱鍒楄〃</h1> - </header> - <div class="mui-content"> - <div> - <ul id="depotList" class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('grain-listDepot')"> - <div class="mui-media-body">鍏ュ簱涓�</div> - <img class="depot_img" src="./images/ico_depot1.png"> - <div class="mui-media-body">1鍙蜂粨</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('grain-listDepot')"> - <div class="mui-media-body">鍏ュ簱涓�</div> - <img class="depot_img" src="./images/ico_depot1.png"> - <div class="mui-media-body">2鍙蜂粨</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('grain-listDepot')"> - <div class="mui-media-body">鍏ュ簱涓�</div> - <img class="depot_img" src="./images/ico_depot1.png"> - <div class="mui-media-body">3鍙蜂粨</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('grain-listDepot')"> - <div class="mui-media-body">鍏ュ簱涓�</div> - <img class="depot_img" src="./images/ico_depot1.png"> - <div class="mui-media-body">4鍙蜂粨</div> - </a> - </li> - </ul> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var user; - var contentList; - var data = { - "interfaceId": "5301", - "sign": "10301", - "outId": "10301", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "grain" - } - }; - mui.init() - - mui.plusReady(function() { - user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - getList() - }) - - function getList() { - var url = user.url + "/api-phone/gateway"; - //璇锋眰 - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(data) { - if (data.code == "0000") { - contentList = data.data; - renderList(); - } else { - mui.alert(data.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋椤甸潰 - function renderList() { - var html = ''; - - if (contentList != null && contentList.length > 0) { - for (var i = 0; i < contentList.length; i++) { - - html += '<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">'; - html += '<a href="javascript:void(0)" onclick="grainDetail(\'' + i + '\')">'; - html += '<div class="mui-media-body">' + (contentList[i].depotStatusName ? contentList[i].depotStatusName:'') + '</div>'; - html += '<img class="depot_img" '; - if (contentList[i].depotType == "01") { - if (contentList[i].depotStatus == "01") { - html += 'src="./images/ico_depot1.png">'; - } else if (contentList[i].depotStatus == "02") { - html += 'src="./images/ico_depot2.png">'; - } else if (contentList[i].depotStatus == "03") { - html += 'src="./images/ico_depot3.png">'; - } else if (contentList[i].depotStatus == "04") { - html += 'src="./images/ico_depot4.png">'; - } else if (contentList[i].depotStatus == "08") { - html += 'src="./images/ico_depot8.png">'; - } else { - html += 'src="./images/ico_depot5.png">'; - } - } else if (contentList[i].depotType == "02" || contentList[i].depotType == "04") { - if (contentList[i].depotStatus == "01") { - html += 'src="./images/ico_depot111.png">'; - } else if (contentList[i].depotStatus == "02") { - html += 'src="./images/ico_depot222.png">'; - } else if (contentList[i].depotStatus == "03") { - html += 'src="./images/ico_depot333.png">'; - } else if (contentList[i].depotStatus == "04") { - html += 'src="./images/ico_depot444.png">'; - } else if (contentList[i].depotStatus == "08") { - html += 'src="./images/ico_depot888.png">'; - } else { - html += 'src="./images/ico_depot555.png">'; - } - } else if (contentList[i].depotType == "03") { - if (contentList[i].depotStatus == "01") { - html += 'src="./images/ico_depot11.png">'; - } else if (contentList[i].depotStatus == "02") { - html += 'src="./images/ico_depot22.png">'; - } else if (contentList[i].depotStatus == "03") { - html += 'src="./images/ico_depot33.png">'; - } else if (contentList[i].depotStatus == "04") { - html += 'src="./images/ico_depot44.png">'; - } else if (contentList[i].depotStatus == "08") { - html += 'src="./images/ico_depot88.png">'; - } else { - html += 'src="./images/ico_depot55.png">'; - } - } - html += '<div class="mui-media-body">' + contentList[i].depotName + '</div>'; - html += '</a></li>'; - } - } else { - html += ''; - } - $("#depotList").html(html); - } - - function grainDetail(i) { - if (contentList[i].depotType == '01') { - //骞虫埧浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-bungalow.html", - id: "grain-detail-bungalow", - extras: { - depotType: contentList[i].depotType, - depotId: contentList[i].depotId, - depotName: contentList[i].depotName - } - }) - } else if (contentList[i].depotType == '02' || contentList[i].depotType == '04') { - //鍦嗙瓛浠撶伯鎯� - mui.openWindow({ - url: "grain-detail-drum.html", - id: "grain-detail-drum", - extras: { - depotType: contentList[i].depotType, - depotId: contentList[i].depotId, - depotName: contentList[i].depotName - } - }) - } else { - mui.alert('鏆傛棤鏉冮檺锛�', '鎻愮ず',["纭畾"],function(){},"div"); - //娌圭綈浠撶伯鎯� - // mui.openWindow({ - // url: "grain-detail-oil.html", - // id: "grain-detail-oil", - // extras: { - // depotType: contentList[i].depotType, - // depotId: contentList[i].depotId, - // depotName: contentList[i].depotName - // } - // }) - } - } - </script> - </body> -</html> diff --git a/igds-app/grain-manage.html b/igds-app/grain-manage.html deleted file mode 100644 index c676344..0000000 --- a/igds-app/grain-manage.html +++ /dev/null @@ -1,99 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>绮儏绠$悊</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: auto; - } - .mui-content>.mui-table-view:first-child { - margin-top: 0px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - border-right: none; - border-bottom: none; - width: 33.3333%; - } - .mui-table-view-cell a{ - background: #FFFFFF; - border-radius: 6px; - } - .img_ico{ - width: 55px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">绮儏绠$悊</h1> - </header> - <div class="mui-content"> - - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 10px;"> - <a href="javascript:void(0)" onclick="toView('grain-listDepot')"> - <img class="img_ico" src="./images/ico_grain_jc.png"> - <div class="mui-media-body">瀹炴椂绮儏</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('grain-history-list')"> - <img class="img_ico" src="./images/ico_grain_ls.png"> - <div class="mui-media-body">鍘嗗彶鏁版嵁</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 10px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('0')"> - <img class="img_ico" src="./images/ico_grain_pl.png"> - <div class="mui-media-body">鎵归噺妫�娴�</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 10px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('grain-oil-height')"> - <img class="img_ico" src="./images/ico_grain_lw.png"> - <div class="mui-media-body">鏂欎綅鎬昏</div> - </a> - </li> - </ul> - - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - - function toView(tag) { - if (tag == '0') { - mui.alert('鏃犳潈鏌ョ湅姝ゅ姛鑳斤紒', '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - var url = tag + ".html"; - mui.openWindow({ - url: url, - id: tag, - }) - } - </script> - </body> -</html> diff --git a/igds-app/grain-oil-height.html b/igds-app/grain-oil-height.html deleted file mode 100644 index 7ce09c1..0000000 --- a/igds-app/grain-oil-height.html +++ /dev/null @@ -1,197 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鏂欎綅鎬昏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - /*姘斾綋妫�娴�-浠撳簱鍒楄〃*/ - .gas_depot { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .gas_depot_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .gas_depot_body { - padding-left: 15px; - } - - .gas_depot_body table { - width: 100%; - } - - .gas_depot_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .gas_depot_img { - width: 8px; - margin-right: 3px; - } - - .gas_depot_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .gas_depot_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鏂欎綅鎬昏</h1> - </header> - <div class="mui-content"> - <div id="dataList"> - <!-- <div class="gas_depot"> - <div class="gas_depot_title"></div> - <div class="gas_depot_body"> - <table> - <tr class="gas_depot_tr"> - <td class="gas_depot_one">浠撳簱鍚嶇О锛�</td> - <td class="gas_depot_two">1鍙蜂粨</td> - </tr> - <tr> - <td class="gas_depot_one">淇濈鍛橈細</td> - <td class="gas_depot_two">寮犳案娑�</td> - </tr> - <tr> - <td class="gas_depot_one">寤虹瓚楂樺害锛�</td> - <td class="gas_depot_two">23.0 绫�</td> - </tr> - <tr> - <td class="gas_depot_one">鐗╀綅楂樺害锛�</td> - <td class="gas_depot_two">19.03 绫�</td> - </tr> - <tr> - <td class="gas_depot_one">璁$畻鍌ㄩ噺锛�</td> - <td class="gas_depot_two">1187139.8 KG</td> - </tr> - <tr style="border-bottom: 0 #efefef solid;"> - <td class="gas_depot_one">妫�娴嬫椂闂达細</td> - <td class="gas_depot_two">2022-01-01 01:01:01</td> - </tr> - </table> - </div> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - var url; //鎺ュ彛璺緞 - var heightList; //姘斾綋浠撳簱鍒楄〃闆嗗悎 - var data = { - "interfaceId": "5311", - "sign": "10311", - "outId": "10311", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - } - }; - mui.init() - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getHeightList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getHeightList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - heightList = result.data; - if (heightList != null && heightList.length > 0) { - renderHeightList(); - } else { - mui.alert("鏆傛棤鏁版嵁锛�", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderHeightList() { - var html = ''; - $.each(heightList, function(index, item) { - var depot = item.depotData; - html += '<div class="gas_depot"><div class="gas_depot_title"></div><div class="gas_depot_body"><table>'; - - html += '<tr class="gas_depot_tr"><td class="gas_depot_one">浠撳簱鍚嶇О锛�</td><td class="gas_depot_two">' + - (depot.name == null ? "":depot.name) + '</td></tr>'; - - html += '<tr><td class="gas_depot_one">淇濈鍛橈細</td><td class="gas_depot_two">' + - (depot.storeKeeperName == null ? "--":depot.storeKeeperName) + '</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">寤虹瓚楂樺害锛�</td><td class="gas_depot_two">' + - (item.depotHeight == null ? "--" : item.depotHeight) + ' 绫�</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">鐗╀綅楂樺害锛�</td><td class="gas_depot_two">' + - (item.oilHeight == null ? "--":item.oilHeight) + ' 绫�</td><td></td></tr>'; - - html += '<tr><td class="gas_depot_one">璁$畻鍌ㄩ噺锛�</td><td class="gas_depot_two">' + - (item.storage == null ? "--" : (item.storage).toFixed(1)) + ' KG</td><td></td></tr>'; - - html += '<tr style="border-bottom: 0 #efefef solid;"><td class="gas_depot_one">妫�娴嬫椂闂达細</td>' + - '<td class="gas_depot_two">' + (item.receiveDate == null ? '鏃犳娴嬭褰�' : item.receiveDate) + '</td><td></td></tr>'; - html += '</table></div></div>'; - }) - $("#dataList").html(html); - } - - </script> - </body> -</html> diff --git a/igds-app/home.html b/igds-app/home.html deleted file mode 100644 index 22c98da..0000000 --- a/igds-app/home.html +++ /dev/null @@ -1,264 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鏅烘収绮簱鏈嶅姟</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-content{ - margin: 0 5px; - } - .mui-content-padded{ - margin: auto; - } - .mui-content-padded img{ - width: 100%; - height: 180px; - } - .mui-content-padded p{ - font-size: 18px; - margin-bottom: -4px; - color: #000000; - } - .mui-grid-view.mui-grid-9 { - margin: auto; - background-color: #FFFFFF; - border-left: none; - border-top: none; - } - .mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body { - margin-top: 8px; - line-height: 17px; - height: 17px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - padding: 10px 10px; - border-bottom: none; - border-top: 1px solid #eee; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell>a:not(.mui-btn) { - padding: 8px 0; - } - .mui-col-xs-4 { - width: 33.333333%; - } - .mui-icon-list, - .mui-icon-chat, - .mui-icon-contact, - .mui-icon-gear, - .mui-icon-close{ - color: #FFFFFF; - } - .mui-grid-view.mui-grid-9 .mui-media .mui-icon { - font-size: 2.4em; - position: relative; - border-radius: 50px; - padding: 12px; - } - .img_ico{ - width: 60px; - height: auto; - display: block; - margin: auto; - } - .title{ - background-color: #FFFFFF; - display: block; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - } - .warn{ - background-color: #2e88e8; - width: 60px; - height: 60px; - border-radius: 50px; - margin-left: 20%; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <h1 class="mui-title">鏅烘収绮簱鏈嶅姟</h1> - </header> - <div class="mui-content"> - - <div class="mui-content-padded"> - <p> - <img src="./images/ad.png" /> - </p> - </div> - <!-- <div> - <div class="title"><strong>涓夌淮鍙</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('0')"> - <img class="img_ico" src="./images/ico_qjzs.png"> - <div class="mui-media-body">鍏ㄦ櫙灞曠ず</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style="border-right: none;"> - </li> - </ul> - </div> --> - <div style="margin-top: 5px;"> - <div class="title"><strong>缁煎悎涓氬姟</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style=""> - <a href="javascript:void(0)" onclick="getView('comprehensive-display')"> - <img class="img_ico" src="./images/ico_zhzs.png"> - <div class="mui-media-body">缁煎悎灞曠ず</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('monitor')"> - <img class="img_ico" src="./images/ico_spjk.png"> - <div class="mui-media-body">瑙嗛鐩戞帶</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('patrol-manage')"> - <img class="img_ico" src="./images/ico_xungeng.png"> - <div class="mui-media-body">宸℃洿绠$悊</div> - </a> - </li> - <!-- <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('storage-manage')"> - <img class="img_ico" src="./images/ico_ccgl.png"> - <div class="mui-media-body">瀛樺偍绠$悊</div> - </a> - </li> --> - <li> - - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('quality-manage')"> - <img class="img_ico" src="./images/ico_zlgl.png"> - <div class="mui-media-body">璐ㄩ噺绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('order-manage')"> - <img class="img_ico" src="./images/ico_order.png"> - <div class="mui-media-body">宸ュ崟绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('inout-manage')"> - <img class="img_ico" src="./images/ico_crk.png"> - <div class="mui-media-body">鍑哄叆搴撶鐞�</div> - </a> - </li> - </ul> - </div> - <div style="margin-top: 5px;"> - <div class="title"><strong>浠撳偍涓氬姟</strong></div> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('grain-manage')"> - <img class="img_ico" src="./images/ico_lqjc.png"> - <div class="mui-media-body">绮儏绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('gas-display')"> - <img class="img_ico" src="./images/ico_qtjc.png"> - <div class="mui-media-body">姘斾綋绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style="border-right: none;"> - <a href="javascript:void(0)" onclick="getView('pest-display')"> - <img class="img_ico" src="./images/ico_chjc.png"> - <div class="mui-media-body">铏绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getView('device-wind-manage')"> - <img class="img_ico" src="./images/ico_tfkz.png"> - <div class="mui-media-body">閫氶绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getDeviceView('device-control-gas','姘旇皟绠$悊')"> - <img class="img_ico" src="./images/ico_qtkz.png"> - <div class="mui-media-body">姘旇皟绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style="border-right: none;"> - <a href="javascript:void(0)" onclick="getDeviceView('device-control-air','娓╂帶绠$悊')"> - <img class="img_ico" src="./images/ico_wkkz.png"> - <div class="mui-media-body">娓╂帶绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"> - <a href="javascript:void(0)" onclick="getDeviceView('device-control-door','闂ㄧ绠$悊')"> - <img class="img_ico" src="./images/ico_mjgl.png"> - <div class="mui-media-body">闂ㄧ绠$悊</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style="border-bottom: 1px solid #eee;"> - <a href="javascript:void(0)" onclick="getView('energy-manage')"> - <img class="img_ico" src="./images/ico_nhzs.png"> - <div class="mui-media-body">鑳借�楃鐞�</div> - </a> - </li> - <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" style="border-bottom: 1px solid #eee;"> - <a href="javascript:void(0)" onclick="getWeatherView()"> - <img class="img_ico" src="./images/ico_qxxx.png"> - <div class="mui-media-body">姘旇薄淇℃伅</div> - </a> - </li> - </ul> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - - //璺宠浆鍏朵粬涓氬姟妯″潡 - function getView(tag) { - if (tag == '0') { - mui.alert('鏃犳潈鏌ョ湅姝ゅ姛鑳斤紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - var url = tag + ".html"; - mui.openWindow({ - url: url, - id: tag - }) - } - - //璺宠浆姘旇薄椤甸潰 - function getWeatherView() { - mui.openWindow({ - url: "./weather.html?url=" + "https://widget-page.heweather.net/h5/index.html?md=03456&bg=1&lc=accu&key=3cb8c045697b43c2b858751a145464aa&demo=true&v=_1617326246190&demo=true", - id: 'weather' - }) - } - - //璺宠浆璁惧鎿嶄綔椤甸潰 - function getDeviceView(tag, typeName) { - mui.openWindow({ - url: "device-listDepot.html", - id: "device-listDepot", - extras: { - tag: tag, - typeName: typeName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/index-100.html b/igds-app/index-100.html deleted file mode 100644 index 5f68516..0000000 --- a/igds-app/index-100.html +++ /dev/null @@ -1,54 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title></title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - </head> - <body> - <nav class="mui-bar mui-bar-tab"> - <a class="mui-tab-item mui-active" href="home.html"> - <span class="mui-icon mui-icon-home"></span> - <span class="mui-tab-label">棣栭〉</span> - </a> - <a class="mui-tab-item" href="inout-real-time-main.html"> - <span class="mui-icon mui-icon-email"></span> - <span class="mui-tab-label">瀹炴椂鍑哄叆搴�</span> - </a> - <a class="mui-tab-item" href="setting.html"> - <span class="mui-icon mui-icon-gear"></span> - <span class="mui-tab-label">璁剧疆</span> - </a> - </nav> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - mui.plusReady(function() { - var pages = ['home.html', 'inout-real-time-main.html', 'setting.html']; - var arr = document.getElementsByClassName("mui-tab-item") - var styles = { - top: "0px", - bottom: "51px" - } - var pageArr = []; - var slef = plus.webview.currentWebview(); - for (var i = 0; i < arr.length; i++) { - var page = plus.webview.create(pages[i], pages[i], styles); - pageArr.push(page); - ! function(i) { - arr[i].addEventListener("tap", function() { - for (var j = 0; j < pageArr.length; j++) { - if (j != i) pageArr[j].hide(); - else pageArr[j].show(); - } - slef.append(pageArr[i]); - }) - }(i); - } - mui.trigger(arr[0], "tap"); - }); - </script> - </body> -</html> diff --git a/igds-app/inout-real-in-sub.html b/igds-app/inout-real-in-sub.html deleted file mode 100644 index a001a96..0000000 --- a/igds-app/inout-real-in-sub.html +++ /dev/null @@ -1,194 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍏ュ簱</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .inout_title{ - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - .inout_table { - margin-bottom: 6px; - } - .inout_table table { - width: 100%; - background-color: #fff !important - } - .inout_table tr { - font-size: 13px; - text-align: center; - line-height: 30px; - } - .inout_table th { - font-weight: 400; - min-width: 42px; - text-align: center; - } - .inout_table td { - min-width: 42px; - text-align: center; - padding: 0 2px; - } - .right{ - border-right: 2px #efefef solid !important; - } - .back{ - background: #bfdbf9; - } - </style> - </head> - <body> - <!--涓嬫媺鍒锋柊瀹瑰櫒--> - <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> - <div class="mui-scroll"> - <!--鍏ュ簱瀹炴椂淇℃伅--> - <div class="inout_title"><strong id="title2">瀹炴椂淇℃伅</strong><span style="color: #333333;"> (涓嬫媺鍒锋柊)</span></div> - <div style="width: 100%;background: #FFFFFF;height: 35px;border-bottom: 1px #efefef solid;padding: 5px 0 5px 15px;"> - <h3 style="font-size: 16px;font-weight: 400;"> - <span>鏇存柊鏃堕棿锛�</span> - <span id="updateTime"></span> - </h3> - </div> - <div class="inout_table"> - <table> - <thead> - <tr> - <th class="right">鍗曟嵁鍙�</th> - <th class="right">杞︾墝鍙�</th> - <th class="right">绫诲瀷</th> - <th class="right">褰撳墠娴佺▼</th> - <th>鐩爣浠撳簱</th> - </tr> - </thead> - <tbody id="inoutList"> - <!-- <tr class="back"> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr>--> - </tbody> - </table> - </div> - </div> - </div> - - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init({ - pullRefresh: { - container: '#pullrefresh', - down: { - callback: pullRefresh - } - // ,up: { - // contentrefresh: '姝e湪鍔犺浇...', - // callback: pullRefresh - // } - } - }); - - var url; - var time; - var inoutRealList; - var data = { - "interfaceId": "5203", - "sign": "10203", - "outId": "10203", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - var curr = plus.webview.currentWebview(); - inoutType = curr.type; - data.tokenAuth = user.tokenAuth; - pullRefresh() - }) - - /** - * 涓嬫媺鎴栬�呭埛鏂板叿浣撲笟鍔″疄鐜� - */ - function pullRefresh() { - setTimeout(function() { - getInoutList(); - }, 1000); - } - - function getInoutList() { - inoutRealList = null; - time = null; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - time = result.respDateTime; - if (result.code == "0000") { - inoutRealList = result.data; - renderInout(); - } else { - renderInout(); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //娓叉煋椤甸潰 - function renderInout() { - if (time) { - $("#updateTime").html(time); - } - //鏇存柊瀹炴椂娴佹按淇℃伅 - var list = inoutRealList.listInout; - var html = ''; - var count = 0; - if (list != null && list.length > 0) { - $.each(list, function(index, item) { - if (item.type == "IN") { - if (count % 2 == 0) { - html += '<tr class="back">'; - } else { - html += '<tr>'; - } - html += '<td class="right">' + item.id.substring(6) + '</td>'; - html += '<td class="right">' + item.plateNum + '</td>'; - html += '<td class="right">' + item.typeName + '</td>'; - html += '<td class="right">' + item.progressName + '</td>'; - html += '<td>' + item.depotName + '</td></tr>'; - count++; - } - }) - - mui.toast("鏁版嵁宸插埛鏂帮紒"); - }else{ - html += '<tr><td class="back" colspan="5">鏆傛棤淇℃伅</td></tr>'; - mui.toast("宸插埛鏂帮紝鏆傛棤淇℃伅锛�"); - } - $("#inoutList").html(html); - mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); - // mui('#pullrefresh').pullRefresh().endPullupToRefresh(); - } - </script> - </body> -</html> diff --git a/igds-app/inout-real-in.html b/igds-app/inout-real-in.html deleted file mode 100644 index 88cb39c..0000000 --- a/igds-app/inout-real-in.html +++ /dev/null @@ -1,54 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍏ュ簱</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - /* 鏍囬鏍忔牱寮� */ - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - /* 涓讳綋鍐呭鏍峰紡 */ - .mui-content{ - width: 97%; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瀹炴椂鍏ュ簱</h1> - </header> - <div class="mui-content"></div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - //鍚敤鍙屽嚮鐩戝惉 - mui.init({ - gestureConfig:{ - doubletap:true - }, - subpages:[{ - url:'inout-real-in-sub.html', - id:'inout-real-in-sub', - styles:{ - top: '45px', - bottom: '0px', - } - }] - }); - </script> - </body> -</html> diff --git a/igds-app/inout-real-out-sub.html b/igds-app/inout-real-out-sub.html deleted file mode 100644 index ae1f7cf..0000000 --- a/igds-app/inout-real-out-sub.html +++ /dev/null @@ -1,194 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍑哄簱</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .inout_title{ - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - .inout_table { - margin-bottom: 6px; - } - .inout_table table { - width: 100%; - background-color: #fff !important - } - .inout_table tr { - font-size: 13px; - text-align: center; - line-height: 30px; - } - .inout_table th { - font-weight: 400; - min-width: 42px; - text-align: center; - } - .inout_table td { - min-width: 42px; - text-align: center; - padding: 0 2px; - } - .right{ - border-right: 2px #efefef solid !important; - } - .back{ - background: #bfdbf9; - } - </style> - </head> - <body> - <!--涓嬫媺鍒锋柊瀹瑰櫒--> - <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> - <div class="mui-scroll"> - <!--鍏ュ簱瀹炴椂淇℃伅--> - <div class="inout_title"><strong id="title2">瀹炴椂淇℃伅</strong><span style="color: #333333;"> (涓嬫媺鍒锋柊)</span></div> - <div style="width: 100%;background: #FFFFFF;height: 35px;border-bottom: 1px #efefef solid;padding: 5px 0 5px 15px;"> - <h3 style="font-size: 16px;font-weight: 400;"> - <span>鏇存柊鏃堕棿锛�</span> - <span id="updateTime"></span> - </h3> - </div> - <div class="inout_table"> - <table> - <thead> - <tr> - <th class="right">鍗曟嵁鍙�</th> - <th class="right">杞︾墝鍙�</th> - <th class="right">绫诲瀷</th> - <th class="right">褰撳墠娴佺▼</th> - <th>鐩爣浠撳簱</th> - </tr> - </thead> - <tbody id="inoutList"> - <!-- <tr class="back"> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr>--> - </tbody> - </table> - </div> - </div> - </div> - - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init({ - pullRefresh: { - container: '#pullrefresh', - down: { - callback: pullRefresh - } - // ,up: { - // contentrefresh: '姝e湪鍔犺浇...', - // callback: pullRefresh - // } - } - }); - - var url; - var time; - var inoutRealList; - var data = { - "interfaceId": "5203", - "sign": "10203", - "outId": "10203", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - var curr = plus.webview.currentWebview(); - inoutType = curr.type; - data.tokenAuth = user.tokenAuth; - pullRefresh() - }) - - /** - * 涓嬫媺鎴栬�呭埛鏂板叿浣撲笟鍔″疄鐜� - */ - function pullRefresh() { - setTimeout(function() { - getInoutList(); - }, 1000); - } - - function getInoutList() { - inoutRealList = null; - time = null; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - time = result.respDateTime; - if (result.code == "0000") { - inoutRealList = result.data; - renderInout(); - } else { - renderInout(); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //娓叉煋椤甸潰 - function renderInout() { - if (time) { - $("#updateTime").html(time); - } - //鏇存柊瀹炴椂娴佹按淇℃伅 - var list = inoutRealList.listInout; - var html = ''; - var count = 0; - if (list != null && list.length > 0) { - $.each(list, function(index, item) { - if (item.type == "OUT") { - if (count % 2 == 0) { - html += '<tr class="back">'; - } else { - html += '<tr>'; - } - html += '<td class="right">' + item.id.substring(6) + '</td>'; - html += '<td class="right">' + item.plateNum + '</td>'; - html += '<td class="right">' + item.typeName + '</td>'; - html += '<td class="right">' + item.progressName + '</td>'; - html += '<td>' + item.depotName + '</td></tr>'; - count++; - } - }) - - mui.toast("鏁版嵁宸插埛鏂帮紒"); - }else{ - html += '<tr><td class="back" colspan="5">鏆傛棤淇℃伅</td></tr>'; - mui.toast("宸插埛鏂帮紝鏆傛棤淇℃伅锛�"); - } - $("#inoutList").html(html); - mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); - // mui('#pullrefresh').pullRefresh().endPullupToRefresh(); - } - </script> - </body> -</html> diff --git a/igds-app/inout-real-out.html b/igds-app/inout-real-out.html deleted file mode 100644 index 210957c..0000000 --- a/igds-app/inout-real-out.html +++ /dev/null @@ -1,54 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍏ュ簱</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - /* 鏍囬鏍忔牱寮� */ - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - /* 涓讳綋鍐呭鏍峰紡 */ - .mui-content{ - width: 97%; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瀹炴椂鍑哄簱</h1> - </header> - <div class="mui-content"></div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - //鍚敤鍙屽嚮鐩戝惉 - mui.init({ - gestureConfig:{ - doubletap:true - }, - subpages:[{ - url:'inout-real-out-sub.html', - id:'inout-real-out-sub', - styles:{ - top: '45px', - bottom: '0px', - } - }] - }); - </script> - </body> -</html> diff --git a/igds-app/inout-real-time-main-a.html b/igds-app/inout-real-time-main-a.html deleted file mode 100644 index 05eb44c..0000000 --- a/igds-app/inout-real-time-main-a.html +++ /dev/null @@ -1,52 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍑哄叆搴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - width: 96%; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a id="tagA" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瀹炴椂鍑哄叆搴�</h1> - </header> - <div class="mui-content"></div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - //鍚敤鍙屽嚮鐩戝惉 - mui.init({ - gestureConfig:{ - doubletap:true - }, - subpages:[{ - url:'inout-real-time-sub-a.html', - id:'inout-real-time-sub-a', - styles:{ - top: '45px', - bottom: '0px', - } - }] - }); - </script> - </body> -</html> diff --git a/igds-app/inout-real-time-main.html b/igds-app/inout-real-time-main.html deleted file mode 100644 index 5380679..0000000 --- a/igds-app/inout-real-time-main.html +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍑哄叆搴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - width: 96%; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a id="tagA" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="display: none;"></a> - <h1 class="mui-title">瀹炴椂鍑哄叆搴�</h1> - </header> - <div class="mui-content"></div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - //鍚敤鍙屽嚮鐩戝惉 - mui.init({ - gestureConfig:{ - doubletap:true - }, - subpages:[{ - url:'inout-real-time-sub.html', - id:'inout-real-time-sub', - styles:{ - top: '45px', - bottom: '0px', - } - }] - }); - mui.plusReady(function() { - var curr = plus.webview.currentWebview(); - if (curr.type == "manage") { - $('#tagA').css('display', 'flex'); //鏄剧ず鏍囬涓繑鍥炵澶� - } - }) - </script> - </body> -</html> diff --git a/igds-app/inout-real-time-sub-a.html b/igds-app/inout-real-time-sub-a.html deleted file mode 100644 index 094a037..0000000 --- a/igds-app/inout-real-time-sub-a.html +++ /dev/null @@ -1,318 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍑哄叆搴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - - /*瀹炴椂鍑哄叆搴撲俊鎭�*/ - .inout_real{ - display: block; - background: #fff; - border-top: 1px rgb(236, 234, 244) solid; - border-bottom: rgb(236, 234, 244) solid; - } - .inout_real .inout_title{ - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - .inout_real .inout_body1{ - width: 50%; - float: left; - padding: 12px 0; - border-right: 1px rgb(236, 234, 244) solid; - border-bottom: 1px rgb(236, 234, 244) solid; - } - .inout_real .inout_body2{ - height: 44px; - } - .inout_real .inout_body2 h3{ - font-size: 16px; - } - .inout_real .t1{ - font-size: 20px; - } - .inout_real .t2{ - font-size: 16px; - font-weight: 400; - - } - .inout_real .t3{ - float:left; - width: 50%; - text-align: center; - margin-top: 10px; - } - .inout_real .t4{ - float:right; - width: 50%; - text-align: center; - margin-top: 10px; - } - .inout_in1{ - float: left; - width: 50%; - text-align: center - } - .inout_in2{ - float: right; - width: 50%; - text-align: center - } - .inout_out1{ - float: left; - width: 50%; - text-align: center - } - .inout_out2{ - float: right; - width: 50%; - text-align: center - } - .inout_title1{ - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - - .inout_table { - margin-bottom: 6px; - } - - .inout_table table { - width: 100%; - background-color: #fff !important - } - - .inout_table tr { - font-size: 13px; - text-align: center; - line-height: 30px; - } - - .inout_table th { - font-weight: 400; - min-width: 42px; - text-align: center; - } - .inout_table td { - min-width: 42px; - text-align: center; - padding: 0 2px; - } - .right{ - border-right: 2px #efefef solid !important; - } - .back{ - background: #bfdbf9; - } - - </style> - </head> - <body> - <!--涓嬫媺鍒锋柊瀹瑰櫒--> - <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> - <div class="mui-scroll"> - <!-- 缁熻淇℃伅--> - <div class="inout_real"> - <div class="inout_title"><strong>缁熻淇℃伅</strong><span style="color: #333333;"> (涓嬫媺鍒锋柊)</span></div> - <div style="height: 76px;width: 100%;"> - <div class="inout_body1"> - <div class="inout_in1"> - <h3 class="t1"><span id="inSumNum"></span>杈�</h3> - <h3 class="t2">鍏ュ簱鐧昏</h3> - </div> - <div class="inout_in2"> - <h3 class="t1"><span id="inCompleteNum"></span>杈�</h3> - <h3 class="t2">鍏ュ簱瀹屾垚</h3> - </div> - </div> - <div class="inout_body1"> - <div class="inout_out1"> - <h3 class="t1"><span id="outSumNum"></span>杈�</h3> - <h3 class="t2">鍑哄簱鐧昏</h3> - </div> - <div class="inout_out2"> - <h3 class="t1"><span id="outCompleteNum"></span>杈�</h3> - <h3 class="t2">鍑哄簱瀹屾垚</h3> - </div> - </div> - </div> - <div class="inout_body2"> - <div class="t3"> - <h3> - <span style="font-weight: 400;">鍏ュ簱瀹屾垚鐜�:</span> - <span id="perInComplete">0%</span> - </h3> - </div> - <div class="t4"> - <h3> - <span style="font-weight: 400;">鍑哄簱瀹屾垚鐜�:</span> - <span id="perOutComplete">0%</span> - </h3> - </div> - </div> - <div style="width: 100%;height: 40px;border-top: 1px #efefef solid;padding: 8px 0 8px 15px;"> - <h3 style="font-size: 16px;font-weight: 400;"> - <span>鏇存柊鏃堕棿锛�</span> - <span id="updateTime"></span> - </h3> - </div> - </div> - <!--瀹炴椂淇℃伅--> - <div class="inout_title1"><strong>瀹炴椂淇℃伅</strong></div> - <div class="inout_table"> - <table> - <thead> - <tr> - <th class="right">鍗曟嵁鍙�</th> - <th class="right">杞︾墝鍙�</th> - <th class="right">绫诲瀷</th> - <th class="right">褰撳墠娴佺▼</th> - <th>鐩爣浠撳簱</th> - </tr> - </thead> - <tbody id="inoutList"> - <!-- <tr class="back"> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr> - <tr> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr> --> - </tbody> - </table> - </div> - </div> - </div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init({ - pullRefresh: { - container: '#pullrefresh', - down: { - callback: pullRefresh - } - // ,up: { - // contentrefresh: '姝e湪鍔犺浇...', - // callback: pullRefresh - // } - } - }); - - var url; - var inoutRealList; - var time; - var data = { - "interfaceId": "5203", - "sign": "10203", - "outId": "10203", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - data.tokenAuth = user.tokenAuth; - pullRefresh() - }) - /** - * 涓嬫媺鎴栬�呭埛鏂板叿浣撲笟鍔″疄鐜� - */ - function pullRefresh() { - setTimeout(function() { - getInoutList(); - }, 1000); - } - - function getInoutList() { - inoutRealList = null; - time = null; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - time = result.respDateTime; - if (result.code == "0000") { - inoutRealList = result.data; - renderInout(); - } else { - renderInout(); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //娓叉煋椤甸潰 - function renderInout() { - //鏇存柊缁熻淇℃伅 - $("#inSumNum").html(inoutRealList.inSumNum); - $("#inCompleteNum").html(inoutRealList.inCompleteNum); - $("#outSumNum").html(inoutRealList.outSumNum); - $("#outCompleteNum").html(inoutRealList.outCompleteNum); - if (inoutRealList.perInComplete) { - $("#perInComplete").html(inoutRealList.perInComplete); - } - if (inoutRealList.perOutComplete) { - $("#perOutComplete").html(inoutRealList.perOutComplete); - } - if (time) { - $("#updateTime").html(time); - } - //鏇存柊瀹炴椂娴佹按淇℃伅 - var list = inoutRealList.listInout; - var html = ''; - if (list != null && list.length > 0) { - $.each(list, function(index, item) { - if (index % 2 == 0) { - html += '<tr class="back">'; - } else { - html += '<tr>'; - } - html += '<td class="right">' + item.id.substring(6) + '</td>'; - html += '<td class="right">' + item.plateNum + '</td>'; - html += '<td class="right">' + item.typeName + '</td>'; - html += '<td class="right">' + item.progressName + '</td>'; - html += '<td>' + item.depotName + '</td></tr>'; - }) - mui.toast("鏁版嵁宸插埛鏂帮紒"); - } else { - html += '<tr><td class="back" colspan="5">鏆傛棤鍑哄叆搴撲俊鎭�</td></tr>'; - mui.toast("宸插埛鏂帮紝鏆傛棤鍑哄叆搴撲俊鎭紒"); - } - $("#inoutList").html(html); - mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); - // mui('#pullrefresh').pullRefresh().endPullupToRefresh(); - } - </script> - </body> -</html> diff --git a/igds-app/inout-real-time-sub.html b/igds-app/inout-real-time-sub.html deleted file mode 100644 index cc2b364..0000000 --- a/igds-app/inout-real-time-sub.html +++ /dev/null @@ -1,317 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀹炴椂鍑哄叆搴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - - /*瀹炴椂鍑哄叆搴撲俊鎭�*/ - .inout_real{ - display: block; - background: #fff; - border-top: 1px rgb(236, 234, 244) solid; - border-bottom: rgb(236, 234, 244) solid; - } - .inout_real .inout_title{ - display: block; - font-size: 16px; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - .inout_real .inout_body1{ - width: 50%; - float: left; - padding: 12px 0; - border-right: 1px rgb(236, 234, 244) solid; - border-bottom: 1px rgb(236, 234, 244) solid; - } - .inout_real .inout_body2{ - height: 44px; - } - .inout_real .inout_body2 h3{ - font-size: 16px; - } - .inout_real .t1{ - font-size: 20px; - } - .inout_real .t2{ - font-size: 16px; - font-weight: 400; - - } - .inout_real .t3{ - float:left; - width: 50%; - text-align: center; - margin-top: 10px; - } - .inout_real .t4{ - float:right; - width: 50%; - text-align: center; - margin-top: 10px; - } - .inout_in1{ - float: left; - width: 50%; - text-align: center - } - .inout_in2{ - float: right; - width: 50%; - text-align: center - } - .inout_out1{ - float: left; - width: 50%; - text-align: center - } - .inout_out2{ - float: right; - width: 50%; - text-align: center - } - .inout_title1{ - display: block; - font-size: 16px; - background: #fff; - padding: 0 15px; - box-sizing: border-box; - color: #245ca7; - height: 40px; - line-height: 40px; - border-bottom: 1px #efefef solid; - } - - .inout_table { - margin-bottom: 6px; - } - - .inout_table table { - width: 100%; - background-color: #fff !important - } - - .inout_table tr { - font-size: 13px; - text-align: center; - line-height: 30px; - } - - .inout_table th { - font-weight: 400; - min-width: 42px; - text-align: center; - } - .inout_table td { - min-width: 42px; - text-align: center; - padding: 0 2px; - } - .right{ - border-right: 2px #efefef solid !important; - } - .back{ - background: #bfdbf9; - } - </style> - </head> - <body> - <!--涓嬫媺鍒锋柊瀹瑰櫒--> - <div id="pullrefresh" class="mui-content mui-scroll-wrapper"> - <div class="mui-scroll"> - <!-- 缁熻淇℃伅--> - <div class="inout_real"> - <div class="inout_title"><strong>缁熻淇℃伅</strong><span style="color: #333333;"> (涓嬫媺鍒锋柊)</span></div> - <div style="height: 76px;width: 100%;"> - <div class="inout_body1"> - <div class="inout_in1"> - <h3 class="t1"><span id="inSumNum"></span>杈�</h3> - <h3 class="t2">鍏ュ簱鐧昏</h3> - </div> - <div class="inout_in2"> - <h3 class="t1"><span id="inCompleteNum"></span>杈�</h3> - <h3 class="t2">鍏ュ簱瀹屾垚</h3> - </div> - </div> - <div class="inout_body1"> - <div class="inout_out1"> - <h3 class="t1"><span id="outSumNum"></span>杈�</h3> - <h3 class="t2">鍑哄簱鐧昏</h3> - </div> - <div class="inout_out2"> - <h3 class="t1"><span id="outCompleteNum"></span>杈�</h3> - <h3 class="t2">鍑哄簱瀹屾垚</h3> - </div> - </div> - </div> - <div class="inout_body2"> - <div class="t3"> - <h3> - <span style="font-weight: 400;">鍏ュ簱瀹屾垚鐜�:</span> - <span id="perInComplete">0%</span> - </h3> - </div> - <div class="t4"> - <h3> - <span style="font-weight: 400;">鍑哄簱瀹屾垚鐜�:</span> - <span id="perOutComplete">0%</span> - </h3> - </div> - </div> - <div style="width: 100%;height: 40px;border-top: 1px #efefef solid;padding: 8px 0 8px 15px;"> - <h3 style="font-size: 16px;font-weight: 400;"> - <span>鏇存柊鏃堕棿锛�</span> - <span id="updateTime"></span> - </h3> - </div> - </div> - <!--瀹炴椂淇℃伅--> - <div class="inout_title1"><strong>瀹炴椂淇℃伅</strong></div> - <div class="inout_table"> - <table> - <thead> - <tr> - <th class="right">鍗曟嵁鍙�</th> - <th class="right">杞︾墝鍙�</th> - <th class="right">绫诲瀷</th> - <th class="right">褰撳墠娴佺▼</th> - <th>鐩爣浠撳簱</th> - </tr> - </thead> - <tbody id="inoutList"> - <!-- <tr class="back"> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr> - <tr> - <td class="right">03180001</td> - <td class="right">璞獳12BC5</td> - <td class="right">鍏ュ簱</td> - <td class="right">鍊间粨</td> - <td>43鍙蜂粨</td> - </tr> --> - </tbody> - </table> - </div> - </div> - </div> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init({ - pullRefresh: { - container: '#pullrefresh', - down: { - callback: pullRefresh - } - // ,up: { - // contentrefresh: '姝e湪鍔犺浇...', - // callback: pullRefresh - // } - } - }); - - var url; - var inoutRealList; - var time; - var data = { - "interfaceId": "5203", - "sign": "10203", - "outId": "10203", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - url = user.url + "/api-phone/gateway"; - data.tokenAuth = user.tokenAuth; - }) - /** - * 涓嬫媺鎴栬�呭埛鏂板叿浣撲笟鍔″疄鐜� - */ - function pullRefresh() { - setTimeout(function() { - getInoutList(); - }, 1000); - } - - function getInoutList() { - inoutRealList = null; - time = null; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - time = result.respDateTime; - if (result.code == "0000") { - inoutRealList = result.data; - renderInout(); - } else { - renderInout(); - } - }, - error: function() { - mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div") - } - }) - } - - //娓叉煋椤甸潰 - function renderInout() { - //鏇存柊缁熻淇℃伅 - $("#inSumNum").html(inoutRealList.inSumNum); - $("#inCompleteNum").html(inoutRealList.inCompleteNum); - $("#outSumNum").html(inoutRealList.outSumNum); - $("#outCompleteNum").html(inoutRealList.outCompleteNum); - if (inoutRealList.perInComplete) { - $("#perInComplete").html(inoutRealList.perInComplete); - } - if (inoutRealList.perOutComplete) { - $("#perOutComplete").html(inoutRealList.perOutComplete); - } - if (time) { - $("#updateTime").html(time); - } - //鏇存柊瀹炴椂娴佹按淇℃伅 - var list = inoutRealList.listInout; - var html = ''; - if (list != null && list.length > 0) { - $.each(list, function(index, item) { - if (index % 2 == 0) { - html += '<tr class="back">'; - } else { - html += '<tr>'; - } - html += '<td class="right">' + item.id.substring(6) + '</td>'; - html += '<td class="right">' + item.plateNum + '</td>'; - html += '<td class="right">' + item.typeName + '</td>'; - html += '<td class="right">' + item.progressName + '</td>'; - html += '<td>' + item.depotName + '</td></tr>'; - }) - mui.toast("鏁版嵁宸插埛鏂帮紒"); - } else { - html += '<tr><td class="back" colspan="5">鏆傛棤鍑哄叆搴撲俊鎭�</td></tr>'; - mui.toast("宸插埛鏂帮紝鏆傛棤鍑哄叆搴撲俊鎭紒"); - } - $("#inoutList").html(html); - mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); - // mui('#pullrefresh').pullRefresh().endPullupToRefresh(); - - } - </script> - </body> -</html> diff --git a/igds-app/inout-record-in.html b/igds-app/inout-record-in.html deleted file mode 100644 index ba45f3c..0000000 --- a/igds-app/inout-record-in.html +++ /dev/null @@ -1,281 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鍏ュ簱璁板綍</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content-padded { - position: fixed; - z-index: 10; - width: 100%; - margin:unset; - padding: 6px; - border-bottom: 2px solid #0bcece; - } - input[type=text] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - height: 35px; - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - width: 75%; - } - .sousuo{ - font-size: 16px; - background:#0277f7; - color: #fff; - border-radius: 6px; - line-height: 22px; - float: right; - width: 22%; - } - /*鍑哄叆搴撹褰曘�佸�间粨鍒楄〃*/ - .inout_record { - width: 96%; - margin: auto; - margin-top: 53px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - .inout_record_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - margin-top: 5px; - } - .inout_record_body { - padding-left: 15px; - background: #FFFFFF; - } - .inout_record_body table { - width: 100%; - } - .inout_record_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - .inout_record_button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 5px; - margin: 2px 5px; - float: right - } - .inout_record_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - .inout_record_two { - color: black; - font-size: 16px; - } - .heji{ - margin-top: 6px; - border-radius: 6px; - background: #9cc5f3; - } - .heji1{ - color: #222; - font-weight: 700; - font-size: 16px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鍏ュ簱璁板綍</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <input id="dateTime" type="text" onclick="search()" placeholder="璇烽�夋嫨鏃ユ湡妫�绱�" readonly="readonly"> - <button class="sousuo" onclick="getrecordInList()">鏌ヨ</button> - </div> - <div class="inout_record" id="recordList"> - <!-- <div class="inout_record_body heji"> - <table> - <tr style="border-bottom: 0px #efefef solid;"> - <td class="inout_record_one heji1">鍑哄簱鍚堣锛�</td> - <td class="inout_record_two heji1">5000 KG</td> - </tr> - </table> - </div> - <div class="inout_record_title"></div> - <div class="inout_record_body"> - <table> - <tr> - <td class="inout_record_one">鍗曟嵁鍙凤細</td> - <td class="inout_record_two">03110001</td> - </tr> - <tr> - <td class="inout_record_one">杞︾墝鍙凤細</td> - <td class="inout_record_two">璞獳12345</td> - </tr> - <tr> - <td class="inout_record_one">浠撳簱鍚嶇О锛�</td> - <td class="inout_record_two">5鍙蜂粨</td> - </tr> - <tr> - <td class="inout_record_one">绮鍝佺锛�</td> - <td class="inout_record_two">鏃╃奔绋�</td> - </tr> - <tr> - <td class="inout_record_one">缁撶畻閲嶉噺锛�</td> - <td class="inout_record_two">5000 KG</td> - </tr> - <tr style="border-bottom: 0 #efefef solid;"> - <td class="inout_record_one">瀹屾垚鏃堕棿锛�</td> - <td class="inout_record_two">2021-03-11 16:54</td> - </tr> - </table> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var recordInList; //鍏ュ簱璁板綍闆嗗悎 - var dateTime; //閫夋嫨鏃堕棿 - var data = { - "interfaceId": "5201", - "sign": "10201", - "outId": "10201", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "pageSize": 10, - "pageNo": 1, - "date": '' - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - dateTime = getDate(); - data.data.date = dateTime; - $("#dateTime").val(dateTime); - }) - - //鑾峰彇鍏ュ簱璁板綍 - function getrecordInList() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - recordInList = result.data; - if (recordInList != null && recordInList.length > 0) { - renderrecordInList(); - } else { - $("#recordList").html(''); - mui.toast("鏆傛棤鍏ュ簱淇℃伅锛岃閫夋嫨鍏朵粬鏃堕棿鏌ヨ锛�") - } - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //娓叉煋 - function renderrecordInList() { - var html = ''; - var html1 = ''; - var html2 = ''; - $.each(recordInList, function(index, item) { - if (item.plateNum == '鍚堣') { - html1 += '<div class="inout_record_body heji"><table>'; - html1 += '<tr style="border-bottom: 0px #efefef solid;"><td class="inout_record_one heji1">鍏ュ簱鍚堣锛�</td>' + - '<td class="inout_record_two heji1">' + item.settleWeight + ' KG</td></tr>'; - html1 += '</table></div>'; - } else { - html2 += '<div class="inout_record_title"></div><div class="inout_record_body"><table>'; - html2 += '<tr><td class="inout_record_one">鍗曟嵁鍙凤細</td><td class="inout_record_two">' + - item.id + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">杞︾墝鍙凤細</td><td class="inout_record_two">' + - item.plateNum + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">浠撳簱鍚嶇О锛�</td><td class="inout_record_two">' + - item.depotName + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">绮鍝佺锛�</td><td class="inout_record_two">' + - item.foodVarietyName + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">缁撶畻閲嶉噺锛�</td><td class="inout_record_two">' + - item.settleWeight + ' KG</td></tr>'; - html2 += '<tr style="border-bottom: 0 #efefef solid;"><td class="inout_record_one">瀹屾垚鏃堕棿锛�</td>' + - '<td class="inout_record_two">' + item.completeTime + '</td></tr>'; - html2 += '</table></div>'; - } - }) - html = html1 + html2; - $("#recordList").html(html); - } - //榛樿鑾峰彇褰撳ぉ鏃ユ湡(yyyy-MM-dd) - function getDate() { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - return year + "-" + month + "-" + day - } - - //鐩戝惉鏃堕棿閫夋嫨 - function search() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: dateTime //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateTime = y + "-" + m + "-" + d; - $("#dateTime").val(dateTime); - data.data.date = dateTime; - }) - } - </script> - </body> -</html> diff --git a/igds-app/inout-record-out.html b/igds-app/inout-record-out.html deleted file mode 100644 index 1604cf2..0000000 --- a/igds-app/inout-record-out.html +++ /dev/null @@ -1,282 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鍑哄簱璁板綍</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content-padded { - position: fixed; - z-index: 10; - width: 100%; - margin:unset; - padding: 6px; - border-bottom: 2px solid #0bcece; - } - input[type=text] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - height: 35px; - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - width: 75%; - } - .sousuo{ - font-size: 16px; - background:#0277f7; - color: #fff; - border-radius: 6px; - line-height: 22px; - float: right; - width: 22%; - } - /*鍑哄叆搴撹褰曘�佸�间粨鍒楄〃*/ - .inout_record { - width: 96%; - margin: auto; - margin-top: 53px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - .inout_record_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - margin-top: 5px; - } - .inout_record_body { - padding-left: 15px; - background: #FFFFFF; - } - .inout_record_body table { - width: 100%; - } - .inout_record_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - .inout_record_button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 5px; - margin: 2px 5px; - float: right - } - .inout_record_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - .inout_record_two { - color: black; - font-size: 16px; - } - .heji{ - margin-top: 6px; - border-radius: 6px; - background: #9cc5f3; - } - .heji1{ - color: #222; - font-weight: 700; - font-size: 16px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鍑哄簱璁板綍</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <input id="dateTime" type="text" onclick="search()" placeholder="璇烽�夋嫨鏃ユ湡妫�绱�" readonly="readonly"> - <button class="sousuo" onclick="getRecordOutList()">鏌ヨ</button> - </div> - <div class="inout_record" id="recordList"> - <!-- <div class="inout_record_body heji"> - <table> - <tr style="border-bottom: 0px #efefef solid;"> - <td class="inout_record_one heji1">鍑哄簱鍚堣锛�</td> - <td class="inout_record_two heji1">5000 KG</td> - </tr> - </table> - </div> - - <div class="inout_record_title"></div> - <div class="inout_record_body"> - <table> - <tr> - <td class="inout_record_one">鍗曟嵁鍙凤細</td> - <td class="inout_record_two">03110001</td> - </tr> - <tr> - <td class="inout_record_one">杞︾墝鍙凤細</td> - <td class="inout_record_two">璞獳12345</td> - </tr> - <tr> - <td class="inout_record_one">浠撳簱鍚嶇О锛�</td> - <td class="inout_record_two">5鍙蜂粨</td> - </tr> - <tr> - <td class="inout_record_one">绮鍝佺锛�</td> - <td class="inout_record_two">鏃╃奔绋�</td> - </tr> - <tr> - <td class="inout_record_one">缁撶畻閲嶉噺锛�</td> - <td class="inout_record_two">5000 KG</td> - </tr> - <tr style="border-bottom: 0 #efefef solid;"> - <td class="inout_record_one">瀹屾垚鏃堕棿锛�</td> - <td class="inout_record_two">2021-03-11 16:54</td> - </tr> - </table> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var recordOutList; //鍑哄簱璁板綍闆嗗悎 - var dateTime; //閫夋嫨鏃堕棿 - var data = { - "interfaceId": "5202", - "sign": "10202", - "outId": "10202", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "pageSize": 10, - "pageNo": 1, - "date": '' - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - dateTime = getDate(); - data.data.date = dateTime; - $("#dateTime").val(dateTime); - }) - - //鑾峰彇鍑哄簱璁板綍 - function getRecordOutList() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - recordOutList = result.data; - if (recordOutList != null && recordOutList.length > 0) { - renderRecordOutList(); - } else { - $("#recordList").html(''); - mui.toast("鏆傛棤鍑哄簱淇℃伅锛岃閫夋嫨鍏朵粬鏃堕棿鏌ヨ锛�") - } - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //娓叉煋 - function renderRecordOutList() { - var html = ''; - var html1 = ''; - var html2 = ''; - $.each(recordOutList, function(index, item) { - if (item.plateNum == '鍚堣') { - html1 += '<div class="inout_record_body heji"><table>'; - html1 += '<tr style="border-bottom: 0px #efefef solid;"><td class="inout_record_one heji1">鍑哄簱鍚堣锛�</td>' + - '<td class="inout_record_two heji1">' + item.settleWeight + ' KG</td></tr>'; - html1 += '</table></div>'; - } else { - html2 += '<div class="inout_record_title"></div><div class="inout_record_body"><table>'; - html2 += '<tr><td class="inout_record_one">鍗曟嵁鍙凤細</td><td class="inout_record_two">' + - item.id + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">杞︾墝鍙凤細</td><td class="inout_record_two">' + - item.plateNum + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">浠撳簱鍚嶇О锛�</td><td class="inout_record_two">' + - item.depotName + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">绮鍝佺锛�</td><td class="inout_record_two">' + - item.foodVarietyName + '</td></tr>'; - html2 += '<tr><td class="inout_record_one">缁撶畻閲嶉噺锛�</td><td class="inout_record_two">' + - item.settleWeight + ' KG</td></tr>'; - html2 += '<tr style="border-bottom: 0 #efefef solid;"><td class="inout_record_one">瀹屾垚鏃堕棿锛�</td>' + - '<td class="inout_record_two">' + item.completeTime + '</td></tr>'; - html2 += '</table></div>'; - } - }) - html = html1 + html2; - $("#recordList").html(html); - } - //榛樿鑾峰彇褰撳ぉ鏃ユ湡(yyyy-MM-dd) - function getDate() { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - return year + "-" + month + "-" + day - } - - //鐩戝惉鏃堕棿閫夋嫨 - function search() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: dateTime //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - dateTime = y + "-" + m + "-" + d; - $("#dateTime").val(dateTime); - data.data.date = dateTime; - }) - } - </script> - </body> -</html> diff --git a/igds-app/inout-register-in.html b/igds-app/inout-register-in.html deleted file mode 100644 index 60c3ee9..0000000 --- a/igds-app/inout-register-in.html +++ /dev/null @@ -1,175 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鍏ュ簱鐧昏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - /* 鏍囬鏍峰紡 */ - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - /* 涓讳綋鍐呭鏍峰紡 */ - .mui-content{ - width: 97%; - margin: auto; - } - .mui-input-group .mui-input-row { - height: 50px; - } - .mui-input-row label { - width: 38%; - padding: 11px 8px; - text-align: right; - padding: 16px 15px; - } - .mui-input-row label~input { - width: 62%; - height: 50px; - } - .mui-input-group { - margin: 25px 0; - border-radius: 10px; - position: unset; - } - .btn{ - margin-top: 8px; - margin-right: 2px; - float: right; - background: #EC971F; - color: #fff; - padding: 6px 15px; - } - .mui-btn-block { - font-size: 18px; - display: block; - width: 100%; - margin-bottom: 10px; - padding: 10px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鍏ュ簱鐧昏</h1> - </header> - <div class="mui-content"> - <form class="mui-input-group"> - <div class="mui-input-row"> - <label>鏅烘収鍗″彿锛�</label> - <input id="intelCard" style="width: 40%; float: left;" type="text" placeholder="璇诲彇鏅烘収鍗″彿"> - <div> - <button type="button" class="btn" onclick="readCard()">璇诲崱</button> - </div> - </div> - <div class="mui-input-row"> - <label>杞︾墝鍙凤細</label> - <input id="plateNum" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ヨ溅鐗屽彿"> - </div> - <div class="mui-input-row"> - <label>鎵胯繍浜猴細</label> - <input id="userName" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ュ鍚�"> - </div> - <div class="mui-input-row"> - <label>韬唤璇佸彿锛�</label> - <input id="userId" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ヨ韩浠借瘉"> - </div> - <div class="mui-input-row"> - <label>鎵嬫満鍙凤細</label> - <input id="userContact" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ユ墜鏈哄彿"> - </div> - </form> - <div style="padding: 10px;"> - <button class="mui-btn mui-btn-block mui-btn-green" onclick="register()">纭鐧昏</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var data = { - "interfaceId": "5209", - "sign": "10209", - "outId": "10209", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "plateNum": "", - "userName": "", - "userId": "", - "userContact": "" - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - }); - - //鏇存柊鐢ㄦ埛淇℃伅 - function register(){ - //楠岃瘉杞︾墝鍙� - var plateNum = mui("#plateNum")[0].value; - if (plateNum == '') { - mui.alert("璇疯緭鍏ヨ溅鐗屽彿锛�", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - - //鎵胯繍浜哄鍚� - var userName = mui("#userName")[0].value; - - //楠岃瘉鎵胯繍浜鸿韩浠借瘉鍜屾墜鏈哄彿锛屽繀濉叾涓� - var userId = mui("#userId")[0].value; - var userContact = mui("#userContact")[0].value; - if (userId == '' && userContact == '') { - mui.alert("韬唤璇佸拰鎵嬫満鍙峰~鍐欏叾涓竴涓紒", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - - //璧嬪�� - data.data.plateNum = plateNum; - data.data.userName = userName; - data.data.userId = userId; - data.data.userContact = userContact; - registerSubmit(); - } - - //鍙戦�佹洿鏂拌姹� - function registerSubmit() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - mui.toast(result.data); - location.reload(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - - </script> - </body> -</html> diff --git a/igds-app/inout-register-out.html b/igds-app/inout-register-out.html deleted file mode 100644 index 6f4d7a1..0000000 --- a/igds-app/inout-register-out.html +++ /dev/null @@ -1,337 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鍑哄簱鐧昏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - /* 鏍囬鏍峰紡 */ - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - /* 涓讳綋鍐呭鏍峰紡 */ - .mui-content{ - width: 97%; - margin: auto; - } - .mui-input-group .mui-input-row { - height: 50px; - } - .mui-input-row label { - width: 38%; - padding: 11px 8px; - text-align: right; - padding: 16px 15px; - } - .mui-input-row label~input { - width: 62%; - height: 50px; - } - .mui-input-group { - margin: 25px 0; - border-radius: 10px; - position: unset; - } - .btn{ - margin-top: 8px; - margin-right: 2px; - float: right; - background: #EC971F; - color: #fff; - padding: 6px 15px; - } - .mui-btn-block { - font-size: 18px; - display: block; - width: 100%; - margin-bottom: 10px; - padding: 10px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鍑哄簱鐧昏</h1> - </header> - <div class="mui-content"> - - <form class="mui-input-group"> - <div class="mui-input-row"> - <label>鏅烘収鍗″彿锛�</label> - <input id="intelCard" style="width: 40%; float: left;" type="text" placeholder="璇诲彇鏅烘収鍗″彿"> - <div> - <button type="button" class="btn" onclick="getCheck()">璇诲崱</button> - </div> - </div> - <div class="mui-input-row"> - <label>杞︾墝鍙凤細</label> - <input id="plateNum" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ヨ溅鐗屽彿"> - </div> - <div class="mui-input-row"> - <label>鎵胯繍浜猴細</label> - <input id="userName" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ュ鍚�"> - </div> - <div class="mui-input-row"> - <label>韬唤璇佸彿锛�</label> - <input id="userId" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ヨ韩浠借瘉"> - </div> - <div class="mui-input-row"> - <label>鎵嬫満鍙凤細</label> - <input id="userContact" type="text" class="mui-input-clear" placeholder="璇疯緭鍏ユ墜鏈哄彿"> - </div> - </form> - <div style="padding: 10px;"> - <button class="mui-btn mui-btn-block mui-btn-green" onclick="register()">纭鐧昏</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var data = { - "interfaceId": "5210", - "sign": "10210", - "outId": "10210", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "plateNum": "", - "userName": "", - "userId": "", - "userContact": "" - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - }); - - //鏇存柊鐢ㄦ埛淇℃伅 - function register(){ - //楠岃瘉杞︾墝鍙� - var plateNum = mui("#plateNum")[0].value; - if (plateNum == '') { - mui.alert("璇疯緭鍏ヨ溅鐗屽彿锛�", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - - //鎵胯繍浜哄鍚� - var userName = mui("#userName")[0].value; - - //楠岃瘉鎵胯繍浜鸿韩浠借瘉鍜屾墜鏈哄彿锛屽繀濉叾涓� - var userId = mui("#userId")[0].value; - var userContact = mui("#userContact")[0].value; - if (userId == '' && userContact == '') { - mui.alert("韬唤璇佸拰鎵嬫満鍙峰~鍐欏叾涓竴涓紒", '鎻愮ず',["纭畾"],function(){},"div"); - return; - } - - //璧嬪�� - data.data.plateNum = plateNum; - data.data.userName = userName; - data.data.userId = userId; - data.data.userContact = userContact; - registerSubmit(); - } - - //鍙戦�佹洿鏂拌姹� - function registerSubmit() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - mui.toast(result.data); - location.reload(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - /*---------------NFC璇诲崱鍔熻兘-------------------*/ - var waiting; - var readyRead = false; - //璇诲崱鏂规硶 - function readCard() { - readyRead = true; - listenNFCStatus(); - } - - var NfcAdapter; - var NdefRecord; - var NdefMessage; - var count = 0; - //鐩戝惉NFC鐘舵�� - function listenNFCStatus() { - try { - var main = plus.android.runtimeMainActivity(); - var Intent = plus.android.importClass('android.content.Intent'); - var Activity = plus.android.importClass('android.app.Activity'); - var PendingIntent = plus.android.importClass('android.app.PendingIntent'); - var IntentFilter = plus.android.importClass('android.content.IntentFilter'); - NfcAdapter = plus.android.importClass('android.nfc.NfcAdapter'); - var nfcAdapter = NfcAdapter.getDefaultAdapter(main); - //鍒ゆ柇璁惧鏄惁鏀寔NFC鍔熻兘 - if (nfcAdapter == null) { - mui.alert("璁惧涓嶆敮鎸丯FC鍔熻兘锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - //鍒ゆ柇璁惧鏄惁寮�鍚疦FC鍔熻兘 - if (!nfcAdapter.isEnabled()) { - mui.alert("璇峰湪绯荤粺璁剧疆涓惎鐢∟FC鍔熻兘锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - waiting = plus.nativeUI.showWaiting("璇峰皢NFC鏍囩闈犺繎锛�"); - - //鍊掕鏃�10绉掞紝璇诲彇涓嶅埌鍚庢彁绀烘槸鍚﹂噸鏂拌鍗� - var interval = setInterval(function() { //瀹氫箟瀹氭椂鍣� - count++; - if (count == 10 && readyRead) { - readyRead = false; - count = 0; - waiting.close(); - clearInterval(interval); //娓呴櫎瀹氭椂鍣� - var btnArray = ["閲嶈瘯", "鍙栨秷"]; - mui.confirm("宸茶秴鏃讹紝鏄惁閲嶆柊璇诲崱锛�", "鎻愮ず", btnArray, function(e) { - if (e.index == 0) { - readCard(); - } - }, "div") - } - }, 1000); - - - var intent = new Intent(main, main.getClass()); - intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); - var pendingIntent = PendingIntent.getActivity(main, 0, intent, 0); - var ndef = new IntentFilter("android.nfc.action.TECH_DISCOVERED"); - ndef.addDataType("*/*"); - var intentFiltersArray = [ndef]; - var techListsArray = [ - ["android.nfc.tech.IsoDep"], - ["android.nfc.tech.NfcA"], - ["android.nfc.tech.NfcB"], - ["android.nfc.tech.NfcF"], - ["android.nfc.tech.Ndef"], - ["android.nfc.tech.NfcV"], - ["android.nfc.tech.NdefFormatable"], - ["android.nfc.tech.MifareClassic"], - ["android.nfc.tech.MifareUltralight"] - ]; - document.addEventListener("newintent", - function() { - setTimeout(readData, 1000); - }, false); - document.addEventListener("pause", function(e) { - if (nfcAdapter) { - nfcAdapter.disableForegroundDispatch(main); - } - }, false); - document.addEventListener("resume", function(e) { - if (nfcAdapter) { - nfcAdapter.enableForegroundDispatch(main, pendingIntent, intentFiltersArray, techListsArray); - } - }, false); - nfcAdapter.enableForegroundDispatch(main, pendingIntent, intentFiltersArray, techListsArray); - } catch (e) { - mui.toast("璇诲崱澶辫触锛岃閲嶈瘯锛�"); - waiting.close(); - } - } - - //璇诲彇鏁版嵁 - function readData() { - NdefRecord = plus.android.importClass("android.nfc.NdefRecord"); - NdefMessage = plus.android.importClass("android.nfc.NdefMessage"); - var main = plus.android.runtimeMainActivity(); - var intent = main.getIntent(); - if ("android.nfc.action.TECH_DISCOVERED" == intent.getAction()) { //鎵撳寘鏃� - if (readyRead) { - readyRead = false; - - waiting.setTitle('璇峰嬁绉诲紑鏍囩\n姝e湪璇诲彇鏁版嵁...'); - var Parcelable = plus.android.importClass("android.os.Parcelable"); - //璇诲彇id - var byteId = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID); - //灏唅d杞负16杩涘埗瀛楃涓� - var id = ByteArrayToHexString(byteId); - //鍏抽棴绛夊緟鍦嗗湀 - waiting.close(); - id = tran_LH8(id); - //璇诲彇id鎴愬姛锛岃祴鍊煎苟鍙戦�佽姹傛煡璇� - $("#intelCard").val(id); - } - } else { - waiting.close(); - mui.alert('璇诲彇澶辫触锛岃閲嶈瘯锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - } - - //灏嗗瓧鑺傛暟缁勮浆涓�16杩涘埗瀛楃涓� - function ByteArrayToHexString(inarray) { - var i, j, inn; - hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; - out = ""; - for (j = 0; j < inarray.length; ++j) { - inn = inarray[j] & 0xff; - i = (inn >>> 4) & 0x0f; - out += hex[i]; - i = inn & 0x0f; - out += hex[i]; - } - return out; - } - - //16杩涘埗瀛楃涓� 楂樹綆鎹綅 8涓瓧绗� - function tran_LH8(info) { - var tag = tran_LH(info.substring(4)) + tran_LH(info.substring(0, 4)); - return hex2int(tag); - } - - //16杩涘埗瀛楃涓� 楂樹綆鎹綅 4涓瓧绗� - function tran_LH(info) { - return info.substring(2) + info.substring(0, 2); - } - - function hex2int(hex) { - var len = hex.length, a = new Array(len), code; - for (var i = 0; i < len; i++) { - code = hex.charCodeAt(i); - if (48<=code && code < 58) { - code -= 48; - } else { - code = (code & 0xdf) - 65 + 10; - } - a[i] = code; - } - - return a.reduce(function(acc, c) { - acc = 16 * acc + c; - return acc; - }, 0); - } - </script> - </body> -</html> diff --git a/igds-app/login-100.html b/igds-app/login-100.html deleted file mode 100644 index d2f6b1a..0000000 --- a/igds-app/login-100.html +++ /dev/null @@ -1,388 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <meta name="viewport" id="viewportMeta" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <title>鐧诲綍</title> - <link href="css/mui.min.css" rel="stylesheet" /> - <script> - var initViewport = function(height){ - var metaEl = document.querySelector("#viewportMeta"); - var content = "height=" + height + ",width=device-width,initial-scale=1.0,user-scalable=no"; - metaEl.setAttribute('name', 'viewport'); - metaEl.setAttribute('content', content); - } - var realHeight = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight - initViewport(realHeight); - </script> - <style> - .login_body{ - height: 100vh; - width: 100vw; - padding: 10vh 10vw; - background: #245ca7; - color: #fff; - } - .logo{ - text-align: center; - height: 18vh; - } - .logo img{ - height: 10vh; - margin: auto; - } - .logo p{ - margin-top: 1.2vh; - font-size: 2vh; - color: #FFFFFF; - } - .form{ - margin-top: 4vh; - height: 40vh; - } - .form input{ - padding: 2vh 0 2vh 12vw; - height: 6vh; - font-size: 2.4vh; - color: #333; - border-radius: 6px; - border: 0px; - } - .form .yhm input{ - background: url(./images/ico_yhm.png) no-repeat 2vw center #fff; - background-size: 3.2vh auto; - margin-bottom: 2vh; - } - .form .mm input{ - background: url(./images/ico_mm.png) no-repeat 2vw center #fff; - background-size: 3.2vh auto; - margin-bottom: 1vh; - } - .form input:focus,input:hover{ - box-shadow: none!important; - border-bottom: unset; - } - .mui-input-row .mui-input-password~.mui-icon-eye{ - font-size: 3.2vh; - top: 1.4vh; - } - .checkbox{ - height: 4vh; - } - .checkbox label{ - font-size: 1.8vh; - } - .checkbox input{ - height: 2.2vh; - width: 2.2vh; - vertical-align: middle; - } - .form button{ - width: 100%; - margin-top: 3vh; - height: 7vh; - color: #245ca7; - padding: 1.5vh 0; - font-size: 3vh; - font-weight: 700; - border-radius: 6px; - margin-bottom: 2vh; - } - .form button:hover{ - margin-top: 3vh; - height: 7vh; - } - .xieyi{ - color: #FFFFFF; - font-size: 1.8vh; - color: #bbb; - } - .login_fwq{ - margin-top: 2vh; - height: 16vh; - text-align: center; - } - .login_fwq button{ - background: #668dc1; - color: #eee; - border: 0px; - border-radius: 3px; - height: 6vh; - line-height: 6vh; - padding: 0 10vw; - font-size: 2.2vh; - } - .login_fwq p{ - margin: 1vh; - font-size: 2vh; - color: #ddd; - } - /*寮瑰嚭*/ - .mark{ - background:rgba(0,0,0,.8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - .mark_layer{ - align-self: center; - background: #fff; - width: 75%; - margin: auto; - border-radius: 5px; - overflow:hidden; - } - .mark_layer .title{ - background: #245ca7; - height: 40px; - line-height: 40px; - padding: 0 15px; - box-sizing: border-box; - color: #fff; - } - .mark_layer .title a{ - color: #fff; - font-weight: normal; - line-height: 40px; - float: right; - font-size: 25px; - } - .mark_layer .mark_btn button{ - background: #ff6355; - color: #fff; - font-size: 18px; - width: 100%; - height: 45px; - } - .mark_layer .mark_btn button:hover{ - opacity: .8; - } - .fwq_body{ - display: block; - padding: 10px 20px; - box-sizing: border-box; - } - .fwq_body input{ - border: 0px; - border-bottom: 1px #eee solid; - width: 100%; - height: 44px; - line-height: 44px; - box-shadow: none; - } - .fwq_body input:focus,input:hover{ - box-shadow: none!important; - border-bottom: 1px #ff6355 solid; - } - .mx-3{ - margin : 0.5rem!important; - } - </style> - </head> - <body> - <div class="mui-content"> - <!--涓讳綋--> - <div class="login_body"> - <!--logo--> - <div class="logo"> - <img src="./images/logo.png"> - <p>绔墷涓浗楗锛屽叡绛戝叏鍥界伯瀹�</p> - </div> - <!--琛ㄥ崟--> - <div class="form"> - <div class="yhm"> - <input id="username" type="text" class="form-control" placeholder="璇疯緭鍏ョ敤鎴峰悕"> - </div> - <div class="mm mui-input-row"> - <input id="password" type="password" class="form-control mui-input-password" placeholder="璇疯緭鍏ュ瘑鐮�"> - </div> - <div class="checkbox"> - <label> - <input type="checkbox" id="checkbox"> - 璁颁綇鐢ㄦ埛鍚嶅瘑鐮� - </label> - </div> - <button onclick="login()">鐧� 褰�</button> - <div class="checkbox"> - <label> - <input type="checkbox" id="box"> - 璇锋偍闃呰骞跺悓鎰� - </label> - <a class="xieyi" onclick="toPrivacy()"> <椋庢鑷磋繙绮簱鍗忚></a> - </div> - </div> - <!--鏈嶅姟鍣ㄩ厤缃�--> - <div class="login_fwq"> - <button onclick="openSetting()">鏈嶅姟鍣ㄩ厤缃�</button> - <!-- 姝e紡鐗堟湰 --> - <p>鏈嶅姟鍣↖P锛�<span id="serveIp"></span></p> - <p>鏈嶅姟鍣ㄧ鍙e彿锛�<span id="servePort"></span></p> - <!-- 涔変箤鐗堟湰 --> - <!-- <p>鏈嶅姟鍣↖P锛�<span id="serveIp">218.75.98.90</span></p> - <p>鏈嶅姟鍣ㄧ鍙e彿锛�<span id="servePort">8888</span></p> --> - </div> - </div> - <!--寮瑰嚭--> - <div class="mark" id="mark" style="display: none;"> - <div class="mark_layer"> - <div class="title"> - <span>璁剧疆IP涓庣鍙e彿</span> - <a onclick="closeSetting()" class="close">×</a> - </div> - <div class="fwq_body"> - <!-- 姝e紡鐗堟湰 --> - <input type="text" id="ip" value="" placeholder="璇疯緭鍏P鍦板潃"> - <input type="text" id="port" value="" placeholder="璇疯緭鍏ョ鍙e彿"> - <!-- 涔変箤鐗堟湰 --> - <!-- <input type="text" id="ip" value="218.75.98.90" placeholder="璇疯緭鍏P鍦板潃"> - <input type="text" id="port" value="8888" placeholder="璇疯緭鍏ョ鍙e彿"> --> - </div> - <div class="mark_btn mx-3 mb-3"> - <button class="btn btn-block" onclick="closeSetting()">纭畾</button> - </div> - </div> - </div> - </div> - </body> - <script src="./js/mui.min.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var data = { - "interfaceId": "5001", - "sign": "10001", - "outId": "10001", - "reqDateTime": new Date(), - "data": { - "username": '', - "password": '' - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - if (user) { - if (user.ip) { - $("#ip").val(user.ip); - $("#serveIp").html(user.ip); - } - - if (user.port) { - $("#port").val(user.port); - $("#servePort").html(user.port); - } - - if (user.check == 1) { - $("input[id='checkbox']").attr("checked", true); - $("#username").val(user.username); - $("#password").val(user.password); - } - } - }); - //寮瑰嚭鏈嶅姟鍣ㄩ厤缃獥鍙� - function openSetting() { - $('#mark').css('display', 'flex'); - } - //鍏抽棴寮圭獥骞惰祴鍊� - function closeSetting() { - $("#serveIp").html(mui("#ip")[0].value); - $("#servePort").html(mui("#port")[0].value); - $("#mark").css('display', 'none'); - } - //鐧婚檰 - function login() { - - //ios绔垽鏂崗璁槸鍚﹂�変腑 - if (!$("input[id='box']").prop('checked')) { - mui.alert("璇烽槄璇诲崗璁苟鍚屾剰", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - - //楠岃瘉璐︽埛瀵嗙爜鍙奿p绔彛 - var username = mui("#username")[0].value; - if (username == '') { - mui.alert("璇疯緭鍏ョ敤鎴峰悕锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - - var password = mui("#password")[0].value; - if (password == '') { - mui.alert("璇疯緭鍏ュ瘑鐮侊紒", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - - var serveIp = mui("#ip")[0].value; - var servePort = mui("#port")[0].value; - if (serveIp == '' || servePort == '') { - mui.alert("璇烽厤缃湇鍔″櫒ip鍜岀鍙o紒", '鎻愮ず', ["纭畾"], function() {}, "div"); - return; - } - - //杞湀绛夊緟妗� - var wt = plus.nativeUI.showWaiting(); - - //鍒ゆ柇鏄惁閫変腑璁颁綇鐢ㄦ埛鍚嶅拰瀵嗙爜锛�0涓烘湭閫変腑锛�1涓洪�変腑 - var check = "0"; - if ($("input[id='checkbox']").prop('checked')) { - check = "1"; - } - //鎷兼帴url - var url = "http://" + serveIp + ":" + servePort; //姝e紡鐗堟湰 - // var url = "http://" + serveIp + ":" + servePort + "/zxlk"; //涔変箤鐗堟湰 - - //璁剧疆璇锋眰鍙� - data.data.username = username; - data.data.password = password; - //鍙戦�佺櫥闄嗚姹� - mui.ajax(url + "/api-phone/login", { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - wt.close(); - //鐧诲綍鎴愬姛鍒欒繘鍏ヤ富椤甸潰 - if (result.code == "0000") { - //灏嗙櫥闄嗕俊鎭拰ip淇℃伅淇濆瓨 - var regInfo = { - "username": username, - "password": password, - "ip": serveIp, - "port": servePort, - "check": check, - "url": url, - "cname": result.data.cname, - "tokenAuth": result.data.tokenAuth - }; - localStorage.setItem('user', JSON.stringify(regInfo)); - - //璺宠浆鍒颁富椤甸潰 - mui.openWindow({ - url: 'index.html', - id: 'index' - }) - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - wt.close(); - mui.alert('绯荤粺绻佸繖锛岃閲嶆柊鐧诲綍锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - function toPrivacy() { - //璺宠浆鍒伴殣绉侀〉闈� - mui.openWindow({ - url: 'privacy.html', - id: 'privacy' - }) - } - </script> -</html> \ No newline at end of file diff --git a/igds-app/monitor.html b/igds-app/monitor.html deleted file mode 100644 index 56a1016..0000000 --- a/igds-app/monitor.html +++ /dev/null @@ -1,271 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瑙嗛鐩戞帶</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .ad { - display: block; - height: 226px; - } - - .ad img { - width: 100%; - height: 100%; - } - - .video_list { - display: block; - background: #fff; - } - - .video_list li { - border-bottom: 1px #eee solid; - padding: 10px 15px; - box-sizing: border-box; - background: url(../images/ico_arr.png)no-repeat right 15px center; - background-size: 7px auto; - } - - .video_list li a { - display: flex; - } - - .video_list img { - width: 8%; - align-self: center; - } - - .video_list span { - align-self: center; - margin-left: 10px; - color: #333; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瑙嗛鐩戞帶</h1> - </header> - <div class="mui-content"> - <!--add--> - <div class="ad" id="video"> - <img id="videoImg" src="./images/spad0.png"/> - - <!-- 浣跨敤鎾斁鍣ㄦ挱鏀� --> - <!-- <easy-player id="easyPlayer" style="display: none;" live="true" show-custom-button="true" auto-play="true" muted="true"></easy-player> --> - - <!-- 浣跨敤IFrame鎾斁 --> - <!-- <iframe id="iframePlayer" src="" style="margin: 5px, 0;" width="100%" height="100%" frameborder="no" allowfullscreen></iframe> --> - </div> - <!--list--> - <div class="video_list"> - <ul id="videoList" class="mui-table-view"> - <!-- <li> - <a onclick="toVideo()"> - <img src="./images/ico_sp.png"> - <span>瑙嗛鐩戞帶璁惧锛�###01</span> - </a> - </li> --> - </ul> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script src="./js/EasyPlayer-element.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var keepUrl; //鎺ュ彛璺緞 - var videoList; //瑙嗛璁惧闆嗗悎 - var timer; - var cameraData; - - //杞湀绛夊緟妗� - var wt; - var data = { - "interfaceId": "5601", - "sign": "10501", - "outId": "10501", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - - } - }; - var data0 = { - "interfaceId": "5602", - "sign": "10602", - "outId": "10602", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "cameraId": "", - "playType": "", - "playIframe": "" - } - }; - var data1 = { - "interfaceId": "5603", - "sign": "10603", - "outId": "10603", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "playType": "", - "sn": "", - "ip": "", - "msg": "" - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - data0.tokenAuth = user.tokenAuth; - data1.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - keepUrl = user.url + "/api-phone/keep-alive"; - getVideoList(); - }) - - function getVideoList() { - //鍙戦�佽姹傝幏鍙栬棰戣澶� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - videoList = result.data; - renderVideo(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //娓叉煋瑙嗛鐩戞帶璁惧 - function renderVideo() { - var html = ''; - if (videoList != null && videoList.length > 0) { - $.each(videoList, function(index, item) { - html += '<li onclick="getVideo(\'' + index + '\')"><a>'; - html += '<img src="./images/ico_sp.png">'; - html += '<span>鐩戞帶璁惧锛�' + item.name + '</span></a></li>'; - }) - } else { - html += '<li><a><span>鏆傛棤鐩稿叧璁惧</span></a></li>'; - } - $("#videoList").html(html); - } - - //鎾斁 - function getVideo(tag) { - wt = plus.nativeUI.showWaiting("璇风◢鍚�...") - data0.data.cameraId = videoList[tag].id - data0.data.playType = videoList[tag].playType - data0.data.playIframe = "Y"; - console.log(url); - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data0), - success: function(result) { - - if (result.code == "0000") { - - cameraData = result.data; - //鎾斁瑙嗛 - toVideo(); - } else { - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - function toVideo() { - - $('#video').html(""); - var html = ""; - - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - if(cameraData.playIframe){ - - html = '<iframe id="iframePlayer" src="' + cameraData.playIframe + '" style="margin: 5px, 0;" width="100%" height="100%" frameborder="no"></iframe>'; - $('#video').html(html); - - }else if(cameraData.playAddr){ - - html = '<easy-player id="easyPlayer" video-url="' + cameraData.playAddr + - '" live="true" show-custom-button="true" auto-play="true" muted="true"></easy-player>'; - $('#video').html(html); - - //瀹氭椂鍣�-淇濇椿鐩存挱 - if (timer) clearInterval(timer); - timer = setInterval(function() { - keepAlive(); - }, 15 * 1000); - }else{ - mui.alert('鏈幏鍙栧埌褰撳墠鎽勫儚澶存挱鏀句俊鎭紒锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - } - - function keepAlive() { - var data = { - playType: cameraData.playType, - sn: cameraData.sn, - ip: cameraData.ipIn, - msg: Math.random() - }; - mui.ajax(keepUrl, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) {}, - error: function() {} - }) - } - - </script> - </body> -</html> diff --git a/igds-app/order-apply.html b/igds-app/order-apply.html deleted file mode 100644 index bdc1713..0000000 --- a/igds-app/order-apply.html +++ /dev/null @@ -1,300 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>宸ュ崟鐢宠</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <link href="./css/mui.poppicker.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: 0 5px; - } - .mui-input-row label { - width: 45%; - text-align: right; - padding: 16px 15px; - } - .mui-input-group .mui-input-row { - height: 50px; - } - .mui-input-row label~input{ - width: 55%; - float: left; - text-align: right; - height: 50px; - } - .mui-input-group { - margin: 25px 0; - border-radius: 10px; - position: unset; - } - .mui-btn-block { - font-size: 18px; - display: block; - width: 100%; - margin-bottom: 10px; - padding: 10px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">宸ュ崟鐢宠</h1> - </header> - <div class="mui-content"> - <form class="mui-input-group"> - <div class="mui-input-row" style="display: none;"> - <label>涓氬姟绫诲瀷:</label> - <input id="type" type="text"> - </div> - <div class="mui-input-row" style="display: none;"> - <label>鎵�灞炲垎搴�:</label> - <input id="deptId" type="text"> - </div> - <div class="mui-input-row" style="display: none;"> - <label>鍏宠仈浠撳簱:</label> - <input id="depotId" type="text"> - </div> - <div class="mui-input-row"> - <label>涓氬姟绫诲瀷:</label> - <input id="typeName" type="text" readonly="readonly" onclick="searchType()" placeholder="璇烽�夋嫨 >"> - </div> - <div class="mui-input-row"> - <label>鎵�灞炲垎搴�:</label> - <input id="deptName" type="text" readonly="readonly" onclick="searchDept()" placeholder="璇烽�夋嫨 >"> - </div> - <div class="mui-input-row"> - <label>鍏宠仈浠撳簱:</label> - <input id="depotName" type="text" readonly="readonly" onclick="searchDepot()" placeholder="璇烽�夋嫨 >"> - </div> - <div class="mui-input-row"> - <label>鏈夋晥寮�濮嬫椂闂�:</label> - <input id="start" type="text" readonly="readonly" onclick="searchTime('start')" placeholder="璇烽�夋嫨 >"> - </div> - <div class="mui-input-row"> - <label>鏈夋晥鎴鏃堕棿:</label> - <input id="end" type="text" readonly="readonly" onclick="searchTime('end')" placeholder="璇烽�夋嫨 >"> - </div> - </form> - <div style="padding: 10px;"> - <button class="mui-btn mui-btn-block mui-btn-green" onclick="applyOrder()">鎻愪氦</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/mui.poppicker.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var deptList = null; //鍒嗗簱闆嗗悎 - var typeList = null; //绫诲瀷闆嗗悎 - var depotList = null; //浠撳簱闆嗗悎 - var deptTag = null - //鑾峰彇鍒嗗簱銆佷粨搴撱�佺被鍨嬪垪琛ㄥ弬鏁� - var data1 = { - "interfaceId": "5701", - "sign": "10701", - "outId": "10701", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "ORDER_TYPE", - } - }; - //鐢宠鍙傛暟 - var data2 = { - "interfaceId": "5702", - "sign": "10702", - "outId": "10702", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "", - "deptId": "", - "depotId": "", - "start": "", - "end": "", - } - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data1.tokenAuth = user.tokenAuth; - data2.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getList(); - }) - - //鑾峰彇鍒嗗簱鍒楄〃鍜岀被鍨嬪垪琛� - function getList() { - //鍙戦�佽姹傝幏鍙栧垎搴撳垪琛ㄥ拰绫诲瀷鍒楄〃 - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - deptList = result.data.deptList; - typeList = result.data.typeList; - } - } - }) - } - - //宸ュ崟鐢宠 - function applyOrder() { - data2.data.type = mui("#type")[0].value; - data2.data.deptId = mui("#deptId")[0].value; - data2.data.depotId = mui("#depotId")[0].value; - data2.data.start = mui("#start")[0].value; - data2.data.end = mui("#end")[0].value; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(result) { - if (result.code == "0000") { - mui.toast("鐢宠鎴愬姛锛�"); - location.reload(); - } - } - }) - } - - //涓氬姟绫诲瀷閫夋嫨 - function searchType() { - if(typeList != null && typeList.length >0){ - var arr = []; - $.each(typeList, function(index, item) { - arr.push({ - value: item.code, - text: item.name - }) - - }) - var typePicker = new mui.PopPicker(); - typePicker.setData(arr); - - typePicker.show(function(items) { - $("#type").val(items[0].value); - $("#typeName").val(items[0].text); - }); - }else{ - mui.toast("鏈幏鍙栧埌涓氬姟绫诲瀷锛�") - } - } - - //鍒嗗簱閫夋嫨 - function searchDept() { - if(deptList != null && deptList.length >0){ - var arr = []; - $.each(deptList, function(index, item) { - arr.push({ - value: item.id, - text: item.name - }) - }) - var deptPicker = new mui.PopPicker(); - deptPicker.setData(arr); - - deptPicker.show(function(items) { - $("#deptId").val(items[0].value); - $("#deptName").val(items[0].text); - deptTag = items[0].value; - }); - }else{ - mui.toast("鏈幏鍙栧埌鍒嗗簱鍒楄〃锛�") - } - } - - //浠撳簱閫夋嫨 - function searchDepot() { - if(deptTag != null){ - $.each(deptList, function(index, item) { - if(deptTag == item.id){ - depotList = item.depotList; - } - }) - if(depotList != null && depotList.length >0){ - var arr = []; - $.each(depotList, function(index, item) { - arr.push({ - value: item.depotId, - text: item.depotName - }) - }) - var depotPicker = new mui.PopPicker(); - depotPicker.setData(arr); - depotPicker.show(function(items) { - $("#depotId").val(items[0].value); - $("#depotName").val(items[0].text); - }); - }else{ - mui.toast("璇ュ垎搴撲笅鏃犱粨搴撳垪琛紒") - } - }else{ - mui.toast("璇峰厛閫夋嫨鍒嗗簱锛�") - } - } - - //鐩戝惉鏃堕棿閫夋嫨 - function searchTime(tag) { - var dtPicker = new mui.DtPicker({ - type: 'datetime', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: getCurTime() //榛樿褰撳墠鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - var h = selectItems.h.text; //鑾峰彇閫夋嫨鐨勬椂 - var i = selectItems.i.text; //鑾峰彇閫夋嫨鐨勫垎 - var dateTime = y + "-" + m + "-" + d + " " + h + ":" + i; - $("#" + tag).val(dateTime); - }) - } - - //鑾峰彇褰撳墠鏃堕棿(鏍煎紡锛歽yyy-MM-dd HH:mm) - function getCurTime() { - var date = new Date(); - var year = date.getFullYear(); - var month, day, hour, min; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - hour = date.getHours(); - if (hour >= 1 && hour <= 9) { - hour = "0" + hour; - } - min = date.getMinutes(); - if (min >= 1 && min <= 9) { - min = "0" + min; - } - return year + "-" + month + "-" + day + " " + hour + ":" + min; - } - </script> - </body> -</html> diff --git a/igds-app/order-audit.html b/igds-app/order-audit.html deleted file mode 100644 index e4decb6..0000000 --- a/igds-app/order-audit.html +++ /dev/null @@ -1,197 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>宸ュ崟瀹℃牳</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-content{ - margin: 0 4px; - } - .mui-table-view { - background-color: unset; - } - .mui-content>.mui-table-view:first-child { - margin-top: -1px; - } - .mui-table-view-chevron .mui-table-view-cell { - padding: 6px; - } - .mui-table-view-cell { - position: unset; - margin-bottom: 5px; - background-color: #fff; - } - .mui-h4, h4 { - font-size: 17px; - font-weight: 600; - } - .stn{ - float: right; - margin-top: -125px; - } - .btn{ - padding: 5px 10px; - margin: 0 2px; - } - .mui-h5, h5 { - font-size: 14px; - font-weight: 400; - color: #333; - margin: 10px 0; - } - .mui-table-view-cell p { - color: #DD524D; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">宸ュ崟瀹℃牳</h1> - </header> - <div class="mui-content"> - <!--鏁版嵁鍒楄〃--> - <ul id="listData" class="mui-table-view mui-table-view-chevron"> - <!-- <li class="mui-table-view-cell"> - <div onclick="getDetail()" class="mui-table"> - <div class="mui-table-cell mui-col-xs-10"> - <h4>鐢宠浜猴細<span>寮犱笁</span> - </h4> - <h5>涓氬姟绫诲瀷锛�<span>闂ㄧ</span></h5> - <h5>鎵�灞炲垎搴擄細<span>榛戝湡涓�鍒嗗簱</span></h5> - <h5>鍏宠仈浠撳簱锛�<span>1鍙蜂粨搴�</span></h5> - <p> - 鏃堕棿锛�<span>2020-10-10 10:10</span>鑷� - <span>2020-10-10 10:10</span> - </p> - </div> - </div> - <span class="stn"> - <button class="btn mui-btn-blue" onclick="toAudit('20')">閫氳繃</button> - <button class="btn mui-btn-red" onclick="toAudit('30')">鎷掔粷</button> - <button class="btn mui-btn-yellow" onclick="toAudit('40')">閫�鍥�</button> - </span> - </li> --> - </ul> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - </body> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var dataList; //鏁版嵁闆嗗悎 - var data = { - "interfaceId": "5703", - "sign": "10703", - "outId": "10703", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "status": "10", //寰呭鏍� - } - }; - var data0 = { - "interfaceId": "5704", - "sign": "10704", - "outId": "10704", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "status": "", - "id": "" - } - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - data0.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getOrderList(); - }) - - //鑾峰彇淇℃伅 - function getOrderList() { - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - dataList = result.data; - renderOrderList(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //娓叉煋 - function renderOrderList() { - var html = ''; - if (dataList != null && dataList.length > 0) { - $.each(dataList, function(index, item) { - html += '<li class="mui-table-view-cell"><div class="mui-table">'; - html += '<div class="mui-table-cell mui-col-xs-10">'; - html += '<h4>鐢宠浜猴細<span>' + item.applyUserName + '</span></h4>'; - html += '<h5>涓氬姟绫诲瀷锛�<span>' + item.type + '</span></h5>'; - html += '<h5>鎵�灞炲垎搴擄細<span>' + item.deptId + '</span></h5>'; - html += '<h5>鍏宠仈浠撳簱锛�<span>' + item.depotId + '</span></h5>'; - html += '<p>鏃堕棿锛�<span>' + item.start + '</span>鑷�'; - html += '<span>' + item.end + '</span></p></div></div>'; - html += '<span class="stn">'; - html += '<button class="btn mui-btn-blue" onclick="toAudit(\'' + item.id + '\',\'20\')">閫氳繃</button>'; - html += '<button class="btn mui-btn-red" onclick="toAudit(\'' + item.id + '\',\'30\')">鎷掔粷</button>'; - html += '<button class="btn mui-btn-yellow" onclick="toAudit(\'' + item.id + '\',\'40\')">閫�鍥�</button>'; - html += '</span></li>'; - }) - } else { - mui.alert('鏆傛棤鏁版嵁锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - $("#listData").html(html); - } - - function toAudit(id, status) { - data0.data.status = status; - data0.data.id = id; - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data0), - success: function(result) { - if (result.code == "0000") { - mui.toast("瀹℃牳鎴愬姛锛�"); - location.reload(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - </script> -</html> diff --git a/igds-app/order-his.html b/igds-app/order-his.html deleted file mode 100644 index 6bb0557..0000000 --- a/igds-app/order-his.html +++ /dev/null @@ -1,142 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>鐢宠璁板綍</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .mui-content{ - margin: 0 6px; - } - .mui-content>.mui-table-view:first-child { - margin-top: -1px; - } - .mui-table-view-chevron .mui-table-view-cell { - padding-right: 0px; - } - .mui-col-xs-10 { - width: 100%; - } - .mui-h4, h4 { - font-size: 17px; - font-weight: 600; - } - .first{ - color: #C7254E; - font-size: 15px; - float: right; - margin-right: 20px; - } - .mui-h5, h5 { - font-size: 14px; - font-weight: 400; - color: #333; - margin: 10px 0; - } - .mui-table-view-cell p { - color: #333; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">鐢宠璁板綍</h1> - </header> - <div class="mui-content"> - <!--鏁版嵁鍒楄〃--> - <ul id="listData" class="mui-table-view mui-table-view-chevron"> - <!-- <li class="mui-table-view-cell"> - <div class="mui-table"> - <div class="mui-table-cell mui-col-xs-10"> - <h4 class="mui-ellipsis">2021-07-31 10:00<span class="first">寰呭鏍�</span></h4> - <h5>涓氬姟绫诲瀷锛�<span>闂ㄧ</span></h5> - <h5>鎵�灞炲垎搴擄細<span>榛戝湡涓�鍒嗗簱</span></h5> - <h5>鍏宠仈浠撳簱锛�<span>1鍙蜂粨搴�</span></h5> - <h5>鏈夋晥寮�濮嬫椂闂达細<span>2020-10-10 10:10</span></h5> - <h5>鏈夋晥鎴鏃堕棿锛�<span>2020-10-10 10:10</span></h5> - </div> - </div> - </li> --> - </ul> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var dataList; //鏁版嵁闆嗗悎 - var data = { - "interfaceId": "5703", - "sign": "10703", - "outId": "10703", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": {} - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getOrderList(); - }) - - //鑾峰彇璁㈠崟淇℃伅 - function getOrderList() { - //鍙戦�佽姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - dataList = result.data; - renderOrderList(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //椤甸潰娓叉煋 - function renderOrderList() { - var html = ''; - if (dataList != null && dataList.length > 0) { - $.each(dataList, function(index, item) { - html += '<li class="mui-table-view-cell"><div class="mui-table">'; - html += '<div class="mui-table-cell mui-col-xs-10">'; - html += '<h4 class="mui-ellipsis">' + item.applyTime; - html += '<span class="first">' + item.status + '</span></h4>'; - html += '<h5>涓氬姟绫诲瀷锛�<span>' + item.type + '</span></h5>'; - html += '<h5>鎵�灞炲垎搴擄細<span>' + item.deptId + '</span></h5>'; - html += '<h5>鍏宠仈浠撳簱锛�<span>' + item.depotId + '</span></h5>'; - html += '<h5>鏈夋晥寮�濮嬫椂闂达細<span>' + item.start + '</span></h5>'; - html += '<h5>鏈夋晥鎴鏃堕棿锛�<span>' + item.end + '</span></h5>'; - html += '</div></div></li>'; - }) - } else { - mui.alert('鏆傛棤鏁版嵁锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - $("#listData").html(html); - } - </script> - </body> -</html> diff --git a/igds-app/order-manage.html b/igds-app/order-manage.html deleted file mode 100644 index ce01453..0000000 --- a/igds-app/order-manage.html +++ /dev/null @@ -1,85 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>宸ュ崟绠$悊</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: auto; - } - .mui-content>.mui-table-view:first-child { - margin-top: 0px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - border-right: none; - border-bottom: none; - width: 33.3333%; - } - .mui-table-view-cell a{ - background: #FFFFFF; - border-radius: 6px; - } - .img_ico{ - width: 55px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">宸ュ崟绠$悊</h1> - </header> - <div class="mui-content"> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('order-his')"> - <img class="img_ico" src="./images/ico_order_his.png"> - <div class="mui-media-body">鐢宠璁板綍</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 10px;"> - <a href="javascript:void(0)" onclick="toView('order-apply')"> - <img class="img_ico" src="./images/ico_order_apply.png"> - <div class="mui-media-body">宸ュ崟鐢宠</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('order-audit')"> - <img class="img_ico" src="./images/ico_order_audit.png"> - <div class="mui-media-body">宸ュ崟瀹℃牳</div> - </a> - </li> - </ul> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - - function toView(tag) { - var url = tag + ".html"; - mui.openWindow({ - url: url, - id: tag, - }) - } - </script> - </body> -</html> diff --git a/igds-app/patrol-his.html b/igds-app/patrol-his.html deleted file mode 100644 index 5f8c28b..0000000 --- a/igds-app/patrol-his.html +++ /dev/null @@ -1,280 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>宸℃洿璁板綍</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <link href="./css/mui.picker.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content-padded { - position: fixed; - z-index: 10; - width: 100%; - margin:unset; - padding: 6px; - border-bottom: 2px solid #0bcece; - } - input[type=text] { - font-size: 16px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - height: 35px; - text-align: left; - border: 0; - border-radius: 50px; - background-color: #efeff4; - margin-bottom: 1px; - width: 75%; - } - .sousuo{ - font-size: 16px; - background:#0277f7; - color: #fff; - border-radius: 6px; - line-height: 22px; - float: right; - width: 22%; - } - .mui-table-view { - margin-top: 50px; - } - .mui-table-view-chevron .mui-table-view-cell { - padding-right: 8px; - } - - .mui-table-view-cell { - padding: 8px 8px; - } - - .ba-right{ - padding: 22px 0; - } - /*寮瑰嚭*/ - .mark{ - background:rgba(0,0,0,.8); - position: fixed; - left: 0px; - top: 0px; - right: 0px; - bottom: 0px; - z-index: 10000; - display: flex; - } - .mark_layer{ - align-self: center; - background: #fff; - width: 75%; - margin: auto; - border-radius: 5px; - overflow:hidden; - padding: 3px; - } - .mark_layer .mark_btn button{ - background: #ea8b04; - color: #fff; - font-size: 14px; - width: 100%; - padding: 8px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">宸℃洿璁板綍</h1> - </header> - <div class="mui-content"> - <div class="mui-content-padded" style="background: #FFFFFF;"> - <input id="dateTime" type="text" onclick="searchDate()" placeholder="璇烽�夋嫨鏃ユ湡妫�绱�" readonly="readonly"> - <button class="sousuo" onclick="getPatrolList()">鏌ヨ</button> - </div> - <!--鏁版嵁鍒楄〃--> - <ul id="listData" class="mui-table-view mui-table-view-chevron"> - <!-- <li class="mui-table-view-cell mui-media"> - <div class="ba-right mui-pull-right"> - <button class="mui-btn-yellow" onclick="showImg('002')">鏌ョ湅鐓х墖</button> - </div> - <div class="mui-media-body"> - 15:00:00 - <p class='mui-ellipsis'>鎵撳崱浜�:<span>绮簱绠$悊鍛�</span></p> - <p class='mui-ellipsis'>缁忓害:<span>113.54</span></p> - <p class='mui-ellipsis'>绾害:<span>34.7988</span></p> - </div> - </li> --> - </ul> - </div> - <!--寮瑰嚭--> - <div class="mark" id="mark" style="display: none;"> - <div class="mark_layer"> - <div class="fwq_body"> - <img id="image" style="width: 100%" src=""> - </div> - <div class="mark_btn mx-3 mb-3"> - <button class="btn btn-block" onclick="closeSetting()">纭畾</button> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/mui.picker.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var dataList; //鏁版嵁闆嗗悎 - var wt; //绛夊緟鍦� - var data = { - "interfaceId": "5802", - "sign": "10802", - "outId": "10802", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "date": "" - } - }; - var data0 = { - "interfaceId": "5803", - "sign": "10803", - "outId": "10803", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "id": "" - } - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - data0.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - $("#dateTime").val(getDate()); - }) - - //榛樿鑾峰彇褰撳ぉ鏃ユ湡(yyyy-MM-dd) - function getDate() { - var date = new Date(); - var year = date.getFullYear(); - var month, day; - month = date.getMonth() + 1; - if (month >= 1 && month <= 9) { - month = "0" + month; - } - day = date.getDate(); - if (day >= 1 && day <= 9) { - day = "0" + day; - } - return year + "-" + month + "-" + day - } - - //鐩戝惉鏃堕棿閫夋嫨 - function searchDate() { - var dtPicker = new mui.DtPicker({ - type: 'date', - beginDate: new Date(2010, 00, 01), //璧峰鏃ユ湡 - value: getDate() //榛樿鏃堕棿 - }); - dtPicker.show(function(selectItems) { - var y = selectItems.y.text; //鑾峰彇閫夋嫨鐨勫勾 - var m = selectItems.m.text; //鑾峰彇閫夋嫨鐨勬湀 - var d = selectItems.d.text; //鑾峰彇閫夋嫨鐨勬棩 - var dateTime = y + "-" + m + "-" + d; - $("#dateTime").val(dateTime); - }) - } - - //鑾峰彇浠撳簱淇℃伅 - function getPatrolList() { - //杞湀绛夊緟妗� - wt = plus.nativeUI.showWaiting("鏌ヨ涓紝璇风◢鍚�"); - data.data.date = mui("#dateTime")[0].value - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - dataList = result.data; - renderPatrolList(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - //娓叉煋 - function renderPatrolList() { - var html = ''; - if (dataList != null && dataList.length > 0) { - $.each(dataList, function(index, item) { - html += '<li class="mui-table-view-cell mui-media">'; - if (item.imgTag == 'Y') { - html += '<div class="ba-right mui-pull-right">'; - html += '<button class="mui-btn-yellow" onclick="showImg(\'' + item.id + '\')">鏌ョ湅鐓х墖</button></div>'; - } - html += '<div class="mui-media-body">' + item.createTime; - html += '<p class="mui-ellipsis">鎵撳崱浜�:<span>' + item.userName + '</span></p>'; - html += '<p class="mui-ellipsis">缁忓害:<span>' + item.longitude.substring(0, 8) + '</span></p>'; - html += '<p class="mui-ellipsis">绾害:<span>' + item.latitude.substring(0, 7) + '</span></p>'; - html += '</div></li>'; - }) - } else { - mui.alert('鏆傛棤鏁版嵁锛�', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - - $("#listData").html(html); - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - } - - //鏌ヨ璁板綍鐓х墖 - function showImg(id) { - wt = plus.nativeUI.showWaiting("璇风◢鍚�..."); - data0.data.id = id; - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data0), - success: function(result) { - if (result.code == "0000") { - $('#image').attr('src', result.data.base64Img); - - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - $('#mark').css('display', 'flex'); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //鍏抽棴寮圭獥骞惰祴鍊� - function closeSetting() { - $("#mark").css('display', 'none'); - } - </script> - </body> -</html> \ No newline at end of file diff --git a/igds-app/patrol-manage.html b/igds-app/patrol-manage.html deleted file mode 100644 index 2e84611..0000000 --- a/igds-app/patrol-manage.html +++ /dev/null @@ -1,274 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>宸℃洿绠$悊</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - .mui-title { - color: #FFFFFF; - } - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - .mui-content{ - margin: auto; - } - .mui-content>.mui-table-view:first-child { - margin-top: 0px; - } - .mui-grid-view.mui-grid-9 .mui-table-view-cell { - border-right: none; - border-bottom: none; - width: 33.3333%; - } - .mui-table-view-cell a{ - background: #FFFFFF; - border-radius: 6px; - } - .img_ico{ - width: 55px; - height: auto; - display: block; - margin: auto; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">宸℃洿绠$悊</h1> - </header> - <div class="mui-content"> - <ul class="mui-table-view mui-grid-view mui-grid-9"> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 5px;"> - <a href="javascript:void(0)" onclick="toView('patrol-his')"> - <img class="img_ico" src="./images/ico_xgjl.png"> - <div class="mui-media-body">鎵撳崱璁板綍</div> - </a> - </li> - <li class="mui-table-view-cell" style="padding: 10px 5px 10px 10px;"> - <a href="javascript:void(0)" onclick="toPhoto()"> - <img class="img_ico" src="./images/ico_pzdk.png"> - <div class="mui-media-body">鎷嶇収鎵撳崱</div> - </a> - </li> - </ul> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var x_pi = 3.14159265358979324 * 3000.0 / 180.0; - var pi = 3.1415926535897932384626; - var a = 6378245.0; - var ee = 0.00669342162296594323; - var url; //鎺ュ彛璺緞 - var uploadUrl; //鍥剧墖涓婁紶璺緞 - - var fileName = null; //鎷嶇収涓婁紶鍥剧墖鏂囦欢鍚� - var longitude = null; //鐧惧害鍦板浘(BD-09)缁忓害 - var latitude = null; //鐧惧害鍦板浘(BD-09)绾害 - - var data = { - "interfaceId": "5801", - "sign": "10801", - "outId": "10801", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "imgName": "", - "longitude": "", - "latitude": "" - } - }; - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - uploadUrl = user.url + "/api-phone/upload-img"; - }) - - //椤甸潰璺宠浆 - function toView(tag) { - var url = tag + ".html"; - mui.openWindow({ - url: url, - id: tag, - }) - } - - //鎷嶇収鎵撳崱 - function toPhoto() { - plus.geolocation.getCurrentPosition(showLocation, function(e) { - mui.alert("鑾峰彇瀹氫綅淇℃伅澶辫触锛岃鍏堟墦寮�瀹氫綅寮�鍏筹紒", '鎻愮ず', ["纭畾"], function() {}, "div"); - }, { - geocode: true - }); - } - - /*---------------鑾峰彇瀹氫綅淇℃伅-------------------*/ - //澶勭悊瀹氫綅鍚庣殑淇℃伅 - function showLocation(r) { - var bd09 = ""; - if (r.coordsType == 'gcj02') { - //鍥芥祴灞�鍧愭爣杞櫨搴﹀潗鏍� - bd09 = gcj02_To_Bd09(r.coords.longitude, r.coords.latitude); - } else if (r.coordsType == 'wgs84') { - //wgs84杞櫨搴﹀潗鏍� - bd09 = wgs84_To_Bd09(r.coords.longitude, r.coords.latitude); - } else { - bd09 = r.coords.longitude + "," + r.coords.latitude - } - var location = bd09.split(","); - longitude = location[0]; - latitude = location[1]; - //鑾峰彇鎷嶇収涓婁紶鏂囦欢鍚� - choosePic(); - } - //鍥芥祴灞�鍧愭爣(鍗崇伀鏄熷潗鏍噂cj02) 杞寲涓虹櫨搴﹀潗鏍�(鍗矪D-09) - function gcj02_To_Bd09(gcj_lon, gcj_lat) { - var x = gcj_lon, - y = gcj_lat; - var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * pi); - var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * pi); - var bd_lon = z * Math.cos(theta) + 0.0065; - var bd_lat = z * Math.sin(theta) + 0.006; - return bd_lon + "," + bd_lat; - } - //鍦扮悆鍧愭爣(鍗硍gs84) 杞寲涓虹櫨搴﹀潗鏍�(鍗矪D-09) - function wgs84_To_Bd09(wgs_lon, wgs_lat) { - //绗竴娆¤浆鎹�(wgs84杞琯cj02) - var dlat = transformlat(wgs_lon - 105.0, wgs_lat - 35.0); - var dlng = transformlon(wgs_lon - 105.0, wgs_lat - 35.0); - var radlat = wgs_lat / 180.0 * pi; - var magic = Math.sin(radlat); - magic = 1 - ee * magic * magic; - var sqrtmagic = Math.sqrt(magic); - dlat = (dlat * 180.0) / ((a * (1 - ee)) / (magic * sqrtmagic) * pi); - dlng = (dlng * 180.0) / (a / sqrtmagic * Math.cos(radlat) * pi); - var mglat = wgs_lat + dlat; - var mglng = wgs_lon + dlng; - - //绗簩娆¤浆鎹�(gcj02杞琤d09) - var z = Math.sqrt(mglng * mglng + mglat * mglat) + 0.00002 * Math.sin(mglat * x_pi); - var theta = Math.atan2(mglat, mglng) + 0.000003 * Math.cos(mglng * x_pi); - var bd_lon = z * Math.cos(theta) + 0.0065; - var bd_lat = z * Math.sin(theta) + 0.006; - return bd_lon + "," + bd_lat; - } - - function transformlat(lat, lon) { - var ret = -100.0 + 2.0 * lon + 3.0 * lat + 0.2 * lat * lat + 0.1 * lon * lat + 0.2 * Math.sqrt(Math.abs(lon)); - ret += (20.0 * Math.sin(6.0 * lon * pi) + 20.0 * Math.sin(2.0 * lon * pi)) * 2.0 / 3.0; - ret += (20.0 * Math.sin(lat * pi) + 40.0 * Math.sin(lat / 3.0 * pi)) * 2.0 / 3.0; - ret += (160.0 * Math.sin(lat / 12.0 * pi) + 320 * Math.sin(lat * pi / 30.0)) * 2.0 / 3.0; - return ret; - } - - function transformlon(lat, lon) { - var ret = 300.0 + lon + 2.0 * lat + 0.1 * lon * lon + 0.1 * lon * lat + 0.1 * Math.sqrt(Math.abs(lon)); - ret += (20.0 * Math.sin(6.0 * lon * pi) + 20.0 * Math.sin(2.0 * lon * pi)) * 2.0 / 3.0; - ret += (20.0 * Math.sin(lon * pi) + 40.0 * Math.sin(lon / 3.0 * pi)) * 2.0 / 3.0; - ret += (150.0 * Math.sin(lon / 12.0 * pi) + 300.0 * Math.sin(lon / 30.0 * pi)) * 2.0 / 3.0; - return ret; - } - - /*---------------璋冪敤鐩告満鎷嶇収-------------------*/ - //鎷嶇収涓婁紶 - function choosePic() { - var btnArray = [{ - title: "鎷嶇収鎵撳崱" - }]; - plus.nativeUI.actionSheet({ - title: "璇烽�夋嫨", - cancel: "鍙栨秷", - buttons: btnArray - }, - function(e) { - var index = e.index; - switch (index) { - case 1: - cameraImg(); - break; - } - }); - }; - //鐩告満鎷嶇収 - function cameraImg() { - var cmr = plus.camera.getCamera(); - cmr.captureImage(function(p) { - //鎴愬姛 - plus.io.resolveLocalFileSystemURL(p, function(entry) { - var path = entry.toLocalURL(); //鑾峰緱鍥剧墖璺緞 - uploadImg(path); - }, function(e) { - mui.toast("璇诲彇鎷嶇収鍥剧墖閿欒锛岃閲嶈瘯锛�"); - }); - }, function(e) { - mui.toast("鎷嶇収澶辫触锛岃閲嶈瘯锛�"); - }); - } - - //寮�濮嬩笂浼� - function uploadImg(path) { - //杞湀绛夊緟妗� - var wt = plus.nativeUI.showWaiting(); - //涓婁紶 - var task = plus.uploader.createUpload(uploadUrl, { - method: "POST" - }, - function(t, status) { //涓婁紶瀹屾垚 - if (status == 200) { - var obj = JSON.parse(t.responseText); - imgName = obj.data.fileName; - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - //涓婁紶鎵撳崱璁板綍淇℃伅 - if (imgName && longitude && latitude) { - data.data.imgName = imgName; - data.data.longitude = longitude; - data.data.latitude = latitude; - //鍙戦�佽姹� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - mui.alert("鎵撳崱鎴愬姛锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } else { - mui.alert("涓婁紶澶辫触锛岃閲嶈瘯锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - } - } else { - mui.alert("涓婁紶澶辫触锛岃閲嶈瘯锛�", '鎻愮ず', ["纭畾"], function() {}, "div"); - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - } - }); - //鍥剧墖淇℃伅 - task.addFile(path, { - key: "uploadkey" - }); - task.start(); - } - </script> - </body> -</html> \ No newline at end of file diff --git a/igds-app/pest-detail.html b/igds-app/pest-detail.html deleted file mode 100644 index 3070e30..0000000 --- a/igds-app/pest-detail.html +++ /dev/null @@ -1,252 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>铏灞曠ず</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .pest_title { - background: #fff; - border-bottom: 1px #efefef solid; - padding: 20px; - box-sizing: border-box; - width: 96%; - margin: auto; - } - - .pest_title strong { - display: block; - text-align: center; - color: #245ca7; - font-size: 16px; - } - - .pest_title span { - display: block; - text-align: center; - padding: 5px 0; - font-size: 14px; - } - - .pest_table { - width: 96%; - margin: auto; - margin-top: 6px; - } - - .pest_table table { - width: 100%; - background-color: #fff !important - } - - .pest_table th { - border-top: 1px #efefef solid !important; - font-size: 15px; - text-align: center; - } - - .pest_table tr { - font-size: 14px; - text-align: center; - line-height: 35px; - } - - .pest_table td { - border-top: 1px #efefef solid !important; - } - - .pest_table .yello { - color: #ffa800; - } - - .pest_table .red { - color: #f00; - } - - .pest_table .blue { - color: #0020c1; - } - - .pest_table .green { - color: #1c7430; - } - - - .pest_btn { - display: block; - text-align: center; - } - - .pest_btn button { - background: #668dc1; - color: #fff; - border: 0px; - border-radius: 3px; - height: 44px; - line-height: 44px; - padding: 0 20px; - margin: 10px 0; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title"><span id="depotName"></span>铏淇℃伅</h1> - </header> - <div class="mui-content"> - <div class="pest_title"> - <strong>铏妫�娴嬭褰�</strong> - </div> - <div class="pest_table"> - <table> - <thead> - <tr> - <th width="25%">妫�娴嬫椂闂�</th> - <th width="25%" class="red">鎬绘娴嬩綅</th> - <th width="25%" class="blue">铏鏁伴噺</th> - <th width="25%" class="green">妫�娴嬬粨鏋�</th> - </tr> - </thead> - <tbody id="pestList"> - <!-- <tr> - <td>01-01 01:01</td> - <td class="red">##</td> - <td class="blue">##</td> - <td class="green">##</td> - </tr> --> - </tbody> - </table> - </div> - <div class="pest_btn"> - <button onclick="gatherPest()">铏閲囬泦</button> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var pestData; //闆嗗悎 - //铏灞曠ず鎺ュ彛鏁版嵁 - var data1 = { - "interfaceId": "5308", - "sign": "10308", - "outId": "10308", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "", - "type": "" - } - }; - //铏閲囬泦鐨勫弬鏁� - var data2 = { - "interfaceId": "5309", - "sign": "10309", - "outId": "10309", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "depotId": "" - } - }; - - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - $("#depotName").html(curr.depotName); - //鑾峰彇鎺ュ彛璺緞鍙妕okenAuth - var user = JSON.parse(localStorage.getItem('user')) - //璇锋眰鍙傛暟璧嬪�� - data1.tokenAuth = user.tokenAuth; - data1.data.depotId = curr.depotId; - data1.data.type = curr.depotType; - data2.tokenAuth = user.tokenAuth; - data2.data.depotId = curr.depotId; - url = user.url + "/api-phone/gateway"; - //鏌ヨ浠撳簱铏淇℃伅 - getPestData(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getPestData() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - if (result.code == "0000") { - pestData = result.data; - if (pestData != null && pestData.length > 0) { - renderPestList(); - } else { - mui.alert("鏆傛棤妫�娴嬭褰曪紒", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert('鏃犺櫕瀹虫娴嬭褰曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderPestList() { - var html = ''; - $.each(pestData, function(index, item) { - html += '<tr><td>' + item.receiveDate + '</td>'; - html += '<td class="red">' + item.checkNum + '</td>'; - html += '<td class="blue">' + item.pestNum + '</td>'; - html += '<td class="green">' + item.isPest + '</td></tr>'; - }) - $("#pestList").html(html); - } - //铏閲囬泦 - function gatherPest() { - //鍙戦�佽姹傞噰闆嗘皵浣� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data2), - success: function(data) { - if (data.code == "0000") { - mui.alert('閲囬泦鍛戒护鍙戦�佹垚鍔燂紝璇风瓑寰�30绉掗噸鏂版墦寮�姝ら〉闈㈡煡鐪嬮噰闆嗘暟鎹紒', '鎻愮ず',["纭畾"],function(){},"div"); - } else { - mui.alert(data.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/pest-display.html b/igds-app/pest-display.html deleted file mode 100644 index 1bb761c..0000000 --- a/igds-app/pest-display.html +++ /dev/null @@ -1,205 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>铏妫�娴�</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .pest_depot { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .pest_depot_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .pest_depot_body { - padding-left: 15px; - } - - .pest_depot_body table { - width: 100%; - } - - .pest_depot_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .pest_depot_img { - width: 8px; - margin-right: 3px; - } - - .pest_depot_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .pest_depot_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">铏妫�娴�-浠撳簱鍒楄〃</h1> - </header> - <div class="mui-content"> - <div id="pestList"> - <!-- <div class="pest_depot"> - <div class="pest_depot_title"></div> - <div class="pest_depot_body"> - <table> - <tr class="pest_depot_tr"> - <td class="pest_depot_one">浠撳簱鍚嶇О锛�</td> - <td class="pest_depot_two">##鍙蜂粨</td> - <td> - <a href="javascript:void(0)" (click)="pestDetail(item.depotType,item.depotId,item.depotName,item.storeKeeperName)"> - <img class="pest_depot_img" src="./images/ico_arr.png"> - </a> - </td> - </tr> - <tr> - <td class="pest_depot_one">浠撳簱鐘舵�侊細</td> - <td class="pest_depot_two">###</td> - <td></td> - </tr> - <tr> - <td class="pest_depot_one">鏄惁鏈夎櫕锛�</td> - <td class="pest_depot_two">##</td> - <td></td> - </tr> - <tr style="border-bottom: 0 #efefef solid;"> - <td class="pest_depot_one">妫�娴嬫椂闂达細</td> - <td class="pest_depot_two">2020-01-01 01:01:01</td> - <td></td> - </tr> - </table> - </div> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var pestList; //铏浠撳簱鍒楄〃闆嗗悎闆嗗悎 - var data = { - "interfaceId": "5301", - "sign": "10301", - "outId": "10301", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "type": "pest" - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getPestList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getPestList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - pestList = result.data; - if (pestList != null && pestList.length > 0) { - renderPestList(); - } else { - mui.alert("鏆傛棤鏁版嵁锛�", '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderPestList() { - var html = ''; - $.each(pestList, function(index, item) { - html += '<div class="pest_depot"><div class="pest_depot_title"></div><div class="pest_depot_body"><table>'; - - html += '<tr class="pest_depot_tr"><td class="pest_depot_one">浠撳簱鍚嶇О锛�</td><td class="pest_depot_two">' - + item.depotName + '</td><td><a href="javascript:void(0)" onclick="pestDetail(\''+index+'\')">' - + '<img class="pest_depot_img" src="./images/ico_arr.png"></a></td></tr>'; - - html += '<tr><td class="pest_depot_one">浠撳簱鐘舵�侊細</td><td class="pest_depot_two">' - + (item.depotStatusName?item.depotStatusName:'') + '</td><td></td></tr>'; - - html += '<tr><td class="pest_depot_one">鏄惁鏈夎櫕锛�</td><td class="pest_depot_two">' - + (item.isPest?item.isPest:'') + '</td><td></td></tr>'; - - html += '<tr><td class="pest_depot_one">妫�娴嬫椂闂达細</td><td class="pest_depot_two">' - + (item.receiveDate == null ? '鏃犳娴嬭褰�' : item.receiveDate) + '</td><td></td></tr>'; - - html += '</table></div></div>'; - }) - $("#pestList").html(html); - } - - //璺宠浆璇︽儏椤甸潰 - function pestDetail(index) { - mui.openWindow({ - url: "pest-detail.html", - id: "pest-detail", - extras: { - depotType: pestList[index].depotType, - depotId: pestList[index].depotId, - depotName: pestList[index].depotName - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/quality-detail.html b/igds-app/quality-detail.html deleted file mode 100644 index d09e3e0..0000000 --- a/igds-app/quality-detail.html +++ /dev/null @@ -1,140 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>璐ㄩ噺璇︽儏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .depot_detail { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_detail_title { - background: #6b9ddf; - height: 36px; - border-top-left-radius: 10px; - border-top-right-radius: 10px; - text-align: center; - font-size: 18px; - padding: 6px 0; - color: #fff - } - - .depot_detail_body { - padding-left: 15px; - } - - .depot_detail_body table { - width: 100%; - } - - .depot_detail_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .depot_detail_img { - width: 8px; - margin-right: 3px; - } - - .depot_detail_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .depot_detail_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">璐ㄩ噺璇︽儏</h1> - </header> - <div class="mui-content"> - - <div class="depot_detail"> - <div class="depot_detail_title"><span id="depotName"></span>璐ㄩ噺淇℃伅</div> - <div class="depot_detail_body"> - <table> - <tr class="depot_detail_tr"> - <td class="depot_detail_one">浠撳簱绫诲瀷锛�</td> - <td class="depot_detail_two" id="depotTypeName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮鍝佺锛�</td> - <td class="depot_detail_two" id="foodVarietyName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮鎬ц川锛�</td> - <td class="depot_detail_two" id="foodTypeName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮骞翠唤锛�</td> - <td class="depot_detail_two" id="foodYear"></td> - </tr> - <tr> - <td class="depot_detail_one">鍏ュ簱骞翠唤锛�</td> - <td class="depot_detail_two" id="storeDate"></td> - </tr> - <tr> - <td class="depot_detail_one">瀹為檯鍌ㄩ噺锛�</td> - <td class="depot_detail_two" id="storageReal"></td> - </tr> - <tr> - <td class="depot_detail_one">淇濈鍛橈細</td> - <td class="depot_detail_two" id="storeKeeperName"></td> - </tr> - </table> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - $("#depotName").html(curr.item.depotName); - $("#depotTypeName").html(curr.item.depotTypeName); - $("#foodVarietyName").html(curr.item.foodVarietyName); - $("#foodTypeName").html(curr.item.foodTypeName); - $("#foodYear").html(curr.item.foodYear); - $("#storeDate").html(curr.item.storeDate); - $("#storageReal").html(curr.item.storageReal); - $("#storeKeeperName").html(curr.item.storeKeeperName); - }) - </script> - </body> -</html> diff --git a/igds-app/quality-manage.html b/igds-app/quality-manage.html deleted file mode 100644 index 6f5b458..0000000 --- a/igds-app/quality-manage.html +++ /dev/null @@ -1,208 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>璐ㄩ噺绠$悊</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .depot { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_body { - padding-left: 15px; - } - - .depot_body table { - width: 100%; - } - - .depot_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .depot_img { - width: 8px; - margin-right: 3px; - } - - .depot_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .depot_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">璐ㄩ噺绠$悊</h1> - </header> - <div class="mui-content"> - <div id="depotList"> - <!-- <div class="depot"> - <div class="depot_title"></div> - <div class="depot_body"> - <table> - <tr class="depot_tr"> - <td class="depot_one">浠撳簱鍚嶇О锛�</td> - <td class="depot_two">##鍙蜂粨</td> - <td> - <a href="javascript:void(0)" onclick="depotDetail('item')"> - <img class="depot_img" src="./images/ico_arr.png"> - </a> - </td> - </tr> - <tr> - <td class="depot_one">浠撳簱鐘舵�侊細</td> - <td class="depot_two">###</td> - <td></td> - </tr> - <tr> - <td class="depot_one">绮鍝佺锛�</td> - <td class="depot_two">##</td> - <td></td> - </tr> - <tr> - <td class="depot_one">瀹為檯鍌ㄩ噺锛�</td> - <td class="depot_two">#### KG</td> - <td></td> - </tr> - <tr> - <td class="depot_one">淇濈鍛橈細</td> - <td class="depot_two">###</td> - <td></td> - </tr> - </table> - </div> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var depotList; //浠撳簱淇℃伅闆嗗悎 - var data = { - "interfaceId": "5103", - "sign": "10103", - "outId": "10103", - "reqDateTime": new Date(), - "tokenAuth": "", - "keyWord": "" - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getdepotList(); - }) - - //鑾峰彇浠撳簱淇℃伅 - function getdepotList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - depotList = result.data; - if (depotList != null && depotList.length > 0) { - renderDepotList(); - } else { - mui.alert('鏆傛棤鏁版嵁锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸鏂扮櫥褰曞皾璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDepotList() { - var html = ''; - $.each(depotList, function(index, item) { - html += '<div class="depot"><div class="depot_title"></div><div class="depot_body"><table>'; - - html += '<tr class="depot_tr"><td class="depot_one">浠撳簱鍚嶇О锛�</td>' + - '<td class="depot_two">' + item.depotName + '</td><td>' + - '<a href="javascript:void(0)" onclick="depotDetail(\'' + index + '\')">' + - '<img class="depot_img" src="./images/ico_arr.png"></a></td></tr>'; - - html += '<tr><td class="depot_one">浠撳簱鐘舵�侊細</td><td class="depot_two">' + - (item.depotStatusName ? item.depotStatusName : '') + '</td><td></td></tr>'; - - html += '<tr><td class="depot_one">绮鍝佺锛�</td><td class="depot_two">' + - (item.foodVarietyName ? item.foodVarietyName : '') + '</td><td></td></tr>'; - - html += '<tr><td class="depot_one">瀹為檯鍌ㄩ噺锛�</td><td class="depot_two">' + - (item.storageReal ? item.storageReal : '') + ' KG</td><td></td></tr>'; - - html += '<tr><td class="depot_one">淇濈鍛橈細</td><td class="depot_two">' + - (item.storeKeeperName ? item.storeKeeperName : '') + '</td><td></td></tr>'; - html += '</table></div></div>'; - }) - $("#depotList").html(html); - } - - //璺宠浆璇︽儏椤甸潰 - function depotDetail(index) { - mui.openWindow({ - url: "quality-detail.html", - id: "quality-detail", - extras: { - item: depotList[index] - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/setting-100.html b/igds-app/setting-100.html deleted file mode 100644 index f66a9c9..0000000 --- a/igds-app/setting-100.html +++ /dev/null @@ -1,138 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>璁剧疆</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - .user{ - background: url(../images/bg_user.png) no-repeat top center #3280e8; - background-size:100% 100%; - text-align: center; - padding: 35px; - box-sizing: border-box; - } - .user img{ - width: 70px; - height: 70px; - border-radius: 100px; - display: block; - margin:0 auto 10px auto; - border: 2px #fff solid; - } - .user p{ - font-size: 16px; - margin: 0px; - padding: 0px; - color: #fff; - } - .user_list li { - padding: 0 5px; - line-height: 42px; - display: flex; - justify-content: space-between; - box-sizing: border-box; - border-bottom: 1px #f1f1f1 solid; - } - .m01{ - background: url(./images/ico_qchc.png) no-repeat 1px center; - background-size: 28px auto; - margin-left: 10px; - } - .m02{ - background: url(./images/ico_xgxx.png) no-repeat 1px center; - background-size: 28px auto; - margin-left: 10px; - } - .m03{ - background: url(./images/ico_sp.png) no-repeat 1px center; - background-size: 28px auto; - margin-left: 10px; - } - .m04{ - background: url(./images/ico_guany.png) no-repeat 1px center; - background-size: 28px auto; - margin-left: 10px; - } - .user_list li span{ - padding-left: 35px; - font-size: 17px; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <h1 class="mui-title">璁剧疆</h1> - </header> - <div class="mui-content"> - <!--鐢ㄦ埛涓績--> - <div class="user"> - <img src="./images/Avatarsample25.png"> - <p id="cname">寮犱笁</p> - </div> - <!--鍒楄〃--> - <div class="user_list"> - <ul class="mui-table-view"> - <li class="m01" onclick="clearApp()"> - <span>娓呴櫎缂撳瓨</span> - </li> - <li class="m02" onclick="update()"> - <span>淇敼淇℃伅</span> - </li> - <li class="m03" onclick="loginOut()"> - <span>閫�鍑虹櫥褰�</span> - </li> - <li class="m04" onclick="regards()"> - <span>鍏充簬</span> - </li> - </ul> - <div class="clearfix"></div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - $("#cname").html(user.cname); - }); - - //娓呴櫎缂撳瓨 - function clearApp() { - localStorage.removeItem("user"); - mui.toast("缂撳瓨娓呴櫎鎴愬姛!"); - } - - //閫�鍑虹櫥褰� - function loginOut() { - plus.runtime.restart(); - } - //淇敼淇℃伅 - function update() { - mui.openWindow({ - url: "edit.html", - id: "edit" - }) - } - - //鍏充簬 - function regards() { - mui.openWindow({ - url: "information.html", - id: "information" - }) - } - </script> - </body> -</html> diff --git a/igds-app/storage-detail.html b/igds-app/storage-detail.html deleted file mode 100644 index 0236b7c..0000000 --- a/igds-app/storage-detail.html +++ /dev/null @@ -1,140 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀛樺偍璇︽儏</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .depot_detail { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_detail_title { - background: #6b9ddf; - height: 36px; - border-top-left-radius: 10px; - border-top-right-radius: 10px; - text-align: center; - font-size: 18px; - padding: 6px 0; - color: #fff - } - - .depot_detail_body { - padding-left: 15px; - } - - .depot_detail_body table { - width: 100%; - } - - .depot_detail_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .depot_detail_img { - width: 8px; - margin-right: 3px; - } - - .depot_detail_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .depot_detail_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瀛樺偍璇︽儏</h1> - </header> - <div class="mui-content"> - - <div class="depot_detail"> - <div class="depot_detail_title"><span id="depotName"></span>瀛樺偍淇℃伅</div> - <div class="depot_detail_body"> - <table> - <tr class="depot_detail_tr"> - <td class="depot_detail_one">浠撳簱绫诲瀷锛�</td> - <td class="depot_detail_two" id="depotTypeName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮鍝佺锛�</td> - <td class="depot_detail_two" id="foodVarietyName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮鎬ц川锛�</td> - <td class="depot_detail_two" id="foodTypeName"></td> - </tr> - <tr> - <td class="depot_detail_one">绮骞翠唤锛�</td> - <td class="depot_detail_two" id="foodYear"></td> - </tr> - <tr> - <td class="depot_detail_one">鍏ュ簱骞翠唤锛�</td> - <td class="depot_detail_two" id="storeDate"></td> - </tr> - <tr> - <td class="depot_detail_one">瀹為檯鍌ㄩ噺锛�</td> - <td class="depot_detail_two" id="storageReal"></td> - </tr> - <tr> - <td class="depot_detail_one">淇濈鍛橈細</td> - <td class="depot_detail_two" id="storeKeeperName"></td> - </tr> - </table> - </div> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - mui.plusReady(function() { - //鑾峰彇浠撳簱鍙傛暟锛屽浠撳簱Id锛屼粨搴撶被鍨嬪拰浠撳簱鍚嶇О - var curr = plus.webview.currentWebview(); - $("#depotName").html(curr.item.depotName); - $("#depotTypeName").html(curr.item.depotTypeName); - $("#foodVarietyName").html(curr.item.foodVarietyName); - $("#foodTypeName").html(curr.item.foodTypeName); - $("#foodYear").html(curr.item.foodYear); - $("#storeDate").html(curr.item.storeDate); - $("#storageReal").html(curr.item.storageReal); - $("#storeKeeperName").html(curr.item.storeKeeperName); - }); - </script> - </body> -</html> diff --git a/igds-app/storage-manage.html b/igds-app/storage-manage.html deleted file mode 100644 index 9a0378e..0000000 --- a/igds-app/storage-manage.html +++ /dev/null @@ -1,208 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瀛樺偍绠$悊</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .depot { - background: #fff; - width: 94%; - margin: auto; - margin-top: 12px; - margin-bottom: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_title { - background: rgb(68, 189, 245); - height: 10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } - - .depot_body { - padding-left: 15px; - } - - .depot_body table { - width: 100%; - } - - .depot_body tr { - border-bottom: 1px #efefef solid; - height: 32px; - line-height: 32px; - } - - .depot_img { - width: 8px; - margin-right: 3px; - } - - .depot_one { - color: rgb(102, 102, 102); - font-size: 15px; - width: 35%; - } - - .depot_two { - color: black; - font-size: 16px; - font-weight: 510; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瀛樺偍绠$悊</h1> - </header> - <div class="mui-content"> - <div id="depotList"> - <!-- <div class="depot"> - <div class="depot_title"></div> - <div class="depot_body"> - <table> - <tr class="depot_tr"> - <td class="depot_one">浠撳簱鍚嶇О锛�</td> - <td class="depot_two">##鍙蜂粨</td> - <td> - <a href="javascript:void(0)" onclick="depotDetail('item')"> - <img class="depot_img" src="./images/ico_arr.png"> - </a> - </td> - </tr> - <tr> - <td class="depot_one">浠撳簱鐘舵�侊細</td> - <td class="depot_two">###</td> - <td></td> - </tr> - <tr> - <td class="depot_one">绮鍝佺锛�</td> - <td class="depot_two">##</td> - <td></td> - </tr> - <tr> - <td class="depot_one">瀹為檯鍌ㄩ噺锛�</td> - <td class="depot_two">#### KG</td> - <td></td> - </tr> - <tr> - <td class="depot_one">淇濈鍛橈細</td> - <td class="depot_two">###</td> - <td></td> - </tr> - </table> - </div> - </div> --> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var depotList; //浠撳簱淇℃伅闆嗗悎 - var data = { - "interfaceId": "5102", - "sign": "10102", - "outId": "10102", - "reqDateTime": new Date(), - "tokenAuth": "", - "keyWord": "" - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getdepotList(); - }); - - //鑾峰彇浠撳簱淇℃伅 - function getdepotList() { - //鍙戦�佽姹傝幏鍙栦粨搴撲俊鎭� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - depotList = result.data; - if (depotList != null && depotList.length > 0) { - renderDepotList(); - } else { - mui.alert('鏆傛棤鏁版嵁锛�', '鎻愮ず',["纭畾"],function(){},"div"); - } - } else { - mui.alert(result.msg, '鎻愮ず',["纭畾"],function(){},"div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸鏂扮櫥褰曞皾璇曪紒', '鎻愮ず',["纭畾"],function(){},"div"); - } - }) - } - - //娓叉煋 - function renderDepotList() { - var html = ''; - $.each(depotList, function(index, item) { - html += '<div class="depot"><div class="depot_title"></div><div class="depot_body"><table>'; - - html += '<tr class="depot_tr"><td class="depot_one">浠撳簱鍚嶇О锛�</td>' + - '<td class="depot_two">' + item.depotName + '</td><td>' + - '<a href="javascript:void(0)" onclick="depotDetail(\'' + index + '\')">' + - '<img class="depot_img" src="./images/ico_arr.png"></a></td></tr>'; - - html += '<tr><td class="depot_one">浠撳簱鐘舵�侊細</td><td class="depot_two">' + - (item.depotStatusName ? item.depotStatusName : '') + '</td><td></td></tr>'; - - html += '<tr><td class="depot_one">绮鍝佺锛�</td><td class="depot_two">' + - (item.foodVarietyName ? item.foodVarietyName : '') + '</td><td></td></tr>'; - - html += '<tr><td class="depot_one">瀹為檯鍌ㄩ噺锛�</td><td class="depot_two">' + - (item.storageReal ? item.storageReal : '') + ' KG</td><td></td></tr>'; - - html += '<tr><td class="depot_one">淇濈鍛橈細</td><td class="depot_two">' + - (item.storeKeeperName ? item.storeKeeperName : '') + '</td><td></td></tr>'; - html += '</table></div></div>'; - }) - $("#depotList").html(html); - } - - //璺宠浆璇︽儏椤甸潰 - function depotDetail(index) { - mui.openWindow({ - url: "storage-detail.html", - id: "storage-detail", - extras: { - item: depotList[index] - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/text.html b/igds-app/text.html deleted file mode 100644 index 04fa2c0..0000000 --- a/igds-app/text.html +++ /dev/null @@ -1,249 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>瑙嗛鐩戞帶</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - - .ad { - display: block; - } - - .ad img { - width: 100%; - height: auto; - } - - .video_list { - display: block; - background: #fff; - } - - .video_list li { - border-bottom: 1px #eee solid; - padding: 10px 15px; - box-sizing: border-box; - background: url(../images/ico_arr.png)no-repeat right 15px center; - background-size: 7px auto; - } - - .video_list li a { - display: flex; - } - - .video_list img { - width: 8%; - align-self: center; - } - - .video_list span { - align-self: center; - margin-left: 10px; - color: #333; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">瑙嗛鐩戞帶</h1> - </header> - <div class="mui-content"> - <!--add--> - <div class="ad" id="video"> - <!-- <easy-player id="easyPlayer" live="true" show-custom-button="true" auto-play="true" muted="true"></easy-player> --> - <img src="./images/spad0.png" /> - </div> - <!--list--> - <div class="video_list" > - <ul id="videoList" class="mui-table-view"> - <!-- <li> - <a onclick="toVideo()"> - <img src="./images/ico_sp.png"> - <span>瑙嗛鐩戞帶璁惧锛�###01</span> - </a> - </li> --> - </ul> - </div> - </div> - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - <script src="./js/EasyPlayer-element.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var url; //鎺ュ彛璺緞 - var videoList; //瑙嗛璁惧闆嗗悎 - var timer; - var cameraData; - //杞湀绛夊緟妗� - var wt; - var data = { - "interfaceId": "5601", - "sign": "10501", - "outId": "10501", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - - } - }; - var data0 = { - "interfaceId": "5602", - "sign": "10602", - "outId": "10602", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "cameraId": "", - "playType": "" - } - }; - var data1 = { - "interfaceId": "5603", - "sign": "10603", - "outId": "10603", - "reqDateTime": new Date(), - "tokenAuth": "", - "data": { - "playType": "", - "sn": "", - "ip": "", - "msg": "" - } - }; - - mui.plusReady(function() { - var user = JSON.parse(localStorage.getItem('user')); - data.tokenAuth = user.tokenAuth; - data0.tokenAuth = user.tokenAuth; - url = user.url + "/api-phone/gateway"; - getVideoList(); - }) - - function getVideoList() { - //鍙戦�佽姹傝幏鍙栬棰戣澶� - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data), - success: function(result) { - if (result.code == "0000") { - videoList = result.data; - renderVideo(); - } else { - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - //娓叉煋瑙嗛鐩戞帶璁惧 - function renderVideo() { - var html = ''; - if (videoList != null && videoList.length > 0) { - $.each(videoList, function(index, item) { - html += '<li onclick="getVideo(\'' + index + '\')"><a>'; - html += '<img src="./images/ico_sp.png">'; - html += '<span>鐩戞帶璁惧锛�' + item.name + '</span></a></li>'; - }) - } else { - html += '<li><a><span>鏆傛棤鐩稿叧璁惧</span></a></li>'; - } - $("#videoList").html(html); - } - - //鎾斁 - function getVideo(tag) { - wt = plus.nativeUI.showWaiting("璇风◢鍚�...") - data0.data.cameraId = videoList[tag].id - data0.data.playType = videoList[tag].playType - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data0), - success: function(result) { - if (result.code == "0000") { - var cameraData = result.data; - var addr = result.data.playAddr; - if (addr) { - //鎾斁瑙嗛 - toVideo(); - } else { - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - } else { - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }, - error: function() { - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - mui.alert('绯荤粺绻佸繖,璇烽噸璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div"); - } - }) - } - - function toVideo() { - $('#video').html(""); - var html = '<easy-player id="easyPlayer" video-url="' + cameraData.playAddr + - '" live="true" show-custom-button="true" auto-play="true" muted="true"></easy-player>'; - //鍏抽棴杞湀绛夊緟妗� - wt.close(); - $('#video').html(html); - // $('#easyPlayer').attr('video-url',addr); - //瀹氭椂鍣�-淇濇椿鐩存挱 - if (timer) clearInterval(timer); - timer = setInterval(function () { - keepAlive(); - }, 15*1000); - } - - function keepAlive() { - data1.data = cameraData.playType, - data1.data = cameraData.sn, - data1.data = cameraData.ipIn, - data1.data = Math.random() - mui.ajax(url, { - type: "POST", - dataType: "json", - crossDomain: true, - contentType: "application/json;charset=utf-8", - data: JSON.stringify(data1), - success: function(result) { - }, - error: function() { - } - }) - } - </script> - </body> -</html> diff --git a/igds-app/weather.html b/igds-app/weather.html deleted file mode 100644 index 5c60092..0000000 --- a/igds-app/weather.html +++ /dev/null @@ -1,50 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title>姘旇薄淇℃伅</title> - <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> - <link href="./css/mui.min.css" rel="stylesheet" /> - - <style> - .mui-bar-nav { - background: #245ca7; - -webkit-box-shadow: none; - box-shadow: none; - } - - .mui-title { - color: #FFFFFF; - } - - .mui-icon-back:before, - .mui-icon-left-nav:before { - color: #FFFFFF; - } - </style> - </head> - <body> - <header class="mui-bar mui-bar-nav"> - <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> - <h1 class="mui-title">姘旇薄淇℃伅</h1> - </header> - - <script src="./js/mui.js"></script> - <script src="./js/jquery.min.js"></script> - <script src="./js/echarts.min.js"></script> - - <script type="text/javascript" charset="utf-8"> - mui.init(); - var str = window.location.search; - var myid = str.substring(str.indexOf('=') + 1) - mui.plusReady(function() { - var self = plus.webview.currentWebview(); - var qixiangWV = plus.webview.create(myid, "qixiang", { - top: "44px", - bottom: 0, - }); - self.append(qixiangWV); - }); - </script> - </body> -</html> -- Gitblit v1.9.3