yanchengPowerSupply/node_modules/.cache/babel-loader/cd316c0a266fc2348a4a67eb704...

1 line
33 KiB
JSON

{"remainingRequest":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\林谷智能项目\\yanchengPowerSupply\\src\\App.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\src\\App.vue","mtime":1689927995523},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\babel.config.js","mtime":1689557787923},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\林谷智能项目\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.regexp.split\";\nimport MinxinItem from \"./mixins\";\nimport axios from \"axios\";\nimport { getWather, Weather, getToken } from \"./api/index.js\";\nexport default {\n name: \"home\",\n mixins: [MinxinItem],\n data: function data() {\n return {\n addDay: \"\",\n subDay: \"\",\n backShow: false,\n routerTitle: [\"实时监测\", \"安全管控\", \"站房智辅\"],\n routerActive: 0,\n middleImg: require(\"./assets/indexN/titleText.png\"),\n weatherArr: [{\n day: \"今天\",\n temperature: \"\",\n pic: require(\"./assets/images/sun.png\")\n }, {\n day: \"昨天\",\n temperature: \"\",\n pic: require(\"./assets/images/union.png\")\n }, {\n day: \"明天\",\n temperature: \"\",\n pic: require(\"./assets/images/windy.png\")\n }],\n weekList: [\"周日\", \"周一\", \"周二\", \"周三\", \"周四\", \"周五\", \"周六\"],\n week: \"\",\n nowDate: ''\n };\n },\n mounted: function mounted() {\n var _this = this;\n // this.handleWather();\n var week = new Date(this.$moment().format(\"YYYY-MM-DD\")).getDay();\n this.week = this.weekList[week];\n this.getLoc();\n // let params = new URLSearchParams()\n // let params = {\n // appKey: \"symnzwxdfu1ul8raqrykgbld7zonktga\",\n // appSecret: \"a3tdb6nxfciekxcgcl94ljvtmw2lsafx\",\n // };\n // params.append('appKey','symnzwxdfu1ul8raqrykgbld7zonktga')\n // params.append('appSecret','a3tdb6nxfciekxcgcl94ljvtmw2lsafx')\n // getToken(params).then((res) => {\n // localStorage.setItem(\"token\", res.data.data.token);\n // // console.log(localStorage.getItem('token'),'token');\n // });\n // setInterval(()=>{\n // this. handleWather()\n // },480000)\n setInterval(function () {\n _this.nowDate = _this.$moment().format(\"HH:mm:ss\");\n }, 100);\n window.getLoc = this.getLoc;\n },\n methods: {\n getLoc: function getLoc() {\n var curWwwPath = window.document.location.href;\n console.log(\"curWwwPath\", curWwwPath);\n var paramArr = curWwwPath.split('/');\n var ele = paramArr.pop();\n console.log(\"ele\", ele);\n if (ele == 'index') {\n this.backShow = false;\n this.middleImg = require(\"./assets/indexN/titleText.png\");\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'stationBuilding') {\n this.middleImg = require(\"./assets/title/02.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"72%\";\n this.$refs.switchBtn.style.width = \"36%\";\n } else if (ele == 'twentyKV') {\n this.middleImg = require(\"./assets/title/03.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'thirtyFiveKV') {\n this.middleImg = require(\"./assets/title/04.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'powerQualityControl') {\n this.middleImg = require(\"./assets/title/05.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'ruralRevitalizationPower') {\n this.middleImg = require(\"./assets/title/07.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'enterprisePollutionMonitoring') {\n this.middleImg = require(\"./assets/title/08.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'ruralDomesticSewageTreatment') {\n this.middleImg = require(\"./assets/title/07.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n } else if (ele == 'digitalFloodDrainageDroughtRelief') {\n this.middleImg = require(\"./assets/title/09.png\"), this.backShow = true;\n this.$refs.switchBtn.style.height = \"79%\";\n this.$refs.switchBtn.style.width = \"85%\";\n }\n },\n backBtn: function backBtn() {\n this.$router.push(\"/index\");\n },\n getDateSub: function getDateSub(n) {\n var day = this.$moment(new Date()).subtract(n, \"days\").format(\"YYYY-MM-DD\");\n this.subDay = day;\n return day;\n },\n getDateAdd: function getDateAdd(n) {\n var dd = new Date();\n dd.setDate(dd.getDate() + n); //获取n天后的日期\n // var y = dd.getFullYear();\n var m = dd.getMonth() + 1; //获取当前月份的日期\n if (m < 10) {\n m = \"0\" + m;\n }\n var d = dd.getDate();\n if (d < 10) {\n d = \"0\" + d;\n }\n var day = m + \"-\" + d;\n // this.addDay = day;\n return day;\n },\n getNewDate: function getNewDate() {\n var date = new Date();\n var month = date.getMonth() + 1; //获取当前月份的日期\n if (month < 10) {\n month = \"0\" + month;\n }\n var a = date.getDate();\n if (a < 10) {\n a = \"0\" + a;\n }\n var day = month + \"-\" + a;\n return day;\n },\n //天气\n handleWather: function handleWather() {\n var _this2 = this;\n // axios({url:\"http://www.jcznedu.com:5000/weather/prediction/?city=盐都&&limit=3\",methods:'GET'}).then(res=>{\n // })\n\n getWather().then(function (res) {\n // console.log(res, \"天气情况\");\n for (var i = 0; i < res.data.data.length; i++) {\n var item = res.data.data[i];\n // console.log(item.date);\n if (item.date == _this2.getNewDate()) {\n item.date = \"今天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n } else if (item.date == _this2.getDateAdd(1)) {\n item.date = \"明天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n } else if (item.date == _this2.getDateAdd(2)) {\n item.date = \"后天\";\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\n item.pic = _this2.Onweather(item.weather, i);\n }\n }\n // console.log(res.data.data);\n // 天气\n _this2.weatherArr = res.data.data;\n // console.log(this.weatherArr);\n // console.log(this.getNewDate(),'获取');\n });\n // Weather({\n // action: \"one\",\n // key: \"天气情况\",\n // }).then((res) => {\n // // console.log(res, \"天气情况\");\n // let toDay = this.$moment().format(\"D\");\n // this.getDateSub(1);\n // this.getDateAdd(1),\n // res.data.data.forEach((item, index) => {\n // if (item.第N天 == this.$moment(this.subDay).format(\"D\")) {\n // this.weatherArr[1].date = \"昨天\";\n // this.weatherArr[1].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 1);\n // } else if (item.第N天 == this.$moment(this.addDay).format(\"D\")) {\n // this.weatherArr[2].date = \"明天\";\n // this.weatherArr[2].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 2);\n // } else if (item.第N天 == toDay) {\n // this.weatherArr[0].date = \"今天\";\n // this.weatherArr[0].temperature =\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\n // this.Onweather(item.天气, 0);\n // }\n // });\n // });\n },\n //天气\n Onweather: function Onweather(name, index) {\n // console.log(name, \"名字\");\n if (name.includes('阴') || name.includes('多云')) {\n if (name.includes('雨')) {\n return require(\"./assets/weather/rain.png\");\n } else {\n return require(\"./assets/weather/Cloudy .png\");\n }\n }\n if (name.includes('小雨')) {\n return require(\"./assets/weather/rain.png\");\n }\n // console.log(index);\n switch (name) {\n case '风转阴':\n return require(\"./assets/weather/Cloudy .png\");\n case \"多云\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"阴\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"阴转多云\":\n return require(\"./assets/weather/Cloudy .png\");\n case \"暴雨\":\n return require(\"./assets/weather/rainstorm.png\");\n case \"冰雹\":\n return require(\"./assets/weather/hail.png\");\n case \"大风\":\n return require(\"./assets/weather/gale.png\");\n case \"大雪\":\n return require(\"./assets/weather/bigsnow.png\");\n case \"大雨\":\n return require(\"./assets/weather/bigrain.png\");\n case \"雷电\":\n return require(\"./assets/weather/thunder.png\");\n case \"雷阵雨\":\n return require(\"./assets/weather/shower.png\");\n case \"沙尘暴\":\n return require(\"./assets/weather/sand.png\");\n case \"晴\":\n return require(\"./assets/weather/sun.png\");\n case \"雾霾\":\n return require(\"./assets/weather/smog.png\");\n case \"小雪\":\n return require(\"./assets/weather/snow.png\");\n case \"小雨\":\n return require(\"./assets/weather/rain.png\");\n case \"雪\":\n return require(\"./assets/weather/rainlitter.png\");\n case \"多云\":\n return require(\"./assets/weather/night.png\");\n case \"雨夹雪\":\n return require(\"./assets/weather/rainsnow.png\");\n case \"月亮\":\n return require(\"./assets/weather/moon.png\");\n case \"中雪\":\n return require(\"./assets/weather/mieddlesnow.png\");\n case \"中雨\":\n return require(\"./assets/weather/middlerain.png\");\n case \"阴转雨\":\n return require(\"./assets/weather/rain.png\");\n case \"阴转晴\":\n return require(\"./assets/weather/Cloudy .png\");\n }\n },\n handleChange: function handleChange(index) {\n var that = this;\n this.routerActive = index;\n if (this.routerActive == 0) {\n if (this.$route.name != \"index\") {\n that.$router.push({\n name: \"index\"\n });\n }\n } else if (this.routerActive == 2) {\n that.$router.push({\n name: \"stationBuilding\"\n });\n }\n // else if (this.routerActive == 1) {\n // that.$router.push({ name: \"twentyKV\" });\n // } \n else if (this.routerActive == 1) {\n that.$router.push({\n name: \"thirtyFiveKV\"\n });\n }\n }\n }\n};",{"version":3,"mappings":";;;;AAwDA;AACA;AACA;AACA;EACAA;EACAC;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC,aACA;QACAC;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,GACA;QACAF;QACAC;QACAC;MACA,EACA;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACAC;MACA;IACA;IACAC;EACA;EAEAC;IACAC;MACA;MACAC;MACA;MACA;MACAA;MACA;QACA;QACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;QACA,mDACA;QACA;QACA;MACA;IAEA;IACAC;MACA;IACA;IACAC;MACA,mCACAC,oBACAC;MACA;MACA;IACA;IACAC;MACA;MACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;QACAC;MACA;MACA;MACA;IACA;IACA;IACAC;MAAA;MACA;MACA;;MAEAC;QACA;QACA;UACA;UACA;UACA;YACAC;YACAA;YACAA;UACA;YACAA;YACAA;YACAA;UACA;YACAA;YACAA;YACAA;UACA;QACA;QACA;QACA;QACA;QACA;QACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;UACA;QACA;UACA;QACA;MACA;MACA;QAEA;MAEA;MACA;MACA;QAEA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;QACA;UACA;MAAA;IAEA;IACAC;MACA;MACA;MACA;QACA;UACAC;YAAAtC;UAAA;QACA;MACA;QACAsC;UAAAtC;QAAA;MACA;MACA;MACA;MACA;MAAA,KACA;QACAsC;UAAAtC;QAAA;MACA;IACA;EACA;AACA","names":["name","mixins","data","addDay","subDay","backShow","routerTitle","routerActive","middleImg","weatherArr","day","temperature","pic","weekList","week","nowDate","mounted","setInterval","window","methods","getLoc","console","backBtn","getDateSub","subtract","format","getDateAdd","dd","m","d","getNewDate","month","a","handleWather","getWather","item","Onweather","handleChange","that"],"sourceRoot":"src","sources":["App.vue"],"sourcesContent":["<template>\r\n <div id=\"app\">\r\n <div class=\"top\">\r\n <div class=\"left\">\r\n <div class=\"time\">\r\n {{this.$moment().format(\"YYYY.MM.DD\")}} {{nowDate}} | {{week}}\r\n </div>\r\n \r\n </div>\r\n <div class=\"middle\">\r\n <div class=\"box\">\r\n \r\n <img :src=\"middleImg\" alt=\"\" ref=\"switchBtn\" /> \r\n </div>\r\n <!-- <div\r\n class=\"router\"\r\n :class=\"{ active: routerActive == index }\"\r\n v-for=\"(item, index) in routerTitle\"\r\n @click=\"handleChange(index)\"\r\n :key=\"index\"\r\n :text=\"item\"\r\n >\r\n {{ item }}\r\n </div> -->\r\n </div>\r\n <div class=\"right\">\r\n <div class=\"weather\">\r\n <div v-if=\"backShow\" @click=\"backBtn\">\r\n <img src=\"./assets/indexN/back.png\" alt=\"\" style=\"height: 100%; width: 100%\" /> \r\n </div>\r\n <div class=\"pic\">\r\n <img src=\"./assets/images/union.png\" alt=\"\" style=\"height: 100%; width: 100%\" />\r\n </div>\r\n <span>阴转多云</span>|\r\n <span style=\"font-size: 24px; color:#0B4A6B\">25℃~30℃</span>|\r\n <span style=\"font-size: 24px; margin-top: 3px\">东风3~4级</span>\r\n </div>\r\n <!-- <div class=\"weather\" v-for=\"(item, index) in weatherArr\" :key=\"index\">\r\n <div class=\"pic\">\r\n <img :src=\"item.pic\" alt=\"\" style=\"height: 100%; width: 100%\" />\r\n </div>\r\n <div class=\"date\">\r\n <span>{{ item.date }}</span>\r\n <span style=\"font-size: 24px; margin-top: 3px\">{{\r\n item.wendu\r\n }}</span>\r\n </div>\r\n </div> -->\r\n </div>\r\n </div>\r\n <div class=\"content\">\r\n <router-view></router-view>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport MinxinItem from \"./mixins\";\r\nimport axios from \"axios\";\r\nimport { getWather, Weather, getToken } from \"./api/index.js\";\r\nexport default {\r\n name: \"home\",\r\n mixins: [MinxinItem],\r\n data() {\r\n return {\r\n addDay: \"\",\r\n subDay: \"\",\r\n backShow: false,\r\n routerTitle: [\"实时监测\", \"安全管控\", \"站房智辅\"],\r\n routerActive: 0,\r\n middleImg:require(\"./assets/indexN/titleText.png\"),\r\n weatherArr: [\r\n {\r\n day: \"今天\",\r\n temperature: \"\",\r\n pic: require(\"./assets/images/sun.png\"),\r\n },\r\n {\r\n day: \"昨天\",\r\n temperature: \"\",\r\n pic: require(\"./assets/images/union.png\"),\r\n },\r\n {\r\n day: \"明天\",\r\n temperature: \"\",\r\n pic: require(\"./assets/images/windy.png\"),\r\n },\r\n ],\r\n weekList: [\"周日\", \"周一\", \"周二\", \"周三\", \"周四\", \"周五\", \"周六\"],\r\n week: \"\",\r\n nowDate:'',\r\n };\r\n },\r\n mounted() {\r\n // this.handleWather();\r\n let week = new Date(this.$moment().format(\"YYYY-MM-DD\")).getDay();\r\n this.week = this.weekList[week];\r\n this.getLoc()\r\n // let params = new URLSearchParams()\r\n // let params = {\r\n // appKey: \"symnzwxdfu1ul8raqrykgbld7zonktga\",\r\n // appSecret: \"a3tdb6nxfciekxcgcl94ljvtmw2lsafx\",\r\n // };\r\n // params.append('appKey','symnzwxdfu1ul8raqrykgbld7zonktga')\r\n // params.append('appSecret','a3tdb6nxfciekxcgcl94ljvtmw2lsafx')\r\n // getToken(params).then((res) => {\r\n // localStorage.setItem(\"token\", res.data.data.token);\r\n // // console.log(localStorage.getItem('token'),'token');\r\n // });\r\n // setInterval(()=>{\r\n // this. handleWather()\r\n // },480000)\r\n setInterval(()=>{\r\n this.nowDate = this.$moment().format(\"HH:mm:ss\")\r\n },100)\r\n window.getLoc = this.getLoc;\r\n },\r\n\r\n methods: {\r\n getLoc(){\r\n var curWwwPath=window.document.location.href;\r\n console.log(\"curWwwPath\",curWwwPath)\r\n let paramArr = curWwwPath.split('/');\r\n let ele = paramArr.pop();\r\n console.log(\"ele\",ele)\r\n if(ele=='index'){\r\n this.backShow = false\r\n this.middleImg = require(\"./assets/indexN/titleText.png\")\r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='stationBuilding'){\r\n this.middleImg = require(\"./assets/title/02.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"72%\";\r\n this.$refs.switchBtn.style.width = \"36%\";\r\n }else if(ele =='twentyKV'){\r\n this.middleImg = require(\"./assets/title/03.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='thirtyFiveKV'){\r\n this.middleImg = require(\"./assets/title/04.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='powerQualityControl'){\r\n this.middleImg = require(\"./assets/title/05.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='ruralRevitalizationPower'){\r\n this.middleImg = require(\"./assets/title/07.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='enterprisePollutionMonitoring'){\r\n this.middleImg = require(\"./assets/title/08.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='ruralDomesticSewageTreatment'){\r\n this.middleImg = require(\"./assets/title/07.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }else if(ele =='digitalFloodDrainageDroughtRelief'){\r\n this.middleImg = require(\"./assets/title/09.png\"),\r\n this.backShow = true \r\n this.$refs.switchBtn.style.height = \"79%\";\r\n this.$refs.switchBtn.style.width = \"85%\";\r\n }\r\n \r\n },\r\n backBtn(){\r\n this.$router.push(\"/index\");\r\n },\r\n getDateSub(n) {\r\n let day = this.$moment(new Date())\r\n .subtract(n, \"days\")\r\n .format(\"YYYY-MM-DD\");\r\n this.subDay = day;\r\n return day;\r\n },\r\n getDateAdd(n) {\r\n var dd = new Date();\r\n dd.setDate(dd.getDate() + n); //获取n天后的日期\r\n // var y = dd.getFullYear();\r\n var m = dd.getMonth() + 1; //获取当前月份的日期\r\n if (m < 10) {\r\n m = \"0\" + m;\r\n }\r\n var d = dd.getDate();\r\n if (d < 10) {\r\n d = \"0\" + d;\r\n }\r\n let day = m + \"-\" + d;\r\n // this.addDay = day;\r\n return day;\r\n },\r\n getNewDate() {\r\n var date = new Date();\r\n var month = date.getMonth() + 1; //获取当前月份的日期\r\n if (month < 10) {\r\n month = \"0\" + month;\r\n }\r\n var a = date.getDate();\r\n if (a < 10) {\r\n a = \"0\" + a;\r\n }\r\n let day = month + \"-\" + a;\r\n return day;\r\n },\r\n //天气\r\n handleWather() {\r\n // axios({url:\"http://www.jcznedu.com:5000/weather/prediction/?city=盐都&&limit=3\",methods:'GET'}).then(res=>{\r\n // })\r\n\r\n getWather().then((res) => {\r\n // console.log(res, \"天气情况\");\r\n for (let i = 0; i < res.data.data.length; i++) {\r\n let item = res.data.data[i];\r\n // console.log(item.date);\r\n if (item.date == this.getNewDate()) {\r\n item.date = \"今天\";\r\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\r\n item.pic = this.Onweather(item.weather, i);\r\n } else if (item.date == this.getDateAdd(1)) {\r\n item.date = \"明天\";\r\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\r\n item.pic = this.Onweather(item.weather, i);\r\n } else if (item.date == this.getDateAdd(2)) {\r\n item.date = \"后天\";\r\n item.wendu = item.low + \"℃~\" + item.high + \"℃\";\r\n item.pic = this.Onweather(item.weather, i);\r\n }\r\n }\r\n // console.log(res.data.data);\r\n // 天气\r\n this.weatherArr = res.data.data;\r\n // console.log(this.weatherArr);\r\n // console.log(this.getNewDate(),'获取');\r\n });\r\n // Weather({\r\n // action: \"one\",\r\n // key: \"天气情况\",\r\n // }).then((res) => {\r\n // // console.log(res, \"天气情况\");\r\n // let toDay = this.$moment().format(\"D\");\r\n // this.getDateSub(1);\r\n // this.getDateAdd(1),\r\n // res.data.data.forEach((item, index) => {\r\n // if (item.第N天 == this.$moment(this.subDay).format(\"D\")) {\r\n // this.weatherArr[1].date = \"昨天\";\r\n // this.weatherArr[1].temperature =\r\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\r\n // this.Onweather(item.天气, 1);\r\n // } else if (item.第N天 == this.$moment(this.addDay).format(\"D\")) {\r\n // this.weatherArr[2].date = \"明天\";\r\n // this.weatherArr[2].temperature =\r\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\r\n // this.Onweather(item.天气, 2);\r\n // } else if (item.第N天 == toDay) {\r\n // this.weatherArr[0].date = \"今天\";\r\n // this.weatherArr[0].temperature =\r\n // item.最低温度 + \"℃\" + \"~\" + item.最高温度 + \"℃\";\r\n // this.Onweather(item.天气, 0);\r\n // }\r\n // });\r\n // });\r\n },\r\n //天气\r\n Onweather(name, index) {\r\n // console.log(name, \"名字\");\r\n if(name.includes('阴')||name.includes('多云')){\r\n if(name.includes('雨')){\r\n return require(\"./assets/weather/rain.png\");\r\n }else{\r\n return require(\"./assets/weather/Cloudy .png\");\r\n }\r\n }\r\n if(name.includes('小雨')){\r\n \r\n return require(\"./assets/weather/rain.png\");\r\n \r\n }\r\n // console.log(index);\r\n switch (name) {\r\n \r\n case '风转阴':\r\n return require(\"./assets/weather/Cloudy .png\");\r\n case \"多云\":\r\n return require(\"./assets/weather/Cloudy .png\");\r\n case \"阴\":\r\n return require(\"./assets/weather/Cloudy .png\");\r\n case \"阴转多云\":\r\n return require(\"./assets/weather/Cloudy .png\");\r\n case \"暴雨\":\r\n return require(\"./assets/weather/rainstorm.png\");\r\n case \"冰雹\":\r\n return require(\"./assets/weather/hail.png\");\r\n case \"大风\":\r\n return require(\"./assets/weather/gale.png\");\r\n case \"大雪\":\r\n return require(\"./assets/weather/bigsnow.png\");\r\n case \"大雨\":\r\n return require(\"./assets/weather/bigrain.png\");\r\n case \"雷电\":\r\n return require(\"./assets/weather/thunder.png\");\r\n case \"雷阵雨\":\r\n return require(\"./assets/weather/shower.png\");\r\n case \"沙尘暴\":\r\n return require(\"./assets/weather/sand.png\");\r\n case \"晴\":\r\n return require(\"./assets/weather/sun.png\");\r\n case \"雾霾\":\r\n return require(\"./assets/weather/smog.png\");\r\n case \"小雪\":\r\n return require(\"./assets/weather/snow.png\");\r\n case \"小雨\":\r\n return require(\"./assets/weather/rain.png\");\r\n case \"雪\":\r\n return require(\"./assets/weather/rainlitter.png\");\r\n case \"多云\":\r\n return require(\"./assets/weather/night.png\");\r\n case \"雨夹雪\":\r\n return require(\"./assets/weather/rainsnow.png\");\r\n case \"月亮\":\r\n return require(\"./assets/weather/moon.png\");\r\n case \"中雪\":\r\n return require(\"./assets/weather/mieddlesnow.png\");\r\n case \"中雨\":\r\n return require(\"./assets/weather/middlerain.png\");\r\n case \"阴转雨\":\r\n return require(\"./assets/weather/rain.png\");\r\n case \"阴转晴\":\r\n return require(\"./assets/weather/Cloudy .png\");\r\n }\r\n },\r\n handleChange(index) {\r\n let that = this;\r\n this.routerActive = index;\r\n if (this.routerActive == 0) {\r\n if (this.$route.name != \"index\") {\r\n that.$router.push({ name: \"index\" });\r\n }\r\n } else if (this.routerActive == 2) {\r\n that.$router.push({ name: \"stationBuilding\" });\r\n }\r\n // else if (this.routerActive == 1) {\r\n // that.$router.push({ name: \"twentyKV\" });\r\n // } \r\n else if (this.routerActive == 1) {\r\n that.$router.push({ name: \"thirtyFiveKV\" });\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n<style >\r\n@import \"./assets/index.css\";\r\n\r\n#app {\r\n font-family: \"Avenir\", Helvetica, Arial, sans-serif;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: center;\r\n color: #2c3e50;\r\n background: url(\"./assets/index/bg.png\") no-repeat;\r\n background-size: 100% 100%;\r\n}\r\n\r\n</style>\r\n<style lang=\"less\" scoped>\r\n.top {\r\n width: 100%;\r\n height: 100px;\r\n /* background: rgba(147, 230, 244,0.6); */\r\n /* background-image: linear-gradient(90deg, rgba(147, 230, 244,0.6),rgba(147, 230, 244,0), rgba(147, 230, 244,0.6)); */\r\n// background: url(\"./assets/images/topBg.png\") no-repeat;\r\n background: url(\"./assets/indexN/title.png\") no-repeat;\r\n background-size: 100% 100%;\r\n display: flex;\r\n flex-flow: row nowrap;\r\n justify-content: space-between;\r\n .left {\r\n width: 30%;\r\n height: 97px;\r\n // background: url(\"./assets/index/title.png\") no-repeat;\r\n // background-size: 100% 100%;\r\n font-size: 44px;\r\n font-weight: 700;\r\n letter-spacing: 10px;\r\n color: #ffffff;\r\n // line-height: 97px;\r\n padding-left: 86px;\r\n text-align: left;\r\n display: flex;\r\n margin-left: 1%;\r\n margin-top: 0.5%;\r\n box-sizing: border-box;\r\n .time {\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 22px;\r\n // display: flex;\r\n flex-flow: column nowrap;\r\n justify-content: center;\r\n text-align: left;\r\n }\r\n .weather {\r\n // display: flex;\r\n // flex-flow: row nowrap;\r\n height: 100%;\r\n align-items: center;\r\n color: #ffffff;\r\n font-size: 22px;\r\n margin-left: 36px;\r\n .pic {\r\n width: 61px;\r\n height: 61px;\r\n }\r\n .date {\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 18px;\r\n display: flex;\r\n flex-flow: column nowrap;\r\n justify-content: center;\r\n margin-left: 19px;\r\n text-align: left;\r\n }\r\n }\r\n \r\n }\r\n .left:before {\r\n content: attr(text);\r\n position: absolute;\r\n z-index: 10;\r\n color: rgb(86, 254, 246);\r\n -webkit-mask: linear-gradient(to top, rgb(86, 244, 254), transparent);\r\n }\r\n .middle {\r\n width: 27%;\r\n height: 80px;\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n /* display: flex; */\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n position: absolute;\r\n left: 38%;\r\n top: 3%;\r\n .box{\r\n width: 100%;\r\n height: 100%;\r\n // background: url(\"./assets/indexN/titleText.png\") no-repeat;\r\n }\r\n .router {\r\n width: 244px;\r\n height: 100%;\r\n line-height: 78px;\r\n color: rgb(41, 114, 124);\r\n font-size: 22px;\r\n cursor: pointer;\r\n }\r\n .active {\r\n color: #ffffff;\r\n background: url(\"./assets/images/routerActive.png\") no-repeat;\r\n background-size: 100% 100%;\r\n }\r\n .active:before {\r\n content: attr(text);\r\n position: absolute;\r\n z-index: 10;\r\n color: rgb(86, 254, 246);\r\n -webkit-mask: linear-gradient(to top, rgb(86, 244, 254), transparent);\r\n }\r\n }\r\n .right {\r\n // width: 740px;\r\n height: 78px;\r\n display: flex;\r\n flex-flow: row nowrap;\r\n justify-content: space-between;\r\n padding-right: 15px;\r\n font-size: 44px;\r\n font-weight: 700;\r\n letter-spacing: 10px;\r\n margin-right: 1%;\r\n .time {\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 18px;\r\n display: flex;\r\n flex-flow: column nowrap;\r\n justify-content: center;\r\n text-align: left;\r\n }\r\n .weather {\r\n display: flex;\r\n flex-flow: row nowrap;\r\n height: 100%;\r\n align-items: center;\r\n margin-left: 36px;\r\n color: #ffffff;\r\n font-size: 22px;\r\n margin-left: 36px;\r\n .pic {\r\n width: 61px;\r\n height: 61px;\r\n }\r\n .date {\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 18px;\r\n display: flex;\r\n flex-flow: column nowrap;\r\n justify-content: center;\r\n margin-left: 19px;\r\n text-align: left;\r\n }\r\n }\r\n }\r\n}\r\n.content {\r\n width: 100%;\r\n height: calc(100% - 100px);\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n}\r\n</style>\r\n"]}]}