(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c560f4be"],{"0112":function(t,e,r){"use strict";var s=r("bef3");r.n(s).a},"37c8":function(t,e,r){"use strict";var s=r("9903");r.n(s).a},"4e82":function(t,e,r){"use strict";var s=r("23e7"),a=r("e330"),i=r("59ed"),n=r("7b0b"),o=r("07fa"),c=r("577e"),u=r("d039"),l=r("addb"),d=r("a640"),h=r("04d1"),f=r("d998"),g=r("2d00"),m=r("512c"),v=[],p=a(v.sort),y=a(v.push),b=(r=u((function(){v.sort(void 0)})),a=u((function(){v.sort(null)})),d=d("sort"),!u((function(){if(g)return g<70;if(!(h&&3c(e)?1:-1})),r=a.length,d=0;d{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"right",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:"70%",center:["50%","60%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:{tooltip:{trigger:"axis"},toolbox:{},legend:{data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray};this.myChart.setOption(t,!0)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},r=r("2877"),r=Object(r.a)(s,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",[t("div",{staticStyle:{height:"300px"},attrs:{id:this.echarts}})])}),[],!1,null,"00217dc6",null);e.a=r.exports},9903:function(t,e,r){},bbe4:function(t,e,r){"use strict";var s=r("d1b8");r.n(s).a},bc23:function(t,e,r){"use strict";var s=r("d185");r.n(s).a},bef3:function(t,e,r){},c49a:function(t,e,r){"use strict";var s=r("5a5b");r.n(s).a},d185:function(t,e,r){},d1b8:function(t,e,r){},e217:function(t,e,r){"use strict";var s=r("55e9");r.n(s).a},f75a:function(t,e,r){"use strict";r.r(e);var s=r("c964"),a=(r("96cf"),r("313e")),i=r.n(a),n=r("6b6c"),o=(a={data:function(){return{infoList:[],grid:{xl:6,lg:12,md:12,sm:12,xs:24},excessStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},avatarList:[]}},methods:{getStatistics:function(){var t=this;Object(n.a)({url:"home/header",method:"get"}).then(function(){var e=Object(s.a)(regeneratorRuntime.mark((function e(r){var s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=r.data,t.infoList=s.info;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}},mounted:function(){this.getStatistics()}},r("c49a"),r("2877")),c=(a=Object(o.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Row",{attrs:{gutter:24}},t._l(t.infoList,(function(e,s){return r("Col",t._b({key:s,staticClass:"ivu-mb"},"Col",t.grid,!1),[r("Card",{attrs:{bordered:!1,"dis-hover":"",padding:12}},[r("p",{attrs:{slot:"title"},slot:"title"},[r("span",{domProps:{textContent:t._s(e.title)}})]),r("Tag",{attrs:{slot:"extra",color:"green"},slot:"extra"},[t._v(t._s(e.date))]),r("div",[r("div",{staticClass:"number"},[t._v(t._s(e.today))]),r("div",{staticClass:"ivu-pt-8",staticStyle:{height:"42px"}},[r("span",[t._v("昨日 "+t._s(e.yesterday))]),r("span",{staticClass:"ivu-mr"},[t._v("\n 日环比 "+t._s(Number(e.today_ratio))+"%\n "),r("Icon",{staticClass:"iconColor",class:0<=Number(e.today_ratio)?" ":"on",attrs:{type:0<=Number(e.today_ratio)?"md-arrow-dropup":"md-arrow-dropdown"}})],1)]),r("Divider",{staticStyle:{margin:"8px 0"}}),r("div",[r("Row",[r("Col",{attrs:{span:"12"},domProps:{textContent:t._s(e.total_name)}}),r("Col",{staticClass:"ivu-text-right",attrs:{span:"12"}},[t._v(t._s(e.total))])],1)],1)],1)],1)],1)})),1)}),[],!1,null,null,null).exports,{data:function(){return{grid:{xl:3,lg:6,md:6,sm:8,xs:8}}}}),u=(c=(r("5b56"),Object(o.a)(c,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("Row",{staticClass:"dashboard-console-grid",attrs:{gutter:24}},[e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["admin-user-user-index"],expression:"['admin-user-user-index']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/user/list"}}},[e("Icon",{attrs:{type:"md-people",color:"#69c0ff"}}),e("p",[t._v("用户管理")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["setting-system-config"],expression:"['setting-system-config']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/system_config"}}},[e("Icon",{attrs:{type:"md-settings",color:"#95de64"}}),e("p",[t._v("系统设置")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["admin-store-storeProuduct-index"],expression:"['admin-store-storeProuduct-index']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/product/product_list"}}},[e("Icon",{attrs:{type:"md-cart",color:"#ff9c6e"}}),e("p",[t._v("商品")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["admin-order-storeOrder-index"],expression:"['admin-order-storeOrder-index']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/order/list"}}},[e("Icon",{attrs:{type:"md-clipboard",color:"#b37feb"}}),e("p",[t._v("订单管理")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["setting-sms"],expression:"['setting-sms']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/sms/sms_config/index"}}},[e("Icon",{attrs:{type:"md-mail",color:"#ffd666"}}),e("p",[t._v("短信配置")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["cms-article-index"],expression:"['cms-article-index']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/cms/article/index"}}},[e("Icon",{attrs:{type:"md-card",color:"#5cdbd3"}}),e("p",[t._v("文章管理")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["agent-agent-manage"],expression:"['agent-agent-manage']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/agent/agent_manage/index"}}},[e("Icon",{attrs:{type:"md-pricetags",color:"#ff85c0"}}),e("p",[t._v("分销管理")])],1)],1)],1),e("Col",t._b({directives:[{name:"auth",rawName:"v-auth",value:["marketing-store_coupon-index"],expression:"['marketing-store_coupon-index']"}],staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/marketing/store_coupon_issue/index"}}},[e("Icon",{attrs:{type:"md-cash",color:"#ffc069"}}),e("p",[t._v("优惠券")])],1)],1)],1)],1)}),[],!1,null,null,null).exports),r("9901")),l={components:{echartsFrom:u.a},data:function(){return{infoList:null,visitDate:"thirtyday",series:[],yAxisData:[]}},methods:{getStatistics:function(){var t=this,e={cycle:this.visitDate};e=e,Object(n.a)({url:"home/order",method:"get",params:e}).then(function(){var e=Object(s.a)(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=r.data||{},t.series=t.infoList.series||[],t.yAxisData=[{type:"value",name:"金额",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},{type:"value",name:"数量",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}];case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleChangeVisitType:function(){this.getStatistics()},handleResize:function(){this.infoList&&this.$refs.visitChart.handleResize()}},created:function(){this.getStatistics()}},d=(l=(r("0112"),Object(o.a)(l,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{on:{resize:t.handleResize}},[e("Row",{attrs:{gutter:24}},[e("Col",{staticClass:"ivu-mb",attrs:{san:"24"}},[e("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[e("Col",{attrs:{span:"8"}},[e("Avatar",{staticStyle:{color:"#1890ff","background-color":"#e6f7ff"},attrs:{icon:"ios-podium",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("订单")])],1),e("Col",{staticClass:"ivu-text-right",attrs:{span:"16"}},[e("RadioGroup",{staticClass:"ivu-mr-8",attrs:{type:"button"},on:{"on-change":t.handleChangeVisitType},model:{value:t.visitDate,callback:function(e){t.visitDate=e},expression:"visitDate"}},[e("Radio",{attrs:{label:"thirtyday"}},[t._v("30天")]),e("Radio",{attrs:{label:"week"}},[t._v("周")]),e("Radio",{attrs:{label:"month"}},[t._v("月")]),e("Radio",{attrs:{label:"year"}},[t._v("年")])],1)],1)],1)],1),e("h4",[t._v("订单量趋势")]),t.infoList?e("echarts-from",{ref:"visitChart",attrs:{series:t.series,infoList:t.infoList,yAxisData:t.yAxisData}}):t._e()],1)],1)],1)],1)}),[],!1,null,"757f355c",null).exports),u={name:"user-chart",components:{echartsFrom:u.a},data:function(){return{line:"line",circle:"circle",infoList:{},series:[],xData:[],y1Data:[],y2Data:[],lists:[],bing_data:[],bing_xdata:[]}},methods:{getStatistics:function(){var t=this;Object(n.a)({url:"home/user",method:"get"}).then(function(){var e=Object(s.a)(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=r.data,t.series=[{data:r.data.series,name:"人数(人)",type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}],t.bing_data=r.bing_data,t.bing_xdata=r.bing_xdata;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getRank:function(){var t=this;Object(n.a)({url:"home/rank",method:"get"}).then(function(){var e=Object(s.a)(regeneratorRuntime.mark((function e(r){var s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=r.data,t.lists=s.list;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleResize:function(){this.infoList&&0!==this.series.length&&this.$refs.userChart.handleResize(),this.infoList&&this.$refs.visitChart.handleResize()}},mounted:function(){this.getStatistics(),this.getRank()},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)}},u=(r("bc23"),Object(o.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{on:{resize:t.handleResize}},[e("Row",{attrs:{gutter:24}},[e("Col",{staticClass:"ivu-mb dashboard-console-visit",attrs:{xl:16,lg:12,md:24,sm:24,xs:24}},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Avatar",{staticStyle:{color:"#1890ff","background-color":"#e6f7ff"},attrs:{icon:"ios-pulse",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("用户")])],1),t.infoList&&0!==t.series.length?e("echarts-from",{ref:"userChart",attrs:{echartsTitle:t.line,infoList:t.infoList,series:t.series}}):t._e()],1)],1),e("Col",{attrs:{xl:8,lg:12,md:24,sm:24,xs:24}},[e("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Avatar",{staticStyle:{color:"#1890ff","background-color":"#e6f7ff"},attrs:{icon:"ios-analytics",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("购买用户统计")])],1),e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:t.circle}})],1)],1)],1)],1)}),[],!1,null,"37277daf",null).exports),r("d0ff")),h=(r("4e82"),r("fb6a"),{data:function(){return{current:1,size:5,loading:!1,sortType:"normal",sortKey:"",column:[{title:"排名",key:"index",width:80},{title:"搜索关键词",key:"keyword",slot:"keyword",minWidth:120},{title:"用户数",key:"count",sortable:"custom",minWidth:100},{title:"周涨幅",key:"range",slot:"range",width:100,align:"right",sortable:"custom"}],data:[]}},computed:{limitData:function(){var t=this,e=Object(d.a)(this.data);return"asc"===this.sortType&&(e=e.sort((function(e,r){return e[t.sortKey]>r[t.sortKey]?1:-1}))),"desc"===this.sortType?e.sort((function(e,r){return e[t.sortKey]