Files
yycea/public/assets/addons/wdsxh/fullscreen/static/js/app-legacy.ad806bc2.js
2026-03-17 09:56:06 +08:00

2 lines
11 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){"use strict";var e={2514:function(e,t,n){n(3792),n(3362),n(9085),n(9391);var r=n(5471),o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},i=[],u=n(1656),a={},s=(0,u.A)(a,o,i,!1,null,"d65d3f30",null),c=s.exports,f=n(1052),l=n.n(f),d=(n(6099),n(7764),n(2953),n(173));r["default"].use(d.Ay);var m=[{path:"/",name:"index",component:function(){return n.e(583).then(n.bind(n,2583))}}],p=new d.Ay({routes:m}),h=p,g=n(5129),v=n(3311),b=n(3445),y=(n(500),n(7600),n(8931),n(5800),n(1463),n(6638));r["default"].prototype.$echarts=y,r["default"].config.productionTip=!1,r["default"].component("icon",b.A),r["default"].use(v.Ay),r["default"].use(l()),new r["default"]({router:h,store:g.A,render:function(e){return e(c)}}).$mount("#app")},3603:function(e,t,n){n.d(t,{WG:function(){return u},eF:function(){return a},gf:function(){return i}});var r=n(8987),o="Admin-Token";function i(){return r.A.get(o)}function u(e){return r.A.set(o,e)}function a(){return r.A.remove(o)}},5129:function(e,t,n){n(6099);var r=n(5471),o=n(5353),i=n(6718),u=n(3603);r["default"].use(o.Ay),t.A=new o.Ay.Store({state:{token:(0,u.gf)()},mutations:{SET_TOKEN:function(e,t){e.token=t}},actions:{Login:function(e,t){var n=e.commit;return new Promise(function(e,r){(0,i.iD)(t).then(function(){(0,u.WG)(t.password),n("SET_TOKEN",t.password),e()}).catch(function(e){r(e)})})},LogOut:function(e){var t=e.commit;return new Promise(function(e){t("SET_TOKEN",""),(0,u.eF)(),e()})}}})},6718:function(e,t,n){n.d(t,{aZ:function(){return A},HY:function(){return b},of:function(){return k},V0:function(){return O},xr:function(){return w},Tj:function(){return _},qg:function(){return S},d_:function(){return N},Lv:function(){return j},iD:function(){return y}});var r=n(4119),o=n(9201),i=(n(6280),n(4423),n(4782),n(3110),n(9432),n(6099),n(1699),n(2505)),u=n.n(i),a=n(1052),s=n(5129),c=n(3603),f={401:"认证失败,无法访问系统资源",403:"当前操作没有权限",404:"访问资源不存在",default:"系统未知错误,请反馈给管理员"},l={set:function(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:function(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){sessionStorage.removeItem(e)}},d={set:function(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:function(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){localStorage.removeItem(e)}},m={session:l,local:d};n(8706);function p(){var e=window.location,t=e.protocol,n=e.hostname,r=e.port,o=r?":".concat(r):"";return"".concat(t,"//").concat(n).concat(o)}u().defaults.headers["Content-Type"]="application/json;charset=utf-8";var h=u().create({baseURL:p(),timeout:3e4});function g(e){for(var t="",n=0,o=Object.keys(e);n<o.length;n++){var i=o[n],u=e[i],a=encodeURIComponent(i)+"=";if(null!==u&&""!==u&&"undefined"!==typeof u)if("object"===(0,r.A)(u))for(var s=0,c=Object.keys(u);s<c.length;s++){var f=c[s];if(null!==u[f]&&""!==u[f]&&"undefined"!==typeof u[f]){var l=i+"["+f+"]",d=encodeURIComponent(l)+"=";t+=d+encodeURIComponent(u[f])+"&"}}else t+=a+encodeURIComponent(u)+"&"}return t}h.interceptors.request.use(function(e){var t=!1===(e.headers||{}).isToken,n=!1===(e.headers||{}).repeatSubmit;if((0,c.gf)()&&!t&&("get"===e.method?e.params=(0,o.A)((0,o.A)({},(null===e||void 0===e?void 0:e.params)||{}),{},{password:(0,c.gf)()}):e.data=(0,o.A)((0,o.A)({},(null===e||void 0===e?void 0:e.data)||{}),{},{password:(0,c.gf)()})),"get"===e.method&&e.params){var i=e.url+"?"+g(e.params);i=i.slice(0,-1),e.params={},e.url=i}if(!n&&("post"===e.method||"put"===e.method)){var u={url:e.url,data:"object"===(0,r.A)(e.data)?JSON.stringify(e.data):e.data,time:(new Date).getTime()},a=Object.keys(JSON.stringify(u)).length,s=5242880;if(a>=s)return console.warn("[".concat(e.url,"]: ")+"请求数据大小超出允许的5M限制无法进行防重复提交验证。"),e;var f=m.session.getJSON("sessionObj");if(void 0===f||null===f||""===f)m.session.setJSON("sessionObj",u);else{var l=f.url,d=f.data,p=f.time,h=1e3;if(d===u.data&&u.time-p<h&&l===u.url){var v="数据正在处理,请勿重复提交";return console.warn("[".concat(l,"]: ")+v),Promise.reject(new Error(v))}m.session.setJSON("sessionObj",u)}}return e},function(e){Promise.reject(e)}),h.interceptors.response.use(function(e){var t=e.status,n=e.msg||f[t]||f["default"];if("blob"===e.request.responseType||"arraybuffer"===e.request.responseType)return e.data;if(401===t)return(0,c.gf)()&&s.A.dispatch("LogOut"),Promise.reject("无效的会话,或者会话已过期,请重新登录。");if(500===t)return(0,a.Message)({message:n,type:"error"}),Promise.reject(new Error(n));if(200!==t)return a.Notification.error({title:n}),Promise.reject("error");if(1==e.data.code)return e.data.data;if(0==e.data.code)return s.A.dispatch("LogOut"),Promise.reject({errorCode:!0,msg:"登录失败,请重新登录!"});var r,o,i=!1===((null===e||void 0===e||null===(r=e.config)||void 0===r?void 0:r.headers)||{}).codeErrorTips;return i?Promise.reject({errorCode:!0}):(a.Notification.error({title:(null===(o=e.data)||void 0===o?void 0:o.msg)||"服务器繁忙,请稍后再试!"}),Promise.reject("error"))},function(e){var t=e.message;return"Network Error"==t?t="后端接口连接异常":t.includes("timeout")?t="系统接口请求超时":t.includes("Request failed with status code")&&(t="系统接口"+t.substr(t.length-3)+"异常"),(0,a.Message)({message:t,type:"error",duration:5e3}),Promise.reject(e)});var v=h;function b(){return v({url:"/api/wdsxh/screen_validate/header",headers:{isToken:!1},method:"get"})}function y(e){return v({url:"/api/wdsxh/screen_validate/checkPassword",headers:{isToken:!1,repeatSubmit:!1,codeErrorTips:!1},method:"get",params:e})}function w(){return v({url:"/api/wdsxh/screen/member_industry",method:"get"})}function O(){return v({url:"/api/wdsxh/screen/member_daily_visit_frequency",method:"get"})}function S(){return v({url:"/api/wdsxh/screen/member_this_month_new",method:"get"})}function _(){return v({url:"/api/wdsxh/screen/member_list",method:"get"})}function j(){return v({url:"/api/wdsxh/screen/last_month_user_data",method:"get"})}function A(){return v({url:"/api/wdsxh/screen/activity",method:"get"})}function N(){return v({url:"/api/wdsxh/screen/member_type",method:"get"})}function k(){return v({url:"/api/wdsxh/screen/member_count",method:"get"})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],i=e[f][2];for(var a=!0,s=0;s<r.length;s++)(!1&i||u>=i)&&Object.keys(n.O).every(function(e){return n.O[e](r[s])})?r.splice(s--,1):(a=!1,i<u&&(u=i));if(a){e.splice(f--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))}}(),function(){n.u=function(e){return"static/js/"+e+"-legacy.20aad680.js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+".5e8d8a4c.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="sxh-big-screen:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+i){a=l;break}}a||(s=!0,a=document.createElement("script"),a.charset="utf-8",n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){n.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,r,o,i){var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",n.nc&&(u.nonce=n.nc);var a=function(n){if(u.onerror=u.onload=null,"load"===n.type)o();else{var r=n&&n.type,a=n&&n.target&&n.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+a+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=r,s.request=a,u.parentNode&&u.parentNode.removeChild(u),i(s)}};return u.onerror=u.onload=a,u.href=t,r?r.parentNode.insertBefore(u,r.nextSibling):document.head.appendChild(u),u},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===e||i===t))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===e||i===t)return o}},r=function(r){return new Promise(function(o,i){var u=n.miniCssF(r),a=n.p+u;if(t(u,a))return o();e(r,a,null,o,i)})},o={524:0};n.f.miniCss=function(e,t){var n={583:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then(function(){o[e]=0},function(t){throw delete o[e],t}))}}}(),function(){var e={524:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=i);var u=n.p+n.u(t),a=new Error,s=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}};n.l(u,s,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,u=r[0],a=r[1],s=r[2],c=0;if(u.some(function(t){return 0!==e[t]})){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(s)var f=s(n)}for(t&&t(r);c<u.length;c++)i=u[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(f)},r=self["webpackChunksxh_big_screen"]=self["webpackChunksxh_big_screen"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[504],function(){return n(2514)});r=n.O(r)})();
//# sourceMappingURL=app-legacy.ad806bc2.js.map