webpackJsonp([9],{"+/MR":function(t,e){},"457U":function(t,e){},"5FmO":function(t,e){},"7ewL":function(t,e,n){"use strict";var r=n("LTzH"),o=n("VqY/"),i={findByType:function(t){var e=Array.isArray(t)?t.join(","):t;return r.a.get(o.a.API_URL+"resourceManage/config?configData="+e).then(function(e){return Array.isArray(t)?e.data.data:e.data.data[t]})},findArticleType:function(){return this.findByType("articleType")}};e.a=i},"91sB":function(t,e){},CndG:function(t,e,n){"use strict";var r=n("LTzH"),o=n("VqY/"),i={getUserInfo:function(){return r.a.get(o.a.API_URL+"user/present").then(function(t){return t.data})},getRelatedAccount:function(){return r.a.get(o.a.API_URL+"account/list").then(function(t){return t.data})},getCurrentAccount:function(){return r.a.get(o.a.API_URL+"account/present").then(function(t){return t.data})},switchAccount:function(t){return r.a.put(o.a.API_URL+"account/present/shift",{accountId:t}).then(function(t){return t.data})}};e.a=i},IcnI:function(t,e,n){"use strict";var r,o=n("yf3K"),i=n("bSIt"),a=n("a3Yh"),u=n.n(a),c=n("Klf7"),s=n.n(c),l=n("7ewL"),d=n("CndG"),p={state:{fetchLoading:!1,title:"",user:{userName:null},adShapeList:[],accountList:[],resourcePlatformList:[],productList:[],editTemplateData:{},currentAccount:"",isAdmin:!1},getters:{fetchLoading:function(t){return t.fetchLoading},userCookie:function(t){return t.user},resourcePlatformList:function(t){return t.resourcePlatformList},productList:function(t){return t.productList},adShapeList:function(t){return t.adShapeList},accountList:function(t){return t.accountList},currentAccount:function(t){return t.currentAccount},user:function(t){return t.user},editTemplateData:function(t){return t.editTemplateData},isAdmin:function(t){return t.isAdmin}},actions:{FETCH_LOADING:function(t,e){(0,t.commit)("loading",e)},dicInit:function(t){var e=t.commit;l.a.findByType(["resourcePlatform","product","adShape"]).then(function(t){e("dicInit",{resourcePlatformList:t.resourcePlatform,productList:t.product,adShapeList:t.adShape})})},getRelatedAccount:function(t,e){var n=t.commit;d.a.getRelatedAccount().then(function(t){n("accountList",t.data)})},editTemplate:function(t,e){(0,t.commit)("editTemplate",e)},userLogin:function(t){var e=t.commit;d.a.getUserInfo().then(function(t){200===t.status&&(s.a.set("UserName",t.data.name,{expires:"30m"}),e("userLogin",{userName:t.data.name}),e("isAdmin",1===t.data.role))})},getCurrentAccount:function(t){var e=t.commit;d.a.getCurrentAccount().then(function(t){e("currentAccount",t.data.accountName)})}},mutations:(r={},u()(r,"loading",function(t,e){t.fetchLoading=e}),u()(r,"userLogin",function(t,e){t.user=e}),u()(r,"userLogout",function(t,e){t.user=e}),u()(r,"accountList",function(t,e){t.accountList=e}),u()(r,"editTemplate",function(t,e){t.editTemplateData=e}),u()(r,"dicInit",function(t,e){t.adShapeList=e.adShapeList,t.resourcePlatformList=e.resourcePlatformList,t.productList=e.productList}),u()(r,"currentAccount",function(t,e){t.currentAccount=e}),u()(r,"isAdmin",function(t,e){t.isAdmin=e}),r)},h=n("Bjlo").Promise;window.Promise||(window.Promise=h),o.default.use(i.a);var f=new i.a.Store({modules:{app:p}});e.a=f},L6Yq:function(t,e){t.exports="data:image/gif;base64,R0lGODlhlgCWALMAAK3M2f/Hw5GLjLWnovns4fDg1p6wuYZ7e97RyKCamsS3sH9wcNHFvXppaf/06Lrl9SH5BAAAAAAALAAAAACWAJYAAAT/8MlJq7046827/2AojmRpnmiqrmzrvnAsz3Rt37gK5HxfAoLGzkcsYgyHhnJobBKRyijTSbUBo9iqlnbFZrdgl2Hh9YbPKUCybEa7Rwl2efF2A6YatXxePwMWCR1je2UHfWB/DXQbQYSFh1trDQYZeo6PkFSNSgJHl3KdmU1xXngPm59eoaJPbJQTlqllq6w8iZgPt7KztT6SZTsGu3uBvTmoZQnCw3LFxjbLzNLOzzO60sOv1TO/2Lva2zCk3szg4S0A5Njm5yvd6qns7Sjj8Lum8ybp9szU+Sfv+KUSIO+fh0ECvS0oaPAImYTwADXcgBAiv4UTLXSxCPEAvnwV/zlaZBgOmUiLtNrFOnnS0LxrLFt+ZAUz5skFMyHVtHkzZ52dPFsa2xe0aIOUkAIaZUnyjMml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gLEDSyTAfZUYuNtorwSkS1X1OKIYet2GDl0iXfxq50xDJgQNIgAAOw=="},LTzH:function(t,e,n){"use strict";var r=n("muKy"),o=n.n(r),i=n("rVsN"),a=n.n(i),u=n("84iU"),c=n.n(u),s=n("IcnI"),l=n("VqY/");c.a.defaults.timeout=5e3;var d=void 0;c.a.interceptors.request.use(function(t){return t.withCredentials=!0,s.a.state.token&&(t.headers.Authorization="token "+s.a.state.token),t.data&&"false"===t.data.loading||t.params&&"false"===t.params.loading||(d=new Date,s.a.dispatch("FETCH_LOADING",!0)),t},function(t){return a.a.reject(t)}),c.a.interceptors.response.use(function(t){var e=(new Date).getTime()-d.getTime();return e<500&&(e=500),setTimeout(function(){s.a.dispatch("FETCH_LOADING",!1)},e),t},function(t){s.a.dispatch("FETCH_LOADING",!1),d=new Date;var e="";if(t.response){switch(t.response.status){case 401:case 403:window.location.href=l.a.API_SSO_URL}if(t.response.data&&t.response.data.code&&t.response.data.message)return e=t.response.data&&t.response.data.code&&t.response.data.message,a.a.reject(t.response.data);e=t.response.status+" "+t.response.statusText||"系统异常,请稍后再试"}else e="服务超时,请稍后重试";-1===window.location.href.indexOf("preview")&&o()({type:"error",message:e,showClose:!0,center:!0,customClass:"common_tip"});var n={code:0,message:e};return a.a.reject(n)}),e.a=c.a},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};n.d(r,"dateFormat_",function(){return b}),n.d(r,"dateFormat",function(){return U}),n.d(r,"toThousands",function(){return Q}),n.d(r,"handleType",function(){return N});n("457U");var o=n("yl2x"),i=n.n(o),a=n("ZLEe"),u=n.n(a),c=n("yf3K"),s={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{init:!1,load:!1,isRouterAlive:!0}},watch:{$route:function(t,e){t.path.indexOf("preview")<0&&(this.load=!0)}},components:{AppHeader:n("tz1W").default},methods:{reload:function(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})}}},l=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[this.load?e("app-header",{}):this._e(),this._v(" "),this.isRouterAlive?e("router-view",{staticClass:"view"}):this._e()],1)};l._withStripped=!0;var d={render:l,staticRenderFns:[]},p=d;var h=!1;var f=n("C7Lr")(s,p,!1,function(t){h||n("bQtF")},null,null);f.options.__file="src/App.vue";var m=f.exports,g=n("ddSS"),A=n("VqY/"),v=n("IcnI"),L=n("Klf7"),C=function(){var t=null,e=L.get("MPToken"),n=L.get("MPUser");return e&&(t={token:e,userName:n}),t},w=function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("/BRL"))}.bind(null,n)).catch(n.oe)},S=function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("rK+J"))}.bind(null,n)).catch(n.oe)},y=function(t){return Promise.all([n.e(0),n.e(2)]).then(function(){return t(n("9QJ4"))}.bind(null,n)).catch(n.oe)};c.default.use(g.a),g.a.prototype.goBack=function(){this.isBack=!0,window.history.go(-1)};var I=new g.a({routes:[{path:"/",redirect:"/ad/list"},{path:"/ad/list",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("bjM0"))}.bind(null,n)).catch(n.oe)},props:function(t){return{groupId:t.query.groupId,resourceId:t.query.resourceId}},meta:{loginRequired:!0,title:"广告列表-CSDN广告投放管理平台"}},{path:"/ad/detail",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("TCU2"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},children:[{path:"",redirect:"/ad/detail/basic"},{path:"basic",component:w,props:function(t){return{id:t.query.id}},meta:{title:"基本信息-CSDN广告投放管理平台"}},{path:"resource",component:w,props:function(t){return{id:t.query.id}},meta:{title:"广告资源-CSDN广告投放管理平台"}},{path:"creative",component:S,props:function(t){return{id:t.query.id}},meta:{title:"创意素材-CSDN广告投放管理平台"}},{path:"preview",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("ZJaL"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},meta:{title:"创意素材-预览-CSDN"}},{path:"weight",component:S,props:function(t){return{id:t.query.id}},meta:{title:"权重设置-CSDN广告投放管理平台"}},{path:"other",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("Q+W3"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},meta:{title:"其它定向-CSDN广告投放管理平台"}},{path:"target",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("AOM2"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},meta:{title:"定向投放-CSDN广告投放管理平台"}},{path:"time",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("KB5E"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},meta:{title:"时间设置-CSDN广告投放管理平台"}},{path:"strategy",component:function(t){return Promise.all([n.e(0),n.e(1)]).then(function(){return t(n("7Jlo"))}.bind(null,n)).catch(n.oe)},props:function(t){return{id:t.query.id}},meta:{title:"管理策略-CSDN广告投放管理平台"}}]},{path:"/resource",component:function(t){return Promise.all([n.e(0),n.e(4)]).then(function(){return t(n("sF21"))}.bind(null,n)).catch(n.oe)},children:[{path:"list",component:function(t){return Promise.all([n.e(0),n.e(4)]).then(function(){return t(n("SpTs"))}.bind(null,n)).catch(n.oe)},meta:{loginRequired:!0,title:"资源位列表-CSDN广告投放管理平台"}},{path:"detail",component:function(t){return Promise.all([n.e(0),n.e(4)]).then(function(){return t(n("9TH6"))}.bind(null,n)).catch(n.oe)},meta:{loginRequired:!0,title:"资源位详情页-CSDN广告投放管理平台"}}]},{path:"/demo",component:function(t){return n.e(7).then(function(){return t(n("7mBr"))}.bind(null,n)).catch(n.oe)},meta:{title:"DEMO"}},{path:"/report",component:function(t){return Promise.all([n.e(0),n.e(6)]).then(function(){return t(n("6Bz5"))}.bind(null,n)).catch(n.oe)},children:[{path:"keyword/list",component:function(t){return Promise.all([n.e(0),n.e(6)]).then(function(){return t(n("tG9v"))}.bind(null,n)).catch(n.oe)},meta:{title:"关键词列表"}}]},{path:"/schedule",component:function(t){return Promise.all([n.e(0),n.e(2)]).then(function(){return t(n("Z21u"))}.bind(null,n)).catch(n.oe)},children:[{path:"list",component:function(t){return Promise.all([n.e(0),n.e(2)]).then(function(){return t(n("fugb"))}.bind(null,n)).catch(n.oe)},meta:{title:"排期概览"}},{path:"resource",component:function(t){return Promise.all([n.e(0),n.e(2)]).then(function(){return t(n("1D2i"))}.bind(null,n)).catch(n.oe)},meta:{title:"资源概览"}},{path:"new",component:y,meta:{title:"刊例管理"}},{path:"detail",component:y,meta:{title:"编辑刊例"}}]},{path:"/account",component:function(t){return Promise.all([n.e(0),n.e(3)]).then(function(){return t(n("D/e5"))}.bind(null,n)).catch(n.oe)},children:[{path:"adjournal/list",component:function(t){return Promise.all([n.e(0),n.e(3)]).then(function(){return t(n("dhfh"))}.bind(null,n)).catch(n.oe)},meta:{title:"广告"}},{path:"user/list",component:function(t){return Promise.all([n.e(0),n.e(3)]).then(function(){return t(n("ffVC"))}.bind(null,n)).catch(n.oe)},meta:{title:"用户管理"}},{path:"create",component:function(t){return Promise.all([n.e(0),n.e(3)]).then(function(){return t(n("4DXb"))}.bind(null,n)).catch(n.oe)},meta:{title:"新建账户"}}]},{path:"/preview/:id",components:{default:function(t){return Promise.all([n.e(0),n.e(5)]).then(function(){return t(n("vT+3"))}.bind(null,n)).catch(n.oe)},appHeader:function(t){return Promise.all([n.e(0),n.e(5)]).then(function(){return t(n("tz1W"))}.bind(null,n)).catch(n.oe)}},props:{default:!0,appHeader:!1}}]}),P=C();P&&v.a.commit("userLogin",P),I.beforeEach(function(t,e,n){if(t.path.indexOf("login")<0&&t.path.indexOf("preview")<0){var r=C();r&&r.userName?v.a.dispatch("userLogin",r):v.a.dispatch("userLogin")}(t.path.indexOf("login")>0&&"0"===t.query.result&&alert("您还没有账户,请先开通账户"),t.meta.title&&(document.title=t.meta.title),t.matched.some(function(t){return t.meta.loginRequired}))?v.a.state.app.user?n():(window.location.href=A.a.API_SSO_URL,n(!1)):n()}),I.afterEach(function(t,e,n){window.scrollTo(0,0)});var D=I,R=(n("nO5U"),n("5FmO"),n("LTzH")),b=(n("+/MR"),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";if(!t)return"";var n=t instanceof Date?t:new Date(t.replace(/-/g,"/")),r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return e}),U=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";if(!t)return"";var n=t instanceof Date?t:new Date(t.replace(/-/g,"/")),r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return e},Q=function(t){if(t)return(t=isNaN(parseFloat(t))?t:parseFloat(t).toFixed(2)).toString().replace(/\d+/,function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,function(t){return t+","})})},N=function(t,e){var n={status:{0:"审核",1:"通过",2:"拒绝",3:"撤销"},payType:{0:"支付宝",1:"微信",2:"银行汇款",3:"账户中心转账",4:"广告赠款",5:"其他"},rechargeType:{1:"现金账户",2:"虚拟账户"},invoiceStatus:{0:"发票未开",1:"申请开票",2:"已开发票",3:"无法开票"},applyInvoiceStatus:{0:"审核中",1:"已通过",2:"已拒绝",3:"已撤销"},product:{0:"全部",1:"论坛",2:"下载",3:"首页",4:"ITEYE",5:"问答",6:"博客",7:"类目",8:"其他"},platform:{0:"全部",1:"H5",2:"APP",3:"PC"},adShape:{0:"不限",1:"视窗",2:"横幅",3:"信息流",4:"文字链",5:"弹窗",6:"互动",7:"竖幅",8:"其他"},scheduleStatus:{0:"预定",1:"生效",2:"失效",3:"过期",4:"结束"},buyStatus:{1:"购买",2:"配送"}};if(n[e])return n[e][t]};u()(r).forEach(function(t){c.default.filter(t,r[t])});var O=n("Klf7");c.default.use(O),c.default.config.productionTip=!1,c.default.use(i.a),c.default.prototype.CFG=A.a,c.default.prototype.http=R.a,c.default.prototype.filter=r,new c.default({el:"#app",store:v.a,router:D,http:R.a,components:{App:m},template:"",created:function(){}})},TiCC:function(t,e){},"VqY/":function(t,e,n){"use strict";e.a={NODE_ENV:"production",ENV:"prod",API_URL:"http://mp-admin.csdn.net/kp/api/",API_PREVIEW_URL:"https://kunpeng.csdn.net/",STATIC_URL:"http://mp-admin.csdn.net/ad/",STATIC_PREVIEW_URL:"https://kunpeng-sc.csdnimg.cn/",ROOT_URL:"http://mp-admin.csdn.net/ad/",UPLOAD_URL:"http://kunpeng-manager.csdn.net/api/",API_SSO_URL:"https://mp-sso.csdn.net/login.html?rolePath:cn=manage_ad_admin,ou=csdn_manage,ou=csdn_production,ou=csdn_permission"}},bQtF:function(t,e){},nO5U:function(t,e){},tz1W:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("4YfN"),o=n.n(r),i=n("bSIt"),a=n("CndG"),u={inject:["reload"],name:"app-header",data:function(){return{showQuit:!1}},mounted:function(){this.showQuit=!0},methods:{showList:function(t){this.showQuit=!0},hiddenList:function(t){this.showQuit=!1},handleCommand:function(t){t&&("logout"===t?(this.$cookie.delete("UserName"),window.location.href=this.CFG.API_SSO_URL):this.$router.push(t))},visibleChange:function(t){t&&this.accountList.length<1&&(this.$store.dispatch("getRelatedAccount"),this.$store.dispatch("getCurrentAccount"))},jumpAccount:function(t){var e=this;a.a.switchAccount(t).then(function(t){200===t.status?(e.$store.dispatch("getCurrentAccount"),e.reload()):e.$message({type:"error",message:"切换账户失败",onClose:function(){}})})}},computed:o()({},Object(i.b)(["user","accountList","currentAccount"]))},c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-header",[r("el-row",[r("el-col",{attrs:{span:4}},[r("div",{staticClass:"logo"},[r("router-link",{attrs:{to:"/"}},[t._v("CSDN广告投放管理平台")])],1)]),t._v(" "),r("el-col",{staticClass:"header-nav-menu",attrs:{span:14}},[r("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":this.$route.path,mode:"horizontal","background-color":"#222","active-text-color":"#CA0C16",router:!0,"text-color":"#aaa"}},[r("el-menu-item",{class:{"is-active":t.$route.path.indexOf("ad/")>0},attrs:{index:"/ad/list"}},[t._v("\n 广告管理\n ")]),t._v(" "),r("el-menu-item",{class:{"is-active":t.$route.path.indexOf("resource/")>0},attrs:{index:"/resource/list"}},[t._v("\n 资源管理\n ")]),t._v(" "),r("el-menu-item",{class:{"is-active":t.$route.path.indexOf("schedule/")>0},attrs:{index:"/schedule/list"}},[t._v("\n 排期管理\n ")]),t._v(" "),r("el-menu-item",{class:{"is-active":t.$route.path.indexOf("report/")>0},attrs:{index:"/report/keyword/list"}},[t._v("\n 数据报告\n ")]),t._v(" "),r("el-menu-item",{class:{"is-active":t.$route.path.indexOf("account/")>0},attrs:{index:"/account/adjournal/list"}},[t._v("\n 账户管理\n ")])],1)],1),t._v(" "),r("el-col",{attrs:{span:6}},[r("ul",{staticClass:"header-right"},[r("el-dropdown",{on:{command:t.handleCommand,"visible-change":t.visibleChange}},[r("span",{staticClass:"el-dropdown-link account-name"},[r("li",[r("img",{attrs:{src:n("L6Yq")}}),t._v(t._s(t.user.userName)+"\n "),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),t._v(" "),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.accountList.length>0?r("el-dropdown-item",{staticClass:"change-account"},[t._v("切换账户\n "),t.accountList||t.accountList.length?r("div",{staticClass:"sub-account"},t._l(t.accountList,function(e,n){return r("li",{key:n},[[r("a",{class:t.currentAccount==e.accountName?"activeAccount":"",attrs:{title:e.accountName},on:{click:function(n){return t.jumpAccount(e.id)}}},[t._v(t._s(e.accountName))])]],2)}),0):t._e()]):t._e(),t._v(" "),r("el-dropdown-item",{attrs:{command:"logout"}},[t._v("退      出")])],1)],1)],1)])],1)],1)};c._withStripped=!0;var s={render:c,staticRenderFns:[]},l=s;var d=!1;var p=n("C7Lr")(u,l,!1,function(t){d||(n("91sB"),n("TiCC"))},"data-v-43905965",null);p.options.__file="src/AppHeader.vue";e.default=p.exports}},["NHnr"]);