12 |
- webpackJsonp([11],{"5/Lo":function(e,t){},"991W":function(e,t){},I6ZY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPYAAABKCAMAAAC/xFn0AAAAtFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////oK74hAAAAO3RSTlMABvkKEw4X9hsjMPLw6UIrOVbYr0cnH6qhTDSUdz7tUty4gJ3T5LOlW+BomIt7cmxlz8bBYYe8hMuPXnlBQsoAABLBSURBVHja5JnntrJGFIZhKENXAQsWBBGPYAW7+/7vK3uQT7Dkiyb5kbXyruU5ogPMM7s6cF+os3ZmvxQOGtz/Q30H6rLb3P9B/Rk8asxz/4IkSXi8Di8L3H9HL9TQ+gpblGWRexU/cpuNB+j2VeX+VfGS8E+oP8LmUdVBeYQvaZUfD+9WY0b0nVSdoc1sc/xmnMDz35DWQdvLfVv8e+TNGXyELVieO2pqmtbGV39kjecWIvclXjqBfnmH3QPi8LU5ZmAMXzEa+7nbb3RkdJkHyahOu6Fp4sPw/lYR7geeToJu829Rh/AZdjsghOi+b8am7xuUAB1wvBVMXDEFY/0utC+gL+vrNidkJryMWgIQI7az/Og4P72bfhxnttudMzuJ/SB9WMuJPru2f527ATAimfte1hE+xO7sqG7oBIC9qKFT/4IkQHZKC4zNO+zVk3VVG0zvZdQBkJuidJSB0pnwmKAAnq7RiQDMQzk9ZYC3r9LH57GiHuFTbHl5WW2GOVrWAbLYryeXLTNVYElzMFZvbitswL8WbyShiF95FueTe2qoRgENB8vTZDgcrjdpmq6HqMlpeVn8hAmAP39IRBnoPaU80M6gd61Rk2lkuV6T/5A6gk+wK/ETSKQUaGk0JSfZeHwBGvW1vuWKj9jbm3H55mY/91yraUXR3utjYmha3rj564pjgFj7k7spEwDTeggUHc7W/cAA0M04KWT6wZD/lPpb7CHY0hZ093bkGkDQKwH0wLZjW3vEnoM5Ym48AUJ000yCYDq1mZLYMHr3MkfBVu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BdyJ8B9MTYNaP8wSywOKulVW6h0VJd42ArBjPR8jphfaYnmcJXRcS9bEksJP9Fl/oszrXmwM0Yt+bSrQuxkXY730HY7TZ7+NppSUQLqu9Te3uIM9v+//Pwdt+ot3iA2cOeLN4gtuN8g9hlu/y1gA3f44d0kdysFvQnBimVMkthvwtgCnEzyL/2XkOvlB/Xf59vdan4rAAAAAElFTkSuQmCC"},ILFG:function(e,t){},Mxzd:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3cXf"),n=a.n(i),o=a("rVsN"),s=a.n(o),r=a("bSIt"),c=a("+RKF"),l={isHead:[{name:"广告主管理",keyName:"advertiser",defaultPath:"/accountList",isLogin:!0,type:1,isShow:!0},{name:"推广",keyName:"manage",defaultPath:"/manage",isLogin:!0,type:1,isShow:!0}],isSide:[{path:"/accountList",hidden:!1,meta:{title:"广告主管理"},children:[{path:"/accountList",name:"accountList",meta:{title:"广告主管理"},hidden:!0}]},{path:"/userList",hidden:!1,meta:{title:"账户管理"},children:[{path:"/userList",name:"userList",meta:{title:"账户管理"},hidden:!0}]},{path:"/setting",hidden:!1,meta:{title:"人群包设定"},children:[{path:"/setting",name:"setting",meta:{title:"人群包设定"},hidden:!0}]}]},u=a("IhWa"),d=(a("V0Zq"),{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"loginContainer"},[e._m(0),e._v(" "),a("div",{staticClass:"content"},[a("h3",[e._v("登录")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"inputItem"},[a("p",[e._v("用户名")]),e._v(" "),a("el-input",{staticClass:"input",attrs:{placeholder:"请输入用户名",clearable:""},model:{value:e.userName,callback:function(t){e.userName="string"==typeof t?t.trim():t},expression:"userName"}})],1),e._v(" "),a("div",{staticClass:"inputItem"},[a("p",[e._v("密码")]),e._v(" "),a("el-input",{staticClass:"input",attrs:{placeholder:"请输入密码","show-password":""},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginEvent()}},model:{value:e.password,callback:function(t){e.password="string"==typeof t?t.trim():t},expression:"password"}})],1),e._v(" "),a("button",{staticClass:"loginButton",on:{click:e.loginEvent}},[e._v("登录")])]),e._v(" "),a("p",{staticClass:"loginHine"},[e._v("\n 如忘记密码,请询问管理员找回密码\n ")])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"topTitleBox"},[t("img",{attrs:{src:a("I6ZY"),alt:""}}),this._v(" "),t("span",[this._v("小店通投放系统")])])}]});var m=a("C7Lr")({components:{},data:function(){return{userName:"",password:"",loading:!1}},methods:{loginEvent:function(){var e=this;this.$message.closeAll(),""!=this.userName?""!=this.password?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.login,{name:this.userName,password:this.password}).then(function(t){if(t=t.data,e.loading=!1,t&&0==t.errno){if(!t.rst.success)return void e.$message.error("登陆失败");e.$cookieStore.setCookie("username",e.userName),e.$cookieStore.setCookie("isLogin",!0),e.$router.push("/")}else e.$message({message:t.err,type:"warning"})}).catch(function(){e.loading=!1})):this.$message({message:"请输入密码",type:"error"}):this.$message({message:"请输入用户名",type:"error"})}}},d,!1,function(e){a("by7M")},"data-v-59f5a04b",null).exports,p=u.a.prototype.push;u.a.prototype.push=function(e){return p.call(this,e).catch(function(e){return e})};var g=u.a.prototype.replace;u.a.prototype.replace=function(e){return g.call(this,e).catch(function(e){return e})},c.default.use(u.a);var h=[{path:"/login",name:"login",component:m,meta:{noSide:!0,buryingPoint:"登录页",isLogin:!1,title:"小店通"}}],f=function(){return new u.a({routes:h})},v=f();v.onError(function(e){var t=e.message.match(/Loading chunk (\d)+ failed/g);v.history.pending.fullPath;t&&v.go(0)});var C=v,L={data:function(){return{menuList:[],defaultMenu:"/home",userName:{},loginOutLoading:!1,isCollapse:!1}},created:function(){this.defaultMenu=this.$route.name,this.userName=this.$cookieStore.getCookie("username")?this.$cookieStore.getCookie("username"):"",this.menuList=l},mounted:function(){},methods:{handleOpen:function(e,t){},handleClose:function(e,t){},menuEvent:function(e){this.$router.push(e)},loginOut:function(){var e=this;this.loginOutLoading=!0,this.$axios.post(this.URL.BASEURL+this.URL.loginOut,{}).then(function(t){t=t.data;e.loginOutLoading=!1,t&&0==t.errno?(e.$message({message:"退出成功!",type:"success"}),e.$cookieStore.delAllCookie(),e.$router.replace("/login")):e.$message({message:t.err,type:"warning"})}).catch(function(){e.loginOutLoading=!1})}},watch:{$route:function(e,t){this.defaultMenu=e.name}}},b={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"clear"},[e.$route.meta.isSide?e._e():i("el-aside",{staticClass:"sideMain"},[i("el-menu",{staticClass:"side_menu",attrs:{"default-active":e.defaultMenu,"background-color":"#252A4F","text-color":"#fff",collapse:e.isCollapse,"active-text-color":"#ffffff"},on:{open:e.handleOpen,close:e.handleClose,select:e.menuEvent}},[i("div",{staticClass:"logoMain"},[i("img",{staticClass:"logo_icon",attrs:{src:a("dLd/"),alt:""}}),e._v(" "),e.isCollapse?e._e():i("span",[e._v("小店通")])]),e._v(" "),i("div",{staticClass:"menu-wrapper"},[e._l(e.menuList.isSide,function(t){return[t.children&&1===t.children.length&&!t.children[0].children?i("router-link",{key:t.children[0].name,attrs:{to:t.children[0].path}},["admin"==e.userName&&"账户管理"==t.children[0].meta.title||"账户管理"!=t.children[0].meta.title?i("el-menu-item",{staticClass:"submenu-title-noDropdown",attrs:{index:t.children[0].path}},[t.children[0].meta&&t.children[0].meta.title?i("span",[e._v(e._s(t.children[0].meta.title))]):e._e()]):e._e()],1):t.children&&t.children.every(function(e){return e.isShow})?i("router-link",{key:t.children[0].name,attrs:{to:t.children[0].path}},[i("el-menu-item",{staticClass:"submenu-title-noDropdown",attrs:{index:t.children[0].path}},[t.children[0].meta&&t.children[0].meta.title?i("span",[e._v(e._s(t.meta.title))]):e._e()])],1):t.isShow?e._e():i("el-submenu",{key:t.name,attrs:{index:t.name||t.path}},[i("template",{slot:"title"},[t.meta&&t.meta.title?i("span",[e._v(e._s(t.meta.title))]):e._e()]),e._v(" "),e._l(t.children,function(t){return t.isShow?e._e():[i("router-link",{key:t.name,attrs:{to:t.path}},[i("el-menu-item",{attrs:{index:t.path}},[t.meta&&t.meta.title?i("span",[e._v(e._s(t.meta.title))]):e._e()])],1)]})],2)]})],2)])],1),e._v(" "),i("el-header",{staticClass:"mainContainer"},[i("div",{staticClass:"topBox clear"},[i("div",{staticClass:"left"},[i("div",{staticClass:"logoMain"},[i("img",{staticClass:"logo_icon",attrs:{src:a("dLd/"),alt:""}}),e._v(" "),e.isCollapse?e._e():i("span",[e._v("小店通")])]),e._v(" "),e._l(e.menuList.isHead,function(t){return i("router-link",{key:t.name,class:["head",e.$route.name==t.keyName&&"active"],attrs:{to:t.defaultPath}},[e._v("\n "+e._s(t.name)+"\n ")])})],2),e._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"otherItem"},[i("span",[e._v(e._s(e.userName))])]),e._v(" "),i("div",{staticClass:"otherItem",staticStyle:{cursor:"pointer"},on:{click:e.loginOut}},[i("span",[e._v("退出系统\n "),e.loginOutLoading?i("i",{staticClass:"el-icon-loading"}):e._e()])])])])]),e._v(" "),i("el-main",{staticClass:"mainCon"},[i("keep-alive",[e.$route.meta.keepAlive?i("router-view"):e._e()],1),e._v(" "),e.$route.meta.keepAlive?e._e():i("router-view")],1)],1)},staticRenderFns:[]};var y=a("C7Lr")(L,b,!1,function(e){a("5/Lo"),a("V3J7")},"data-v-6405e2a1",null).exports;c.default.use(u.a);var k,x={Index:y,errorPage:function(){return a.e(5).then(a.bind(null,"Zazt"))},accountList:function(){return a.e(7).then(a.bind(null,"Uaje"))},userList:function(){return a.e(8).then(a.bind(null,"DH2y"))},setting:function(){return a.e(9).then(a.bind(null,"xXdY"))},first:function(){return Promise.all([a.e(0),a.e(1)]).then(a.bind(null,"Xp20"))},second:function(){return Promise.all([a.e(0),a.e(2)]).then(a.bind(null,"+duP"))},three:function(){return Promise.all([a.e(0),a.e(3)]).then(a.bind(null,"0SG/"))},test:function(){return Promise.all([a.e(0),a.e(4)]).then(a.bind(null,"xMXC"))},manage:function(){return a.e(6).then(a.bind(null,"nbVP"))}},w=[{path:"*",componentName:"errorPage",hidden:!0,meta:{buryingPoint:"404",isLogin:!0,title:"404"}},{path:"/",redirect:"/accountList"},{path:"/index",name:"index",componentName:"Index",children:[{path:"/accountList",name:"accountList",componentName:"accountList",meta:{title:"广告主列表"},hidden:!0},{path:"/userList",name:"userList",componentName:"userList",meta:{title:"账户列表"},hidden:!0},{path:"/test",name:"test",componentName:"test",meta:{title:"账户列表"},hidden:!0},{path:"/setting",name:"setting",componentName:"setting",meta:{title:"人群包设定"},hidden:!0},{path:"/first",name:"first",componentName:"first",meta:{title:"创建广告计划",isSide:!0},hidden:!0},{path:"/second",name:"second",componentName:"second",meta:{title:"编辑广告主内容",isSide:!0},hidden:!0},{path:"/three",name:"three",componentName:"three",meta:{title:"编辑广告创意",isSide:!0},hidden:!0},{path:"/manage",name:"manage",componentName:"manage",meta:{title:"推广",isSide:!0},hidden:!0}]}],U=(new u.a({mode:"hash",routes:w}),a("84iU")),S=a.n(U),N=a("a3Yh"),A=a.n(N),I=a("Uuz3"),T=(k={BASEURL:new(a.n(I).a)({address:{ceshi:"/ceshi","线上":"/api",production:""},default:"production",exclude:"production",color:"#f66034"}).address,loginOut:"/api/user/logout",login:"/api/login",accountList:"/api/account/list",dmpList:"/api/account/dmpList",dmpSelectType:"/api/account/dmpSelectType",params:"/api/adUnit/params",params_region:"/api/adUnit/params_region",createCam:"/api/campaign/create",uploadVideo:"/api/creative/uploadVideo",userVideoList:"/api/creative/userVideoList",barTextList:"/api/creative/barTextList",creativeWordList:"/api/creative/creativeWordList",creativeWordStyles:"/api/creative/creativeWordStyles",creativeUpload:"/api/adImage/creativeUpload",getBatchUnitInfo:"/api/creative/getBatchUnitInfo",batchCreate:"/api/creative/batchCreate",creativeDetail:"/api/creative/creativeDetail",programCreativeDetail:"/api/creative/programCreativeDetail",updateCreate:"/api/creative/update",programUpdate:"/api/creative/programUpdate",getRecommendedWord:"/api/creative/getRecommendedWord",behavior_interest:"/api/adUnit/behavior_interest",behavior_keyword:"/api/adUnit/keyword",targeting_tags:"/api/adUnit/targeting_tags",params_dmp:"/api/adUnit/params_dmp",createAD:"/api/adUnit/create",tmpList:"/api/adUnit/target/tmp",updateadUnit:"/api/adUnit/update",adUnitupdate_status:"/api/adUnit/update_status",programCreate:"/api/creative/programCreate",adImageIndex:"/api/adImage/index",adImageView:"/api/adImage/view",singleCreate:"/api/creative/singleCreate",singleProgramCreate:"/api/creative/singleProgramCreate"},A()(k,"dmpSelectType","/api/account/dmpSelectType"),A()(k,"getAuthorizeUrl","/api/adUserAuthorize/getAuthorizeUrl"),A()(k,"userIndex","/api/user/index"),A()(k,"create","/api/user/create"),A()(k,"disable","/api/user/disable"),A()(k,"enable","/api/user/enable"),A()(k,"creativeList","/api/creative/creativeList"),A()(k,"programCreativeList","/api/creative/programCreativeList"),A()(k,"batchChangeCreativeStatus","/api/creative/batchChangeCreativeStatus"),A()(k,"campaignList","/api/campaign/list"),A()(k,"campaignInfo","/api/campaign/info"),A()(k,"update_budget","/api/campaign/update_budget"),A()(k,"update_status","/api/campaign/update_status"),A()(k,"adUnitList","/api/adUnit/list"),A()(k,"adUnitInfo","/api/adUnit/info"),k),B="wxVideo_";function O(e){return!!localStorage.getItem(B+e)&&localStorage.getItem(B+e)}function Y(){var e,t;t=localStorage.getItem("dou_toast_time"),e=localStorage.getItem("toast_time"),localStorage.clear(),localStorage.setItem("toast_time",e),localStorage.setItem("dou_toast_time",t)}c.default.use(r.a);var M={keyword:"",loading:!0,platformType:"home",hasLoading:!1,routerName:"",userStatus:{},platform:1,loginGoToPage:"",navList:l,navList2:l,isLogin:!1,permissionPhp:[],master:1,homeSearchData:{},hrLiveProductTime:""},j={setHomeSearchData:function(e,t){e.homeSearchData=t},setNavListIdOpen:function(e,t){e.navList2[e.platformType][t].isOpen=!e.navList2[e.platformType][t].isOpen},setKeyword:function(e,t){e.keyword=t},checkoutLoginGoToPage:function(e,t){console.log("改变"),console.log(t),console.log("~~~~"),e.loginGoToPage=t},checkoutPlatform:function(e,t){e.platform=t},setPlatformType:function(e,t){e.platformType=t},setIsLogin:function(e,t){e.isLogin=t}},G={permissionInit:function(e,t){e.commit;var a=e.state;return new s.a(function(e,t){var i=JSON.parse(n()(a.navList));a.navList2=i;var o=function e(t){return t.forEach(function(t,a){t.component=x[t.componentName],t.children&&t.children.length>0&&e(t.children)}),t}(JSON.parse(n()(w)));C.options.routes=o,C.addRoutes(o),e(!0)})}},E=new r.a.Store({state:M,getters:{getNavList:function(e){return e.navList2},getPlatformType:function(e){return e.platformType},getIsLogin:function(e){return e.isLogin},getHomeSearchData:function(e){return e.homeSearchData}},mutations:j,actions:G});var R=a("Iufj"),D=a.n(R),V=a("/QDj"),P=a.n(V);c.default.use(D.a,S.a),S.a.defaults.timeout=1e6,S.a.interceptors.request.use(function(e){return e},function(e){return s.a.reject(e)}),S.a.interceptors.response.use(function(e){return"4002"!=e.data.errno&&"401"!=e.data.errno||(V.Message.closeAll(),Y(),C.push("/login")),e.data?e:s.a.reject(e)},function(e){if(console.log("error"),console.log(e),e&&e.response)switch(e.response.status){case 400:e.message="请求错误";break;case 401:e.message="未授权,请登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求地址出错404";break;case 405:e.message="请求不被允许,请检查接口调用方式";break;case 408:e.message="请求超时";break;case 500:case 501:case 502:case 503:case 504:e.message="服务器开个小差,请稍后再试";break;case 505:e.message="HTTP版本不受支持"}return Object(V.MessageBox)({message:e.message,duration:3e3}),s.a.reject(e)}),c.default.prototype.$axios=S.a,c.default.prototype.URL=T;c.default.prototype;var F={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isIEfalg:!1,isRouterAlive:!0}},mounted:function(){this.IEVersion()},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})},IEVersion:function(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,a=e.indexOf("Edge")>-1&&!t,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;t?this.isIEfalg=!0:a||i&&(this.isIEfalg=!0),navigator.userAgent.indexOf("MSIE")>0?this.$cookieStore.setCookie("browserOs","MSIE"):navigator.userAgent.indexOf("Firefox")>0?this.$cookieStore.setCookie("browserOs","Firefox"):navigator.userAgent.indexOf("Safari")>0?this.$cookieStore.setCookie("browserOs","Safari"):navigator.userAgent.indexOf("Camino")>0?this.$cookieStore.setCookie("browserOs","Camino"):navigator.userAgent.indexOf("Gecko/")>0&&this.$cookieStore.setCookie("browserOs","Gecko")}}},W={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[this.isIEfalg?t("div",{attrs:{id:"warning_sorry"}},[t("div",{staticClass:"app_sorry"},[this._v("抱歉 为了保证产品体验,建议您用其他浏览器!")])]):this._e(),this._v(" "),this.isRouterAlive?t("router-view"):this._e()],1)},staticRenderFns:[]};var _=a("C7Lr")(F,W,!1,function(e){a("oSxZ")},null,null).exports,H=(a("991W"),a("bEJ9")),J=a.n(H),Z=a("+/Yu"),Q=a.n(Z),X=(a("ILFG"),a("SXXC")),z=a.n(X);function K(e,t){var a=1;return t&&(a=t),-1!=(e+"").indexOf(".")?parseFloat(Number(e).toFixed(a)):e}var q={props:{visible:{type:Boolean,default:!1},width:{default:"50%"},minWidth:{default:"0"},className:"",paddingBottom:{default:30}},methods:{CancelHandler:function(){this.$emit("update:visible",!1)}}},$={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.visible?a("div",{staticClass:"my_dialog"},[a("div",{staticClass:"closeDiv",style:"right:calc((100vw - "+e.width+") / 2)",on:{click:e.CancelHandler}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),a("div",{staticClass:"dialog_con",class:e.className,style:{width:e.width,"min-width":e.minWidth,"padding-bottom":e.paddingBottom}},[e._t("default")],2)]):e._e()},staticRenderFns:[]};var ee=a("C7Lr")(q,$,!1,function(e){a("Mxzd"),a("R+We")},"data-v-7a2edf97",null).exports;c.default.prototype.$cookieStore={setCookie:function(e,t,a){-1!=a?localStorage.setItem(B+e,t):localStorage.removeItem(B+e)},getCookie:O,delCookie:function(e){localStorage.removeItem(B+e)},delAllCookie:Y},c.default.prototype.getDay=function(e,t){var a=new Date,i=a.getTime()+864e5*e;a.setTime(i);var n=a.getFullYear(),o=a.getMonth(),s=a.getDate(),r=a.getHours(),c=a.getMinutes(),l=a.getSeconds();return o=u(o+1),s=u(s),t?0==e?{now:n+"-"+o+"-"+s+" "+r+":"+c+":"+l,zero:n+"-"+o+"-"+s+" 00:00:00"}:n+"-"+o+"-"+s+" "+r+":"+c+":"+l:n+"-"+o+"-"+s;function u(e){var t=e;return 1==e.toString().length&&(t="0"+e),t}},c.default.prototype.formatDuring=function(e){var t=new Date(1e3*e);return t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())},c.default.prototype.$NumberHandle=function(e,t){return"number"!=typeof parseFloat(e)||isNaN(e)?e:e>=1e4&&e<1e7||e<=-1e4&&e>-1e7?K(e/1e4,t)+"w":e>=1e7&&e<1e8||e<=-1e7&&e>-1e8?K(e/1e7,t)+"kw":e>=1e8||e<=-1e8?K(e/1e8,t)+"亿":K(e,t)},c.default.prototype.$NumberMiddle=function(e,t){return"number"!=typeof e||isNaN(e)?e:e<=-1e4||e>1e4?K(e/1e4,t)+"w":e},c.default.prototype.$NumberCn=function(e,t){if("number"!=typeof parseFloat(e)||isNaN(e))return{format:e,format_data:e,format_unit:""};var a;if(e>=1e4&&e<1e8||e<=-1e4&&e>-1e8)return{format:(a=K(e/1e4,t))+"万",format_data:a,format_unit:"万"};if(e>=1e8||e<=-1e8)return{format:(a=K(e/1e8,t))+"亿",format_data:a,format_unit:"亿"};var i=e,n=e,o=toString(n).indexOf(".")+1,s=toString(n).length-o;return 0==o&&(s=0),{format:i=s<=1?e:e.toFixed(1),format_data:i,format_unit:""}},c.default.prototype.$copy=function(e,t){var a=document.createElement("p");if(a.innerText=e,document.body.appendChild(a),document.body.createTextRange)(i=document.body.createTextRange()).moveToElementText(a),i.select();else if(window.getSelection){var i,n=window.getSelection();(i=document.createRange()).selectNodeContents(a),n.removeAllRanges(),n.addRange(i),document.execCommand("Copy")}a.remove(),t&&t()},c.default.prototype.$jquery=z.a,c.default.use(P.a),c.default.use(J.a),c.default.prototype.$echarts=Q.a,c.default.component("my-dialog",ee),c.default.config.productionTip=!1,C.beforeEach(function(e,t,a){document.title=e.meta.title?e.meta.title:"小店通投放平台",c.default.prototype.fromPath=t.path,a()}),E.dispatch("permissionInit").then(function(e){new c.default({el:"#app",router:C,store:E,components:{App:_},template:"<App/>",data:{}})},function(e){console.log(e)})},"R+We":function(e,t){},V3J7:function(e,t){},by7M:function(e,t){},"dLd/":function(e,t,a){e.exports=a.p+"static/img/logo.756c8ac.png"},oSxZ:function(e,t){}},["NHnr"]);
- //# sourceMappingURL=app.a8d0db1ecbe9f5edb4de.js.map
|