chunk-00d95915.2ba83cf3.js 12 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00d95915"],{"09a0":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"index"}},[r("keep-alive",[r("router-view")],1)],1)},o=[],i=(r("bc4a"),r("e967"),r("379d"),r("82ae")),a=r("fed1"),l={data:function(){return{}},mounted:function(){this.getCurVersion()},methods:{getCurVersion:function(){var e=this;function t(){if("undefined"==typeof plus)return!1;plus.runtime.getProperty(plus.runtime.appid,(function(t){localStorage.version=t.version,e.curVersion=t.version})),plus.device.getInfo({success:function(t){var r=JSON.stringify(t.uuid).toString().substr(1);if(r=r.substring(0,r.length-1),localStorage.eqSn=r,console.log("===== uuid =====:"+r),console.log("getDeviceInfo success: "+JSON.stringify(t.uuid)),"8e501b0bde9ce600"==r){if("test"==runVersion)return console.log("test版本暂时关闭本地升级"),!1;var n="http://192.168.0.3:19096/v1/Sensors/VCAppQueryVueFramework",o={},l=a.stringify(o);i.post(n,l).then((function(t){var r=t.data;if(0==r.Code){if(localStorage.version!=r.VueFramework.Version){console.log(332);var n="http://192.168.0.3:19096/v1/Sensors/VCAppDownloadVueFramework";e.downWgt(n)}}else console.log(r.Memo)}),(function(e){console.info(e)}))}else{if(console.log(223),"test"==runVersion)return console.log("测试版禁用自动升级"),!1;e.checkUpdate()}},fail:function(e){console.log("getDeviceInfo failed: "+JSON.stringify(e))}})}localStorage.eqSn="30:9C:23:0C:8B:1E",localStorage.version="1.1.0",window.plus?t():(console.log("mui is not ready"),document.addEventListener("plusready",t,!1))},checkUpdate:function(){var e={},t=a.stringify(e),r=(this.$createElement,"http://cal.beswell.com:85/v1/Sensors/VCAppQueryVueFramework");i.post(r,t).then((function(e){var t=e.data;if(0==t.Code&&(console.log("localStorage.version"+localStorage.version),localStorage.version!=t.VueFramework.Version)){var r="http://cal.beswell.com:85/v1/Sensors/VCAppDownloadVueFramework";this.downWgt(r)}}))},downWgt:function(e){var t=this;plus.downloader.createDownload(e,{filename:"_doc/update/"},(function(e,r){200==r?(console.log(e),console.log("下载wgt成功:"+e.filename),t.installWgt(e.filename)):console.log("下载wgt失败!"),plus.nativeUI.closeWaiting()})).start()},installWgt:function(e){plus.runtime.install(e,{},(function(){plus.nativeUI.closeWaiting(),console.log("安装wgt文件成功!"),plus.runtime.restart()}),(function(e){plus.nativeUI.closeWaiting(),console.log("安装wgt文件失败["+e.code+"]:"+e.message)}))}}},c=l,s=(r("5982"),r("5d22")),u=Object(s["a"])(c,n,o,!1,null,null,null);t["default"]=u.exports},"20d0":function(e,t,r){"use strict";var n=r("7b05"),o=r("aaf3"),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,s=function(e,t){c.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o["default"]],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,a,c,u,p,d,y,g,m,h){var v=t;if("function"===typeof u?v=u(r,v):v instanceof Date?v=y(v):"comma"===o&&l(v)&&(v=v.join(",")),null===v){if(i)return c&&!m?c(r,f.encoder,h):r;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||n.isBuffer(v)){if(c){var b=m?r:c(r,f.encoder,h);return[g(b)+"="+g(c(v,f.encoder,h))]}return[g(r)+"="+g(String(v))]}var w,O=[];if("undefined"===typeof v)return O;if(l(u))w=u;else{var j=Object.keys(v);w=p?j.sort(p):j}for(var S=0;S<w.length;++S){var N=w[S];a&&null===v[N]||(l(v)?s(O,e(v[N],"function"===typeof o?o(r,N):r,o,i,a,c,u,p,d,y,g,m,h)):s(O,e(v[N],r+(d?"."+N:"["+N+"]"),o,i,a,c,u,p,d,y,g,m,h)))}return O},d=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o["default"];if("undefined"!==typeof e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=f.filter;return("function"===typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var r,n,o=e,i=d(t);"function"===typeof i.filter?(n=i.filter,o=n("",o)):l(i.filter)&&(n=i.filter,r=n);var c,u=[];if("object"!==typeof o||null===o)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[c];r||(r=Object.keys(o)),i.sort&&r.sort(i.sort);for(var y=0;y<r.length;++y){var g=r[y];i.skipNulls&&null===o[g]||s(u,p(o[g],g,f,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var m=u.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),m.length>0?h+m:""}},"40d2":function(e,t,r){},5982:function(e,t,r){"use strict";r("40d2")},"7b05":function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(o(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=l(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"===typeof a&&r&&"object"===typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),a)},s=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},f=function(e,t,r){if(0===e.length)return e;var n="string"===typeof e?e:String(e);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var l=n.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?o+=n.charAt(a):l<128?o+=i[l]:l<2048?o+=i[192|l>>6]+i[128|63&l]:l<55296||l>=57344?o+=i[224|l>>12]+i[128|l>>6&63]+i[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&n.charCodeAt(a)),o+=i[240|l>>18]+i[128|l>>12&63]+i[128|l>>6&63]+i[128|63&l])}return o},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],l=Object.keys(i),c=0;c<l.length;++c){var s=l[c],u=i[s];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:s}),r.push(u))}return a(t),e},d=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},y=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:l,assign:s,combine:g,compact:p,decode:u,encode:f,isBuffer:y,isRegExp:d,merge:c}},aaf3:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},df17:function(e,t,r){"use strict";var n=r("7b05"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",s=function(e,t){var r,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,f),d=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&(p[r]===c?y="utf-8":p[r]===l&&(y="iso-8859-1"),d=r,r=p.length);for(r=0;r<p.length;++r)if(r!==d){var g,m,h=p[r],v=h.indexOf("]="),b=-1===v?h.indexOf("="):v+1;-1===b?(g=t.decoder(h,i.decoder,y),m=t.strictNullHandling?null:""):(g=t.decoder(h.slice(0,b),i.decoder,y),m=t.decoder(h.slice(b+1),i.decoder,y)),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=a(m)),m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),o.call(s,g)?s[g]=n.combine(s[g],m):s[g]=m}return s},u=function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=n):i[l]=n:i={0:n}}n=i}return n},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.exec(n),c=l?n.slice(0,l.index):n,s=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;s.push(c)}var f=0;while(null!==(l=a.exec(n))&&f<r.depth){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(l[1])}return l&&s.push("["+n.slice(l.index)+"]"),u(s,t,r)}},p=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=p(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"===typeof e?s(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),l=0;l<a.length;++l){var c=a[l],u=f(c,o[c],r);i=n.merge(i,u,r)}return n.compact(i)}},fed1:function(e,t,r){"use strict";var n=r("20d0"),o=r("df17"),i=r("aaf3");e.exports={formats:i,parse:o,stringify:n}}}]);
  2. //# sourceMappingURL=chunk-00d95915.2ba83cf3.js.map