(function(e){function t(t){for(var a,o,s=t[0],c=t[1],u=t[2],l=0,d=[];l=1920?(e("html").css({"font-size":"95.01%"}),this.$store.commit("REMRATIOFUN",{remRatio:15.2016})):(e("html").css({"font-size":62.5*n/1200+"%"}),this.$store.commit("REMRATIOFUN",{remRatio:62.5*n/1200/100*16})),window.onresize=function(){n=document.body.offsetWidth,n>=1920?(e("html").css({"font-size":"95.01%"}),t.$store.commit("REMRATIOFUN",{remRatio:15.2016})):(e("html").css({"font-size":62.5*n/1200+"%"}),t.$store.commit("REMRATIOFUN",{remRatio:62.5*n/1200/100*16})),t.$store.commit("UPDATEREMRATIOFUN",{updateRemRatio:t.updateRemRatio+1})};var a=window.location.href.split("/")[2],o=document.location.protocol,r=new RegExp("https:");for(var s in"localhost:8080"==a||"127.0.0.1:8080"==a?(a="120.77.179.55",o="http:"):"solar.iotena.com"==a?a="new.solar-iot.com":"www.gammausa.solar-iot.com"==a?this.webType=2:"www.solar.flyingsmart.net"==a&&(this.webType=1),i["a"])for(var u in i["a"][s])i["a"][s][u]="websocket"==s?i["a"][s][u].replace(new RegExp("ws:"),subStrW):i["a"][s][u].replace(r,o);var l=new RegExp("120.77.179.55");for(var d in i["a"])for(var f in i["a"][d])i["a"][d][f]=i["a"][d][f].replace(l,a);var h=window.localStorage,p={data:{avatar:"http://120.77.179.55/upload/image/73e766a761584c547ce785af826a4e6d.jpg",client_key:"23be0e4c9a2e91b330bfeb7d20229e71",id:"1",name:"admin",role:1,token:"27cc9eaa89c63c65df47901692a70bc7",username:"admin",version:"0"}};p.data.version=this.version,this.$store.commit("USERDATAFUN",{username:p.data.username,id:p.data.id,role:p.data.role,lastLoginTime:p.data.lastLoginTime,client_key:p.data.client_key,token:p.data.token,number:p.data.number,avatar:p.data.avatar,version:p.data.version}),h.setItem("userData",JSON.stringify(p.data)),this.checkboxRememberPassword&&(h.setItem("rememberPassword","true"),h.setItem("udfn",this.username),h.setItem("udfp",c["a"].base64Encode(this.password))),this.$store.commit("HEADERIDFUN",{headerUpdate:this.headerUpdate+1})},methods:{login:function(){var e=this,t=window.localStorage,n=c["a"].md5(navigator.userAgent);s["a"].ajax_post(i["a"].common.login,{username:"admin",password:"654321",client_key:n},{},(function(a){console.log(a),a.data.client_key=n,a.data.version=e.version,e.$store.commit("USERDATAFUN",{username:a.data.username,id:a.data.id,role:a.data.role,lastLoginTime:a.data.lastLoginTime,client_key:a.data.client_key,token:a.data.token,number:a.data.number,avatar:a.data.avatar,version:a.data.version}),t.setItem("userData",JSON.stringify(a.data)),e.checkboxRememberPassword&&(t.setItem("rememberPassword","true"),t.setItem("udfn",e.username),t.setItem("udfp",c["a"].base64Encode(e.password))),e.$store.commit("HEADERIDFUN",{headerUpdate:e.headerUpdate+1})}),this)}}}}).call(this,n("a336"))},"1e96":function(e,t){e.exports={App:{login:{text1:"Welcome to inhealth!",text2:"Happiness and healthiness",text3:"Please enter your log-in name",text4:"Please enter your password",text5:"Please enter the verification code",text6:"Sign in",text7:"Retrieve password"},message:{text1:"System hints",text2:"Confirm",text3:"Do you confirm to delete?",text4:"Prompt",text5:"Confim",text6:"Cancel",text7:"Undelete"}}}},"55d4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAmCAYAAABESIy4AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAWqADAAQAAAABAAAAJgAAAABWlqRDAAALvElEQVRoBe2ae5CVZRnAWS4LiIDcQZBdBCRJSsMLlJDExBRdHHO0Ggssncw/apzMMhmLsJlwCFMSY3QaptEYs8Y/agYUBGU0KVDAkovKZVmT+/2yy2XZ7fc7fO+Zb7/9vrOHw7J/NDwzv33v7/u8z/u8z/edc7ZNmwuSaYGGhob2MBlGZHa60FC6BTBsd/guPA+boHfps50Z2f5cJ/h/Go9Be7Kfu+F7UAe9YFNZWdle0gvSEhbAyLfAe6BshNW5XEPDgpaY3xhUVmgiTrMhtDfXN/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2gg7uCnjlm3+GGqdSuvJpmHznrqe6KcFPUev0gM9RRV1k3ptOCw3exrqQHG8xnOdpGhQ5fCZJDeP49TLeRU9Wn2aPF8iHY7SdizKa0zndK+OcU3LzqURe0T71LB6ojFefS27f/V0DvOKZdsV53JOdXPf7kt7qJcH4PyHbNC1w5Wwg8p4JTXYQY2IhA26WfsoGt7xKqwBayAoYr9q8E0lHMx+8hper8mFJVLXdlxSvKZbQAdQHKtOshsUx30IrpEmHnw4RA/Mtb1xjndvShVomM2g7urlOG+h8+YcidR1bHOf7t+yYtm5tI+6uR9DWbBZZ8rud0+49sbR3KboYYMn5MQHokGerJ4er7OPfY2ZvpVo9Hbk/f7BaxQOsZw6Y78e4WY9PGOkY1XaMRotL9F46zW4V1ojuL5eEtYLXt/R+ahvJIyxb5vYHHqhh26MNsarn300xjE4Sb3xVk/V+MZo382D99vf/WtYx1k+QR//wdI5nN8YfYBUndXP9eyno1yQ1rDA/wBiQh29Gl86NAAAAABJRU5ErkJggg=="},"56d7":function(e,t,n){"use strict";n.r(t);var a=n("5530"),o=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("2b0e")),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("Header"),n("div",{staticClass:"scrollbar_style"},[n("router-view")],1)],1)},i=[],s=n("199c"),c=s["a"],u=(n("7c55"),n("2877")),l=Object(u["a"])(c,r,i,!1,null,null,null),d=l.exports,f=(n("d3b7"),n("7d82"));o["default"].use(f["a"]);var h=function(){return n.e("chunk-7ef40bfa").then(n.bind(null,"4601"))},p=function(){return n.e("chunk-abd57466").then(n.bind(null,"4517"))},m=function(){return Promise.all([n.e("chunk-982fad50"),n.e("chunk-6bb6a4fc")]).then(n.bind(null,"e41a"))},g=function(){return n.e("chunk-491726a1").then(n.bind(null,"f26b"))},v=function(){return n.e("chunk-68c91555").then(n.bind(null,"dc7a"))},b=function(){return n.e("chunk-66880d66").then(n.bind(null,"ac80"))},w=function(){return n.e("chunk-87aeea08").then(n.bind(null,"04ed"))},A=function(){return n.e("chunk-565b1914").then(n.bind(null,"f705"))},S=function(){return Promise.all([n.e("chunk-982fad50"),n.e("chunk-7bd5a1e4")]).then(n.bind(null,"c7f5"))},k=function(){return n.e("chunk-3f41bc09").then(n.bind(null,"9065"))},C=[{path:"/",component:h},{path:"/dashboard",name:"dashboard",component:h},{path:"/projectManagement",name:"projectManagement",component:p},{path:"/GIS",name:"GIS",component:m},{path:"/userManagement",name:"userManagement",component:g},{path:"/alarmMaintenance",name:"alarmMaintenance",component:v},{path:"/maintenanceRecord",name:"maintenanceRecord",component:b},{path:"/repairPersonnel",name:"repairPersonnel",component:w},{path:"/streetLightInformation",name:"streetLightInformation",component:A},{path:"/historicalData",name:"historicalData",component:S},{path:"/operationLog",name:"operationLog",component:k}],y=new f["a"]({mode:"hash",base:"",routes:C}),x=y,_=n("ae8c");o["default"].use(_["a"]);var R=new _["a"].Store({state:{routerStr:"",remRatio:0,updateRemRatio:0,countryId:null,provinceId:null,cityId:null,hotelId:null,headerIdStr:null,headerUpdate:0,headerLogo:"",sideBarShow:!1,userData:{version:"0",username:"",Id:"",role:"",lastLoginTime:"2018-12-22 13:30:21",client_key:"",token:"",number:"",avatar:""},editHotelLogoShow:!1,editHotelLogoShowBg:!1,longitude:0,latitude:0},getters:{routerStr:function(e){return e.routerStr},remRatio:function(e){return e.remRatio},headerLogo:function(e){return e.headerLogo},sideBarShow:function(e){return e.sideBarShow},editHotelLogoShow:function(e){return e.editHotelLogoShow},editHotelLogoShowBg:function(e){return e.editHotelLogoShowBg},countryId:function(e){return e.countryId},provinceId:function(e){return e.provinceId},cityId:function(e){return e.cityId},hotelId:function(e){return e.hotelId},longitude:function(e){return e.longitude},latitude:function(e){return e.latitude},headerIdStr:function(e){return e.headerIdStr},headerUpdate:function(e){return e.headerUpdate},updateRemRatio:function(e){return e.updateRemRatio},version:function(e){return e.userData.version},username:function(e){return e.userData.username},id:function(e){return e.userData.id},role:function(e){return e.userData.role},lastLoginTime:function(e){return e.userData.lastLoginTime},client_key:function(e){return e.userData.client_key},token:function(e){return e.userData.token},number:function(e){return e.userData.number},avatar:function(e){return e.userData.avatar}},actions:{},mutations:{HEADERLOGO:function(e,t){e.headerLogo=t.headerLogo},EDITHOTELLOGOSHOW:function(e,t){t.editHotelLogoShow&&(e.editHotelLogoShow=t.editHotelLogoShow),t.editHotelLogoShowBg&&(e.editHotelLogoShowBg=t.editHotelLogoShowBg)},SIDEBARSHOW:function(e,t){e.sideBarShow=t.sideBarShow},USERDATAFUN:function(e,t){e.userData.version=t.version,e.userData.username=t.username,e.userData.id=t.id,e.userData.role=t.role,e.userData.lastLoginTime=t.lastLoginTime,e.userData.client_key=t.client_key,e.userData.token=t.token,e.userData.number=t.number,e.userData.avatar=t.avatar},HEADERIDFUN:function(e,t){(t.countryId||""==t.countryId)&&(e.countryId=t.countryId),(t.provinceId||""==t.provinceId)&&(e.provinceId=t.provinceId),(t.cityId||""==t.cityId)&&(e.cityId=t.cityId),(t.hotelId||""==t.hotelId)&&(e.hotelId=t.hotelId),(t.headerIdStr||""==t.headerIdStr)&&(e.headerIdStr=t.headerIdStr),t.headerUpdate&&(e.headerUpdate=t.headerUpdate)},LONLATFUN:function(e,t){e.longitude=t.longitude,e.latitude=t.latitude},UPDATEREMRATIOFUN:function(e,t){e.updateRemRatio=t.updateRemRatio},ROUTERSTRFUN:function(e,t){e.routerStr=t.routerStr},REMRATIOFUN:function(e,t){e.remRatio=t.remRatio}}}),j=n("7e37"),D=n.n(j),I=n("b705"),O=n.n(I),E=(n("3880"),n("255a")),T=n.n(E),N=n("4a42"),B=n.n(N),H=n("1e96"),U=n.n(H),L=n("fdf0"),M=n.n(L),P=n("2ec6");n("2fe8"),n("ec21"),n("ff7b"),n("b2be"),o["default"].prototype.$echarts=D.a,o["default"].use(P["a"]);var G=new P["a"]({locale:"en-US",messages:{"zh-CN":Object(a["a"])(Object(a["a"])({},M.a),B.a),"en-US":Object(a["a"])(Object(a["a"])({},U.a),T.a)}});o["default"].use(O.a,{i18n:function(e,t){return G.t(e,t)}}),o["default"].config.productionTip=!1,new o["default"]({router:x,store:R,i18n:G,render:function(e){return e(d)}}).$mount("#app")},"71c2":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"headers"},[n("div",{staticClass:"left_nav_btn"},[n("div",{staticClass:"nav_box"},[e._m(0),n("div",{staticClass:"nav_main"},[n("div",{staticClass:"nav_left"},[n("div",{staticClass:"nav_ul"},[e._m(1),n("div",{staticClass:"nav_li",class:{select:"/dashboard"==e.routerStr},on:{click:function(t){return e.linkToFun("/dashboard")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("Dashboard")])]),n("div",{staticClass:"nav_li",class:{select:"/projectManagement"==e.routerStr},on:{click:function(t){return e.linkToFun("/projectManagement")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("Project Management")])]),n("div",{staticClass:"nav_li",class:{select:"/GIS"==e.routerStr},on:{click:function(t){return e.linkToFun("/GIS")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("GIS Map")])])]),n("div",{staticClass:"nav_ul"},[e._m(2),n("div",{staticClass:"nav_li",class:{select:"/alarmMaintenance"==e.routerStr},on:{click:function(t){return e.linkToFun("/alarmMaintenance")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("Alarm maintenance")])]),n("div",{staticClass:"nav_li",class:{select:"/historicalData"==e.routerStr},on:{click:function(t){return e.linkToFun("/historicalData")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("Historical Data")])])]),n("div",{staticClass:"nav_ul"},[e._m(3),n("div",{staticClass:"nav_li",class:{select:"/userManagement"==e.routerStr},on:{click:function(t){return e.linkToFun("/userManagement")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("User Management")])]),n("div",{staticClass:"nav_li",class:{select:"/operationLog"==e.routerStr},on:{click:function(t){return e.linkToFun("/operationLog")}}},[n("i",{staticClass:"iconfont icon-daohangjiantou"}),n("span",{staticClass:"span"},[e._v("Operation Log")])])])]),e._m(4)])])]),e._m(5),n("div",{staticClass:"right_btn_box"},[n("span",{staticClass:"img_box"},[n("img",{attrs:{src:e.avatar,onError:e.imgErrorSrc},on:{click:function(t){return e.linkToFun("/userManagement")}}})]),n("el-popover",{attrs:{placement:"top-start","popper-class":"btn_signOut_box",trigger:"hover"}},[n("span",{staticClass:"btn_signOut",on:{click:function(t){return e.signOutFun()}}},[e._v("Sign Out")]),n("span",{attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"span"},[e._v(e._s(e.username))]),n("i",{staticClass:"el-icon-caret-bottom"})])])],1)])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav_open"},[n("i",{staticClass:"iconfont icon-zhudaohang"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav_title"},[n("span",{staticClass:"span"},[e._v("Control Deck")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav_title"},[n("span",{staticClass:"span"},[e._v("Maintain")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav_title"},[n("span",{staticClass:"span"},[e._v("Set Up")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav_right"},[a("p",{staticClass:"p1"},[e._v("Complex background")]),a("p",{staticClass:"p2"},[e._v("simple operation")]),a("div",{staticClass:"btn"},[a("span",{staticClass:"span"},[e._v("About more")])]),a("img",{staticClass:"img",attrs:{src:n("aea5")}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"center_logo"},[a("img",{attrs:{src:n("55d4")}}),a("i"),a("span",[e._v("Solar Street Light Manegament System")])])}],r=(n("ac1f"),n("1276"),n("5530")),i=n("ae8c"),s={name:"headers",data:function(){return{imgErrorSrc:""}},computed:Object(r["a"])({},Object(i["b"])({token:"token",client_key:"client_key",username:"username",version:"version",routerStr:"routerStr",avatar:"avatar"})),mounted:function(){this.imgErrorSrc='this.src="'+n("8167")+'"'},methods:{linkToFun:function(e){e!=this.routerStr&&(this.$router.push({path:e}),this.$store.commit("ROUTERSTRFUN",{routerStr:e}),document.title="IDCOL-"+e.split("/")[1])},signOutFun:function(){}},watch:{}},c=s,u=(n("fb5a"),n("2877")),l=Object(u["a"])(c,a,o,!1,null,null,null);t["a"]=l.exports},"71c3":function(e,t,n){"use strict";n("a15b"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="",r=[256],i=[256],s=0,c={encode:function(e){var t=e.replace(/[\u0080-\u07ff]/g,(function(e){var t=e.charCodeAt(0);return String.fromCharCode(192|t>>6,128|63&t)})).replace(/[\u0800-\uffff]/g,(function(e){var t=e.charCodeAt(0);return String.fromCharCode(224|t>>12,128|t>>6&63,128|63&t)}));return t},decode:function(e){var t=e.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,(function(e){var t=(15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2);return String.fromCharCode(t)})).replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,(function(e){var t=(31&e.charCodeAt(0))<<6|63&e.charCodeAt(1);return String.fromCharCode(t)}));return t}};while(s<256){var u=String.fromCharCode(s);o+=u,i[s]=s,r[s]=a.indexOf(u),++s}function l(e,t,n,a,o,r){e=String(e);var i=0,s=0,c=e.length,u="",l=0;while(s=r){l-=r;var f=i>>l;u+=a.charAt(f),i^=f<0&&(u+=a.charAt(i<>>32-t},d=function(e,t){var n,a,o,r,i;return o=2147483648&e,r=2147483648&t,n=1073741824&e,a=1073741824&t,i=(1073741823&e)+(1073741823&t),n&a?2147483648^i^o^r:n|a?1073741824&i?3221225472^i^o^r:1073741824^i^o^r:i^o^r},f=function(e,t,n){return e&t|~e&n},h=function(e,t,n){return e&n|t&~n},p=function(e,t,n){return e^t^n},m=function(e,t,n){return t^(e|~n)},g=function(e,t,n,a,o,r,i){return e=d(e,d(d(f(t,n,a),o),i)),d(l(e,r),t)},v=function(e,t,n,a,o,r,i){return e=d(e,d(d(h(t,n,a),o),i)),d(l(e,r),t)},b=function(e,t,n,a,o,r,i){return e=d(e,d(d(p(t,n,a),o),i)),d(l(e,r),t)},w=function(e,t,n,a,o,r,i){return e=d(e,d(d(m(t,n,a),o),i)),d(l(e,r),t)},A=function(e){var t,n=e.length,a=n+8,o=(a-a%64)/64,r=16*(o+1),i=Array(r-1),s=0,c=0;while(c>>29,i},S=function(e){var t,n,a="",o="";for(n=0;n<=3;n++)t=e>>>8*n&255,o="0"+t.toString(16),a+=o.substr(o.length-2,2);return a},k=function(e){e=e.replace(/\x0d\x0a/g,"\n");for(var t="",n=0;n127&&a<2048?(t+=String.fromCharCode(a>>6|192),t+=String.fromCharCode(63&a|128)):(t+=String.fromCharCode(a>>12|224),t+=String.fromCharCode(a>>6&63|128),t+=String.fromCharCode(63&a|128))}return t},C=Array(),y=7,x=12,_=17,R=22,j=5,D=9,I=14,O=20,E=4,T=11,N=16,B=23,H=6,U=10,L=15,M=21;for(e=k(e),C=A(e),i=1732584193,s=4023233417,c=2562383102,u=271733878,t=0;t0);return e=e.join(""),!1===Plugin.raw||Plugin.utf8decode||t?c.decode(e):e}}},"7c55":function(e,t,n){"use strict";var a=n("abd2"),o=n.n(a);o.a},"7e21":function(e,t,n){"use strict";var a={home:{},common:{login:"http://120.77.179.55/api/common/login",update_file:"http://120.77.179.55/api/common/update_file",get_country:"http://120.77.179.55/api/common/get_country",get_province:"http://120.77.179.55/api/common/get_province",get_city:"http://120.77.179.55/api/common/get_city",get_area:"http://120.77.179.55/api/common/get_area"},project:{projectSave:"http://120.77.179.55/api/project/save",projectDel:"http://120.77.179.55/api/project/del",projectDetail:"http://120.77.179.55/api/project/detail",projectData:"http://120.77.179.55/api/project/data",projectNav:"http://120.77.179.55/api/project/nav",homeFields:"http://120.77.179.55/api/home/fields",lampcontrolGet:"http://120.77.179.55/api/lampcontrol/get",lampcontrolSave:"http://120.77.179.55/api/lampcontrol/save",lampcontrolViewloglist:"http://120.77.179.55/api/lampcontrol/viewloglist"},dashboard:{data:"http://120.77.179.55/api/home/data",sta_info:"http://120.77.179.55/api/home/sta_info",dev_list:"http://120.77.179.55/api/home/dev_list",alarm_list:"http://120.77.179.55/api/home/alarm_list"},user:{info:"http://120.77.179.55/api/user/info",sub_list:"http://120.77.179.55/api/user/sub_list",user_update:"http://120.77.179.55/api/user/user_update",privilege_list:"http://120.77.179.55/api/user/privilege_list",data:"http://120.77.179.55/api/user/data",save_user_privilege:"http://120.77.179.55/api/user/save_user_privilege",del:"http://120.77.179.55/api/user/del",block_user:"http://120.77.179.55/api/user/block_user",update_avatar:"http://120.77.179.55/api/user/update_avatar"},weather:{}};t["a"]=a},8167:function(e,t,n){e.exports=n.p+"img/user.9c4580fd.jpg"},"8fd4":function(e,t,n){},a417:function(e,t,n){"use strict";n("ac1f"),n("5319"),n("1276");var a=n("82ae"),o=n.n(a);t["a"]={websocket:function(e,t){var n=null;function a(){setTimeout((function(){n=null,("WebSocket"in window||"MozWebSocket"in window)&&(n=new WebSocket(e)),n.onerror=function(){a()},n.onopen=function(){n.onmessage=function(e){if(t)if(e.data)try{var a=JSON.parse(e.data);console.log(a,"=------------"),"0000"==a.code?t(a,n):(console.log(a,"=------------"),error&&error(a),1==this_.version?this_.$alert(a.msg,"System hints",{confirmButtonText:"Confirm"}):this_.$alert(a.msg,"系统提示",{confirmButtonText:"确认"})),a.data.code}catch(o){console.log(o)}else t()},window.onbeforeunload=function(){return n.close()}}}),1e3),console.log("error")}return("WebSocket"in window||"MozWebSocket"in window)&&(n=new WebSocket(e)),n.onerror=function(){a()},n.onopen=function(){n.onmessage=function(e){if(t)if(e.data)try{t(e.data,n)}catch(a){console.log(a)}else t()},window.onbeforeunload=function(){return n.close()}},n},websocket1:function(e,t,n,a){console.log(e),e="https:"==window.location.protocol?e.replace("wss","wss"):e.replace("wss","ws");var o=null;function r(){setTimeout((function(){o=null,("WebSocket"in window||"MozWebSocket"in window)&&(o=new WebSocket(e)),o.onerror=function(){r()},o.onopen=function(){o.onmessage=function(e){if(t)if(e.data)try{var r=JSON.parse(e.data);console.log(r,"=------------"),"0000"==r.code?t(r,o):(console.log(r,"=------------"),n&&n(r),1==a.version?a.$alert(r.msg,"System hints",{confirmButtonText:"Confirm"}):a.$alert(r.msg,"系统提示",{confirmButtonText:"确认"})),r.data.code}catch(i){console.log(i)}else t()},window.onbeforeunload=function(){return o.close()}}}),1e3),console.log("error")}return("WebSocket"in window||"MozWebSocket"in window)&&(o=new WebSocket(e)),o.onerror=function(){r()},o.onopen=function(){o.onmessage=function(e){if(t)if(e.data)try{var r=JSON.parse(e.data);console.log(r,"=------------"),"0000"==r.code?t(r,o):(console.log(r,"=------------"),n&&n(r),1==a.version?a.$alert(r.msg,"System hints",{confirmButtonText:"Confirm"}):a.$alert(r.msg,"系统提示",{confirmButtonText:"确认"})),r.data.code}catch(i){console.log(i)}else t()},window.onbeforeunload=function(){return o.close()}},o},ajax_get:function(e,t,n,a){t=Object.assign({version:a.version},t),o.a.get(e,{params:t}).then((function(e){var t=e.data;if(t=Object.assign({version:a.version},t),t.result){if(n)if(t.model&&JSON.stringify(t.model).length>2)try{n(t.model)}catch(o){}else n(t.model)}else a.$alert(t.message,"系统提示")}))},ajax_post:function(e,t,a,r,i,s,c){var u=n("4328");t=Object.assign({version:i.version},t),o.a.post(e,u.stringify(t),{params:a}).then((function(t){var n=t.data;if("0000"==n.code)r&&r(n,i);else if(s&&s(n,i),console.log(c),!c){var a=window.location.href.split("/")[2];"localhost:8081"==a&&(a="newtest.solar-iot.com"),e!="http://"+a+"/api/device/lampcontrol/turnonoff"&&e!="http://"+a+"/api/device/lampcontrol/load_setting"&&e!="http://"+a+"/api/device/lampcontrol/set_load"&&e!="http://"+a+"/api/device/lampcontrol/battery_setting"&&e!="http://"+a+"/api/device/lampcontrol/set_battery"&&("0001"==n.code||"0002"==n.code||"0003"==n.code||"0004"==n.code||n.code,1==i.version?i.$alert(n.msg,"System hints",{confirmButtonText:"Confirm"}):i.$alert(n.msg,"系统提示",{confirmButtonText:"确定"}))}}))},ajax_post3:function(e,t,a,r,i,s,c){var u=n("4328");t=Object.assign({version:i.version},t),o.a.post(e,u.stringify(t),{params:a}).then((function(t){var n=t.data;if("0000"==n.code)r&&r(n,i);else if(s&&s(n,i),!c){var a=window.location.href.split("/")[2];if("localhost:8081"==a&&(a="newtest.solar-iot.com"),e!="http://"+a+"/api/device/lampcontrol/turnonoff"&&e!="http://"+a+"/api/device/lampcontrol/load_setting"&&e!="http://"+a+"/api/device/lampcontrol/set_load"&&e!="http://"+a+"/api/device/lampcontrol/battery_setting"&&e!="http://"+a+"/api/device/lampcontrol/set_battery"){if("0001"==n.code||"0002"==n.code||"0003"==n.code||"0004"==n.code||"0102"==n.code){var o=window.localStorage;o.setItem("UserInformation","false"),o.setItem("loginState","false"),window.location.href="login.html"}1==i.version?i.$alert(n.msg,"System hints",{confirmButtonText:"Confirm"}):i.$alert(n.msg,"系统提示",{confirmButtonText:"确定"})}}}))},ajax_post2:function(e,t,a,r,i){var s=n("4328");t=Object.assign({version:i.version},t),o.a.post(e,s.stringify(t),{params:a}).then((function(e){var t=e.data;if(t.result){if(r)if(t.model&&JSON.stringify(t.model).length>2)try{r(t)}catch(n){}else r(t.message,i)}else i.$alert(t.message,"系统提示")}))},ajax_postAction:function(e,t,a,r,i){var s=n("4328");t=Object.assign({version:i.version},t),o.a.post(e,s.stringify(t),{params:a}).then((function(e){var t=e.data;if(t.result)try{r(t.message)}catch(n){}else i.$alert(t.message,"系统提示")}))},ajax_post1:function(e,t,n,a,r){t=Object.assign({version:r.version},t),o.a.post(e,t,{params:n}).then((function(e){var t=e.data;if(t.result){if(a)if(t.model&&JSON.stringify(t.model).length>2)try{a(t.model)}catch(n){}else a(t.message,r)}else r.$alert(t.message,"系统提示")}))},ajax_post_ws:function(e,t,a){var r=n("4328");t=Object.assign({version:a.version},t),o.a.post(e,r.stringify(t),{params:{}}).then((function(e){console.log(e)}))},ajax_weather:function(e,t,n,a){o.a.get(e,{params:t}).then((function(e){var t=e.data;console.log(t,"----------"),"ok"==t.HeWeather6[0].code?n&&n(t.HeWeather6[0]):a.$alert("获取天气信息失败","系统提示")}))}}},abd2:function(e,t,n){},aea5:function(e,t,n){e.exports=n.p+"img/nav_bg.402f2b5b.png"},fb5a:function(e,t,n){"use strict";var a=n("8fd4"),o=n.n(a);o.a},fdf0:function(e,t){e.exports={App:{login:{text1:"Welcome to inhealth!",text2:"Happiness and healthiness",text3:"Please enter your log-in name",text4:"Please enter your password",text5:"Please enter the verification code",text6:"Sign in",text7:"Retrieve password"},message:{text1:"System hints",text2:"Confirm",text3:"是否确认删除?",text4:"提示",text5:"确定",text6:"取消",text7:"已取消删除"}}}}}); //# sourceMappingURL=app.2420b329.js.map