酷炫数据营销平台

10.6a6be405b976a44aa81e.js 27KB

1
  1. webpackJsonp([10],{"/T9A":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAh1BMVEUAAABM3YtM3IpL3ItL3Ytj/61L3YtL3YtL3YpM3oxL3YtL3YtM3Yxj8ZVL3YtL3YtL3YtL3YxL3YtL3YtM3oxO4o5Q445L4ZZL3YtL3YtM3YtN3YxL3YxL3YtM3YtM3YxM4ItM3Y1M3YtP4I5M3YpL3ItM3IxO3o1M341N34xM34tb7ZJL3IrxPCNMAAAALHRSTlMA7sDVtAT76fFI2rxiCdDLpJ6Zk2ofFxHhxbaPiYB3cDkzLSjCsHxcV1BADpvTdiQAAAD2SURBVEjH7dXJbsMgFIXh6ziA8ZDEU5x57Nzz/s9XpcWqAxLB7CLx7z/dswIKhXxbbtcisiWyfUFmMsLj0ot5L4JLsXGzgltHHcaOcKFD7ghnA8Oa6QfBsfjfyRQQPVzl1/Zz7QIvGW4p+PL9O6F+CJcVxwAmrRo/s0N2TIAhfCXVwQrPMXAP9z2UNnjm0GHZw9wGSxgwZQoubHBqQhz+3BfGQr4rbkOTMVCVTDYCGAtVAT4TLH3hiXtCksITUldzP0h03YyHKhl7QmJNBCReL3m3S99o7vt3bB1hrsNOOLk5I73TysW1ZFY0VTaxldXvjEKhu34AUIgQe52JEIYAAAAASUVORK5CYII="},"1Fpb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAArlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8tivQqAAAAOXRSTlMApfkdBxevmem6nicE9fHb1sKqhEM1+9/LlIiAfF9aMSEL7eTTvlRND8/Gs49sZUdAE3VoYncr6Dk60GDhAAACYElEQVRIx+2U2ZKiMBSGwybQLbKIIiCbCrT7bs95/xcbIQHUShisqeqr/m9MUucz4Sw/+tXPSNx7VrqWw+Ob3FkBLG2TvIF9pdBIv3XnFvAoR+oK9uBZK7EbF1TAxJtyWrFwy3eEU/8itHB9HWP8ttjFy2IpoETWylOLjeaAlZG6FB/sCzoQKX9YoIwD1Gpv3zeLJdSase4kKd2jSjU02QbW/afHAGc4qqkBR7i1WHTGfRHTQdIxzcGUJAs/UQUIWm/8ev3oFd7tAHw6aOC4JnkmPrDw7gCwoYMfOE6u9jGPD4z6xiEdzHDcOHptwFF1/5YOinMcNy8D+y5UMorsnPA/UHUmgfzGHgUTaDSTpyl+M139FFq1RyxJehs3RWxJEyY22LVb1WlAg/T09E83SEJu5cyNlcq5w9Mus0fxsY/elRTll6vvbVzZu2afncw18zjT4aERc6rsnsn54Yh0+BpoOtA4IJqvtxJCLhW8UBu8kXZFiKOBOQU0ARTTGdel7lvPjDaRzxGiSAe4n4u3gCszsn0kdS+8MSvyXU9+XBpBgPrVVH0nRWHyoarQCjIAqP5ULYcyR+K6qsLBcsoVDdQAqiV+I2+jI+6+DzQEYIJjGL+Y4kBAageQB/61MqNOoNbcKNegScBDGOkYpCZHbEBiw4u6RSOFBc4bf/+omiAkrtdTFbwSKOASIHtKTori15HmGGas7JLGThVJfHaRhUu3qkPpglwgIdHAhrapGX7l5UfEkl+NlQJQev2n6xSQ6dsJapX98DSV2I8goC6Khkti+Uf0roQLZzichH71P/oLnT3DJSF2TtMAAAAASUVORK5CYII="},"1bKN":function(t,e){},"63Lr":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAApVBMVEUAAAD5hgH5hgL/niv5hgH4hgH5hgH5hQH7hwP7iQX5iAb/lhr/02X5hgH5hgH5hgH5hgL6hgP7hgT/igj/ihD5hgH4hgL5hgL5hgL6hgP/iwz5hgH4hgH5hgH5hQL4hgL5hwL5hQH5hgH4hgH5hgH6hgL6hgL5hgP5iAP6iAX/iQf5hgP/jAn/igr5hQH5hgL5hgL6hgL5hwL5hgb4hgH5hgL4hQFix6vPAAAANnRSTlMA+qQFseq590YyJgkC29XRgV5AHg/vl5GFYxXz5eCfm3zMx8K+imxZTTYhVBsYrah1Z3crxKovRY6EAAACXklEQVRIx+2V2bKiMBCGm1UQQUAPCIoLsrlv5+T9H22ABKJWwmBN1Vyd/8Z0qj+S7nS38Kv/I0NLfxLZc8LPsNFNQVgD3/iAmyaIynz058boWVHv68roVXHP2zoNsEnX4rxa+PU98rUdHDs4ycSYkFXWflwtJ2B4g3r3POGCBcI6kHepSPtoIiJlxwM97KA2tlsaVkm3JO9M4qPRjTbmzPkpf2QO+IW9aBpEwslSadzKxZ4NYq853ViTGsJXVBFyOk+cvgcdYytAyGaDFvZzodEWb1zaXPlscIX9Vo29F/CGBQA4yBkbPCAs/b0Ad835GadyFthvsastHzWyquxc8ReYyoijkGo7Z4OovlbrpPrAiNfFCeqUBjyFZhe3Br7CDRebB9Al6TpnQWZyDf86PnIxjhZWrIre7BocNH0fjuBTnfQiuNsz3/PS+2HYh5AOM3EbCYiK21WavBVtZzcF0gksuSwOES3k7ATgM0FWXpeIanCHkcgCCwa4RUjZRvSpR5dXZhCvbjowZNZNYTwcsR6GGUjnFjLT/MF9EaXt/H09CByQ5CZqo3qYwlaVIXtsSPCUUaEAiaT2DO4FB8ECywsC0RkH5cIUD6ElzBDiguUZb0NxPgG1ByhQcNVMkF7ggAV+E9DNdROD/ORQUJjAuC1RXeGBCzrfl00R5OQLsqrg1YT9h5OTJa6ZZDR8b2kR2LWqBAYdp8pJep0ilsceVW49BUXnBJKFBxptECFOiynwZDcFVsczAxj6UVUH37ZrQKe0p6upuKaN46TXuNHtMWmHED7VMRCtSAzhV/+iP9UGuYLpQlijAAAAAElFTkSuQmCC"},Dajf:function(t,e){},"I/zt":function(t,e){},IkrL:function(t,e){},MIDW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.loading,expression:"!loading"}],staticClass:"liveGeneralEstimate",style:{height:t.hasAuno?"auto":"200px"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[t._m(0),t._v(" "),!t.hasAuno&&t.loading?a("div",[t.dataFlag?a("ul",{staticClass:"generalEstimateCon clear"},[a("li",[a("span",[t._v(t._s(t.commodityOverviewData.live_stream_count||0==t.commodityOverviewData.live_stream_count?t.commodityOverviewData.live_stream_count:"-"))]),t._v(" "),a("p",[t._v("直播场次")])]),t._v(" "),a("li",[a("span",[t._v(t._s(t.commodityOverviewData.commodity_count||0==t.commodityOverviewData.commodity_count?t.commodityOverviewData.commodity_count:"-"))]),t._v(" "),a("p",[t._v("商品数量")]),t._v(" "),a("div",{staticClass:"otherInfo"},[t._v("\n 去重后商品数量\n "+t._s(t.commodityOverviewData.goods_cardinality_count?t.commodityOverviewData.goods_cardinality_count:"-")+"\n ")])]),t._v(" "),a("li",[a("span",[t._v(t._s(t.commodityOverviewData.sell_count_sum||0==t.commodityOverviewData.sell_count_sum?t.commodityOverviewData.sell_count_sum:"-"))]),t._v(" "),a("p",[t._v("商品销量")])]),t._v(" "),a("li",[a("span",[t._v(t._s(t.commodityOverviewData.sell_money_sum||0==t.commodityOverviewData.sell_money_sum?t.commodityOverviewData.sell_money_sum:"-"))]),t._v(" "),a("p",[t._v("商品销售额")])])]):a("div",{staticClass:"noHaveData"},[t._v("暂无数据")])]):t._e(),t._v(" "),t.hasAuno&&t.loading?a("nopermission"):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"top clear"},[e("div",{staticClass:"platform_common_title"},[e("span",[this._v("直播总概")])])])}]};var o=a("C7Lr")({props:["times_arr"],data:function(){return{hasAuno:!1,loading:!0,dataFlag:!0,commodityOverviewData:{}}},components:{},created:function(){this.commodityOverview()},methods:{commodityOverview:function(){var t=this;if(this.hasAuno)return this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"});this.loading=!1,this.$axios({url:this.URL.BASEURL+this.URL.commodityOverview,method:"post",data:{starttime:this.times_arr[0],endtime:this.times_arr[1]}}).then(function(e){4003==(e=e.data).errno?t.hasAuno=!0:t.hasAuno=!1,t.loading=!0,e&&0==e.errno?(t.commodityOverviewData=e.rst,e.rst||(t.dataFlag=!1)):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!0})}},watch:{times_arr:function(){this.commodityOverview()}}},i,!1,function(t){a("I/zt")},"data-v-3fa1935e",null).exports,n=(a("63Lr"),a("1Fpb"),a("/T9A"),a("Rvvu"),a("Ovmy"),{props:["times_arr"],data:function(){return{hasAunoWord:!1,hasAuno:!1,commentKeyword:"",hotWordDetail:{},getInfoByHotWordFlag:!0,echarsFlag:!0}},components:{},mounted:function(){this.GetHotWordByGoods()},methods:{GetHotWordByGoods:function(){var t=this,e=this;this.echarsFlag=!0,this.$axios({url:this.URL.BASEURL+this.URL.GetHotWordByGoods,method:"post",data:{starttime:this.times_arr[0],endtime:this.times_arr[1]}}).then(function(a){a=a.data;if(t.echarsFlag=!1,4003==a.errno?t.hasAunoWord=!0:t.hasAunoWord=!1,a&&0==a.errno){var i=[];if(0==a.rst.length)return void(t.commentFlag=!1);a.rst.forEach(function(t,e){i.push({name:t.keyword,value:t.count})}),t.commentKeyword=a.rst[0].keyword,t.$nextTick(function(){e.worldCloudcharts(i),e.getInfoByHotWordFlag&&e.GetInfoByHotWord()})}else 4003!=a.errno&&t.$message({message:a.err,type:"warning"})}).catch(function(e){t.echarsFlag=!1})},worldCloudcharts:function(t){var e=this,a={tooltip:{show:!0},series:[{name:"",type:"wordCloud",sizeRange:[12,30],rotationRange:[0,0],autoSize:{enable:!0,minSize:10},gridSize:20,drawOutOfBound:!1,textStyle:{normal:{color:function(){return"rgb("+[Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(160*Math.random())].join(",")+")"}},emphasis:{shadowBlur:1,shadowColor:"#999"}},data:t}]},i=this.$echarts.init(document.getElementById("worldCloud"));i.setOption(a),i.on("click",function(t){e.commentKeyword=t.data.name,e.getInfoByHotWordFlag&&e.GetInfoByHotWord()})},GetInfoByHotWord:function(){var t=this;this.getInfoByHotWordFlag=!1,this.$axios({url:this.URL.BASEURL+this.URL.GetInfoByHotWord,method:"post",data:{keyword:this.commentKeyword,starttime:this.times_arr[0],endtime:this.times_arr[1]}}).then(function(e){4003==(e=e.data).errno?t.hasAuno=!0:t.hasAuno=!1,t.getInfoByHotWordFlag=!0,e&&0==e.errno?(t.hotWordDetail=e.rst,t.hotWordDetail.zuidijia=t.hotWordDetail.zuidijia.toFixed(2),t.hotWordDetail.zuigaojia=t.hotWordDetail.zuigaojia.toFixed(2),t.hotWordDetail.avg=t.hotWordDetail.avg.toFixed(2)):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.getInfoByHotWordFlag=!0})}},watch:{times_arr:function(){this.GetHotWordByGoods()}}}),s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hotWord clear"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.echarsFlag,expression:"echarsFlag"}],staticClass:"wordNephogram",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[t._m(0),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAunoWord,expression:"!hasAunoWord"}]},[a("div",{staticStyle:{width:"100%",height:"300px"},attrs:{id:"worldCloud"}})]),t._v(" "),t.hasAunoWord&&!t.echarsFlag?a("nopermission",{staticStyle:{"margin-top":"30px"}}):t._e()],1),t._v(" "),t.hasAunoWord||t.hasAuno?t._e():a("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.getInfoByHotWordFlag,expression:"!getInfoByHotWordFlag"}],staticClass:"hotWordDetail",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("h3",{staticClass:"hotWordName"},[t._v(t._s(t.commentKeyword))]),t._v(" "),a("div",[a("ul",{staticClass:"clear"},[a("li",[a("span",[t._v(t._s(t.hotWordDetail.count||0==t.hotWordDetail.count?t.$NumberHandle(t.hotWordDetail.count):"-"))]),t._v(" "),a("p",[t._v("商品数")])]),t._v(" "),a("li",[a("span",[t._v(t._s(t.hotWordDetail.avg||0==t.hotWordDetail.avg?"¥"+t.hotWordDetail.avg:"-"))]),t._v(" "),a("p",[t._v("平均价格")])]),a("li",[a("span",[t._v(t._s(t.hotWordDetail.usercount||0==t.hotWordDetail.usercount?t.$NumberHandle(t.hotWordDetail.usercount):"-"))]),t._v(" "),a("p",[t._v("在售网红")])]),a("li",[a("span",[t._v(t._s(t.hotWordDetail.sell_count||0==t.hotWordDetail.sell_count?t.$NumberHandle(t.hotWordDetail.sell_count):"-"))]),t._v(" "),a("p",[t._v("商品销量")])])])])]),t._v(" "),(t.hasAunoWord||t.hasAuno)&&t.getInfoByHotWordFlag?a("nopermission",{staticStyle:{"margin-top":"90px"}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"clear"},[e("div",{staticClass:"platform_common_title"},[e("span",[this._v("商品热词")])])])}]};var r=a("C7Lr")(n,s,!1,function(t){a("1bKN")},"data-v-62ce9275",null).exports,l={props:["times_arr"],data:function(){return{hasAunoSource:!1,type:1,getInfoByHotWordFlag:!1,dataFlag:!1}},components:{},mounted:function(){this.RankingClassification()},methods:{RankingClassification:function(){var t=this;if(this.hasAunoSource)return this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"});this.getInfoByHotWordFlag=!1,this.$axios({url:this.URL.BASEURL+this.URL.cateAnalysis,method:"post",data:{page:1,type:this.type,start_time:this.times_arr[0],end_time:this.times_arr[1]}}).then(function(e){4003==(e=e.data).errno?t.hasAunoSource=!0:t.hasAunoSource=!1,t.getInfoByHotWordFlag=!0,e&&0==e.errno?t.$nextTick(function(){0==e.rst.length?t.dataFlag=!0:t.dataFlag=!1,t.drawTimeRange(e.rst)}):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.getInfoByHotWordFlag=!0})},drawTimeRange:function(t){var e=this,a=[],i=[];t.forEach(function(t,e){a.push(t.name),i.push(t.count)});var o={color:["#57C2FF"],tooltip:{trigger:"axis",formatter:function(t){var a="";return t.forEach(function(t,i){a+=t.name+":"+e.$NumberHandle(t.value)+(3==e.type?"元":"个")+"<br/>"}),a}},grid:{left:"1%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:a,axisLine:{lineStyle:{color:"#ECEDF2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#999999",fontSize:12,rotate:30}}],yAxis:[{type:"value",axisLine:{lineStyle:{color:"#ECEDF2"}},max:0==i.length?1e5:"dataMax",min:function(t){return t.min<=0?"dataMin":0},axisTick:{show:!1},splitLine:{lineStyle:{color:"#DADADA",type:"dashed"}},nameTextStyle:{color:"#999999",fontSize:14,padding:[0,35,0,0]},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){var a=t;return e.$NumberHandle(a)}}}],series:[{type:"bar",barWidth:"15px",data:i,itemStyle:{color:"#4B76FB",barBorderRadius:[4,4,4,4],borderType:"dotted"}}]};this.$echarts.init(document.getElementById("timeDraw")).setOption(o)}},watch:{times_arr:function(){this.RankingClassification()}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.getInfoByHotWordFlag,expression:"!getInfoByHotWordFlag"}],staticClass:"goodClassification",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"top clear"},[i("div",{staticClass:"platform_common_title"},[i("span",[t._v("商品分类排行")]),t._v(" "),i("ul",{staticClass:"choice_div clear"},[i("li",{class:1==t.type?"active":"",on:{click:function(e){t.type=1,t.RankingClassification()}}},[t._v("按数量")]),t._v(" "),i("li",{class:2==t.type?"active":"",on:{click:function(e){t.type=2,t.RankingClassification()}}},[t._v("按销量")]),t._v(" "),i("li",{class:3==t.type?"active":"",on:{click:function(e){t.type=3,t.RankingClassification()}}},[t._v("按销售额")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAunoSource,expression:"!hasAunoSource"}]},[i("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"timeDraw"}})]),t._v(" "),t.dataFlag?i("div",{staticClass:"curve_no_data"},[i("img",{attrs:{src:a("vLvk"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])]):t._e(),t._v(" "),t.hasAunoSource&&t.getInfoByHotWordFlag?i("nopermission",{staticStyle:{"margin-top":"60px"}}):t._e()],1)},staticRenderFns:[]};var d=a("C7Lr")(l,c,!1,function(t){a("be8y")},"data-v-6bd87739",null).exports,h=a("a3Yh"),u=a.n(h),m={props:["times_arr"],name:"priceDistribution",data:function(){return{hasAuno:!1,sourceType:4,sourceData:[],type:4,priceData:[],loading:!1,AnalysisSourceFlag:!1,hasAunoSource:!1}},components:{},mounted:function(){this.PriceDistributionByPrice(),this.AnalysisSource()},methods:{AnalysisSource:function(){var t=this;if(this.hasAunoSource)return this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"});this.AnalysisSourceFlag=!1,this.$axios({url:this.URL.BASEURL+this.URL.AnalysisSource,method:"post",data:{start_time:this.times_arr[0],end_time:this.times_arr[1]}}).then(function(e){e=e.data;t.AnalysisSourceFlag=!0,4003==e.errno?t.hasAunoSource=!0:t.hasAunoSource=!1,e&&0==e.errno?(t.sourceData=e.rst,t.$nextTick(function(){t.goodsSource()})):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.AnalysisSourceFlag=!0})},PriceDistributionByPrice:function(){var t=this;if(this.hasAuno)return this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"});this.loading=!1,this.$axios({url:this.URL.BASEURL+this.URL.priceAnalysis,method:"post",data:{start_time:this.times_arr[0],end_time:this.times_arr[1]}}).then(function(e){e=e.data;t.loading=!0,4003==e.errno?t.hasAuno=!0:t.hasAuno=!1,e&&0==e.errno?(t.priceData=e.rst,t.$nextTick(function(){t.goodsCount()})):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!0})},goodsCount:function(){var t=this,e=this,a=[],i=[];this.priceData.forEach(function(e,o){2==t.type?i.push(e.sell_count):1==t.type?i.push(e.comm_count):3==t.type?i.push(e.sell_money):4==t.type&&i.push(e.goods_count),a.push(e.price_level)});var o={color:["#57C2FF"],tooltip:{trigger:"axis",formatter:function(t){var a="";return t.forEach(function(t,i){a+=t.name+"元:"+e.$NumberHandle(t.value)+"件<br/>"}),a}},grid:{left:"1%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:a,axisLine:{lineStyle:{color:"#ECEDF2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#999999",fontSize:12}}],yAxis:[{type:"value",axisLine:{lineStyle:{color:"#ECEDF2"}},max:0==i.length?1e5:"dataMax",min:function(t){return t.min<=0?"dataMin":0},axisTick:{show:!1},splitLine:{lineStyle:{color:"#DADADA",type:"dashed"}},nameTextStyle:{color:"#999999",fontSize:14,padding:[0,35,0,0]},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){var a=t;return e.$NumberHandle(a)}}}],series:[{type:"bar",barWidth:"15px",data:i,itemStyle:{color:"#4B76FB",barBorderRadius:[4,4,4,4],borderType:"dotted"}}]};this.$echarts.init(document.getElementById("goodsCount")).setOption(o)},goodsSource:function(){var t,e=this,a=[],i=[];this.sourceData.forEach(function(t,o){2==e.sourceType&&t.sell_count?i.push({value:t.sell_count,name:t.channel,total:t.sell_count_sum}):3==e.sourceType&&t.sell_money?i.push({value:t.sell_money,name:t.channel,total:t.sell_money_sum}):4==e.sourceType&&t.goods&&i.push({value:t.goods,name:t.channel,total:t.goods_count}),a.push(t.channel)});var o=this.$echarts.init(document.getElementById("goodsSource")),n={color:["#2662ff","#FF5A7B","#BCA4FC","#F9D778","#A4FCD6","#F6564A","#FF936B","#9CCCFF","#FFACB8","#E5F2FE","#B7EEA8","#FFB89D","#FCE500","#9F9F9F"],title:{padding:[5,40],text:"性别分布",textStyle:{fontSize:"13"},show:!1},grid:{bottom:"10%",left:"0%",right:"0%"},tooltip:{trigger:"item",formatter:function(t){return t.data.name+"<br/>"+t.percent+"%("+t.data.total+")"}},legend:{data:a,bottom:0,itemHeight:12,itemWidth:15},series:[(t={type:"pie",radius:["35%","55%"],avoidLabelOverlap:!1},u()(t,"avoidLabelOverlap",!0),u()(t,"minShowLabelAngle",2),u()(t,"minAngle",22),u()(t,"label",{normal:{formatter:"{a|{b}} {per|{d}%}",rich:{a:{color:"#666666",fontSize:11,lineHeight:20,align:"center"},hr:{width:"100%",height:0,alien:"center"},per:{color:"#000000",align:"center",fontSize:13}}}}),u()(t,"labelLine",{normal:{show:!0}}),u()(t,"data",i),t)]};o.setOption(n)}},watch:{times_arr:function(){this.AnalysisSource(),this.PriceDistributionByPrice()}}},g={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"clear",attrs:{id:"analysisSellChannel"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.AnalysisSourceFlag,expression:"!AnalysisSourceFlag"}],staticClass:"sell_channel",staticStyle:{width:"50%"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"top clear"},[i("div",{staticClass:"platform_common_title"},[i("span",[t._v("商品来源分布")]),t._v(" "),i("ul",{staticClass:"choice_div clear"},[i("li",{class:4==t.sourceType?"active":"",on:{click:function(e){t.sourceType=4,t.goodsSource()}}},[t._v("按数量")]),t._v(" "),i("li",{class:2==t.sourceType?"active":"",on:{click:function(e){t.sourceType=2,t.goodsSource()}}},[t._v("按销量")]),t._v(" "),i("li",{class:3==t.sourceType?"active":"",on:{click:function(e){t.sourceType=3,t.goodsSource()}}},[t._v("按销售额")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAunoSource,expression:"!hasAunoSource"}]},[i("div",{staticStyle:{width:"98%",height:"360px",margin:"auto"},attrs:{id:"goodsSource"}})]),t._v(" "),t.hasAunoSource&&t.AnalysisSourceFlag?i("nopermission",{staticStyle:{"margin-top":"60px"}}):t._e()],1),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.loading,expression:"!loading"}],staticClass:"sell_channel",staticStyle:{width:"50%"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"top clear"},[i("div",{staticClass:"platform_common_title"},[i("span",[t._v("商品价格分布")]),t._v(" "),i("ul",{staticClass:"choice_div clear"},[i("li",{class:4==t.type?"active":"",on:{click:function(e){t.type=4,t.goodsCount()}}},[t._v("按数量")]),t._v(" "),i("li",{class:2==t.type?"active":"",on:{click:function(e){t.type=2,t.goodsCount()}}},[t._v("按销量")]),t._v(" "),i("li",{class:3==t.type?"active":"",on:{click:function(e){t.type=3,t.goodsCount()}}},[t._v("按销售额")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAuno,expression:"!hasAuno"}]},[i("div",{staticStyle:{width:"100%",height:"360px"},attrs:{id:"goodsCount"}})]),t._v(" "),0!=t.priceData.length||t.hasAuno?t._e():i("div",{staticClass:"curve_no_data"},[i("img",{attrs:{src:a("vLvk"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])]),t._v(" "),t.hasAuno&&t.loading?i("nopermission",{staticStyle:{"margin-top":"60px"}}):t._e()],1)])},staticRenderFns:[]};var v={props:["times_arr"],data:function(){return{hasAunoSource:!1,type:1,loading:!1,dataFlag:!1,trendData:{}}},components:{},mounted:function(){this.init()},methods:{init:function(){var t=this;this.loading=!1,this.$axios({url:this.URL.BASEURL+this.URL.channelAnalysis,method:"post",data:{start_time:this.times_arr[0],end_time:this.times_arr[1]}}).then(function(e){4003==(e=e.data).errno?t.hasAunoSource=!0:t.hasAunoSource=!1,t.loading=!0,e&&0==e.errno?t.$nextTick(function(){e.rst&&0!=e.rst.length?(t.dataFlag=!1,t.trendData=e.rst,t.drawTimeRange()):t.dataFlag=!0}):4003!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!0})},drawTimeRange:function(){var t=this,e=[],a=[],i="",o=0;for(var n in this.trendData)this.trendData[n].length>o&&(o=this.trendData[n].length,i=n);for(var n in this.trendData)n==i&&0==a.length&&this.trendData[n].forEach(function(t){a.push(t.date)});for(var n in this.trendData){var s=[];a.forEach(function(e){var a=t.trendData[n].filter(function(t){return t.date==e});0==a.length?s.push(0):(1==t.type&&s.push({value:100*a[0].goods_count_rate,specific_value:a[0].goods_count}),2==t.type&&s.push({value:100*a[0].sell_count_rate,specific_value:a[0].sell_count}),3==t.type&&s.push({value:100*a[0].sell_money_rate,specific_value:a[0].sell_money}))}),e.push({smooth:!0,name:n,yAxisIndex:0,type:"line",data:s,lineStyle:{width:2},itemStyle:{opacity:0,barBorderRadius:[4,4,4,4],borderType:"dotted"}})}var r=this,l={color:["#2662ff","#FF5A7B","#BCA4FC","#F9D778","#A4FCD6","#F6564A","#FF936B","#9CCCFF","#FFACB8","#E5F2FE","#B7EEA8","#FFB89D","#FCE500","#9F9F9F"],tooltip:{trigger:"axis",formatter:function(t){var e=t[0].name+"<br>";return t.forEach(function(t,a){e+=t.marker+t.seriesName+":"+r.$NumberHandle(t.value,2)+"%"+(t.data.specific_value?"("+r.$NumberHandle(t.data.specific_value)+")":"")+"<br/>"}),e}},grid:{left:"3%",right:"2%",bottom:"14%",top:"8%",containLabel:!0},legend:{bottom:0,itemHeight:12,itemWidth:15,icon:"roundRect"},xAxis:[{type:"category",data:a,axisLine:{lineStyle:{color:"#ECEDF2"}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:"#999999",fontSize:13}}],yAxis:[{type:"value",axisLine:{lineStyle:{color:"#ECEDF2"}},axisTick:{show:!1},splitLine:{lineStyle:{color:"#DADADA",type:"dashed"}},max:0==a.length?100:"dataMax",min:0,nameTextStyle:{color:"#999999",fontSize:14,padding:[0,35,0,0]},axisLabel:{color:"#999999",fontSize:13,formatter:function(t){var e=t;return r.$NumberHandle(e)+"%"}}}],series:e};this.$echarts.init(document.getElementById("channelDraw")).setOption(l,!0)}},watch:{times_arr:function(){this.init()}}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.loading,expression:"!loading"}],staticClass:"goodClassification",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[i("div",{staticClass:"top clear"},[i("div",{staticClass:"platform_common_title"},[i("span",[t._v("各渠道占比")]),t._v(" "),i("ul",{staticClass:"choice_div clear"},[i("li",{class:1==t.type?"active":"",on:{click:function(e){t.type=1,t.drawTimeRange()}}},[t._v("按数量")]),t._v(" "),i("li",{class:2==t.type?"active":"",on:{click:function(e){t.type=2,t.drawTimeRange()}}},[t._v("按销量")]),t._v(" "),i("li",{class:3==t.type?"active":"",on:{click:function(e){t.type=3,t.drawTimeRange()}}},[t._v("按销售额")])])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAunoSource,expression:"!hasAunoSource"}]},[i("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"channelDraw"}})]),t._v(" "),t.dataFlag?i("div",{staticClass:"curve_no_data"},[i("img",{attrs:{src:a("vLvk"),alt:""}}),t._v(" "),i("span",[t._v("暂无数据")])]):t._e(),t._v(" "),t.hasAunoSource&&t.loading?i("nopermission",{staticStyle:{"margin-top":"60px"}}):t._e()],1)},staticRenderFns:[]};var A={name:"analysis",components:{HotWords:r,GoodClassification:d,PriceDistribution:a("C7Lr")(m,g,!1,function(t){a("IkrL")},"data-v-315bcc66",null).exports,LiveGeneralEstimate:o,channelProportion:a("C7Lr")(v,p,!1,function(t){a("Dajf")},"data-v-d1f8874e",null).exports},created:function(){window.scrollTo(0,0)},data:function(){return{times_arr:[this.getDay(-7,!1),this.getDay(-1,!1)],times:[this.getDay(-7,!1),this.getDay(-1,!1)],pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()},shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}]}}},watch:{times:function(){this.times?this.times_arr=[this.times[0],this.times[1]]:this.times_arr=["",""]}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"analysis"}},[a("div",{staticClass:"search_condition"},[a("div",{staticClass:"common_screen clear"},[a("div",{staticClass:"common_screen_title"},[t._v("筛选")]),t._v(" "),a("ul",{staticClass:"common_screen_info",staticStyle:{"margin-top":"6px"}},[a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",size:"small",clearable:!1,"picker-options":t.pickerOptions},model:{value:t.times,callback:function(e){t.times=e},expression:"times"}})],1)])]),t._v(" "),a("live-general-estimate",{attrs:{times_arr:t.times_arr}}),t._v(" "),a("price-distribution",{attrs:{times_arr:t.times_arr}}),t._v(" "),a("channel-proportion",{attrs:{times_arr:t.times_arr}}),t._v(" "),a("good-classification",{attrs:{times_arr:t.times_arr}}),t._v(" "),a("hot-words",{attrs:{times_arr:t.times_arr}})],1)},staticRenderFns:[]};var f=a("C7Lr")(A,_,!1,function(t){a("o+wg")},"data-v-9b5a333e",null);e.default=f.exports},Rvvu:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAk1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ROyVeAAAAMHRSTlMA7sDVtPzxBgPozOvg2dK7pJ6Zk2phRisdEQz5xI+JenRLOTMlFr2wgX9uZFxXUEDoiuMRAAAA/UlEQVRIx+3Vx67CMBCF4SGJHYc0Ukih19vLvP/TXXFxZLAl43iH5H//SUeaxYDLZdt5vYonuqL8fQFq+wk+LmkV1wmnyw9lWKJZHzLMDOFMhsQQZiAK6+Ab0DBfuH2KGA8wmbfdz8oEtjle4tD7PxSrHsJzSfAG0o6Pz/Qw3FHEW/gKvJ0WHn3Ee/g2wEYHj0uUYTHAuQ4WqMCUcTjTwUCFuL26XxwLySa8DKVjII96QYQ4CoocfCZY2MIDsYTQRJYQ+orYQYBTMB7yGt8SAqtjRApLQzgFUb9JtzC1/R1rQ/gpwz4yW8pA7pCYuBOoLeryxdOVV18MXK67/gC8kyl4PN0m0QAAAABJRU5ErkJggg=="},be8y:function(t,e){},"o+wg":function(t,e){}});