chunk-3a6b9dfd.05e5c994.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3a6b9dfd"],{"0996":function(t,e,i){i.r(e),i("a15b"),i("d81d"),i("14d9"),i("b0c0"),i("e9f5"),i("ab43"),i("d3b7");var a=i("a584"),n=i("c71e"),r=i("0c9f"),s=i("61f7"),o=i("9901");a={name:"index",components:{cardsData:a.a,echartsNew:n.a,echartsFrom:o.a},data:function(){return{timeVal:[],pickerOptions:this.$timeOptions,style:{height:"400px"},infoList:{},infoList2:{},echartLeft:!0,echartRight:!1,loading:!1,loading2:!1,fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]},formValidate:{time:""},cardLists:[{col:6,count:0,name:"昨日新增关注",className:"md-rose"},{col:6,count:0,name:"昨日参与",className:"ios-speedometer-outline"},{col:6,count:0,name:"总关注",className:"ios-speedometer-outline"},{col:6,count:0,name:"参与总人数",className:"md-rose"}],optionData:{},spinShow:!1}},created:function(){this.id=this.$route.query.id;var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.formValidate.time=Object(s.a)(e,"yyyy/MM/dd")+"-"+Object(s.a)(t,"yyyy/MM/dd"),this.wechatQrcodeStatistic()},methods:{wechatQrcodeStatistic:function(){var t=this;Object(r.w)(this.id,this.formValidate).then((function(e){var i=["y_follow","y_scan","all_follow","all_scan"];t.cardLists.map((function(t,a){t.count=e.data[i[a]]})),t.getTrend(e.data.trend.series,e.data.trend.xAxis)}))},timeG:function(t){return t=new Date(t),t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},selectChange:function(t){},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal?this.timeVal.join("-"):"",this.name=this.formValidate.time,this.wechatQrcodeStatistic()},getTrend:function(t,e){this.spinShow=!0;var i=t.map((function(t){return t.name})),a=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],n=[];t.map((function(t,e){n.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:a[e]}},smooth:0})})),this.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:i},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:e},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:n},this.spinShow=!1}}},i("3ded"),n=i("2877"),o=Object(n.a)(a,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[e("pages-header",{ref:"pageHeader",attrs:{title:t.$route.meta.title,backUrl:t.$routeProStr+"/marketing/channel_code/channelCodeIndex"}}),0<=t.cardLists.length?e("cards-data",{staticClass:"mt16",attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"table-head"},[e("h3",[t._v("关注趋势")]),e("el-date-picker",{staticClass:"mr20",attrs:{editable:!1,clearable:"","picker-options":t.pickerOptions,format:"yyyy/MM/dd",type:"daterange","value-format":"yyyy/MM/dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1)],1)}),[],!1,null,"3dcff915",null);e.default=o.exports},"0c9f":function(t,e,i){i.d(e,"j",(function(){return n})),i.d(e,"o",(function(){return r})),i.d(e,"m",(function(){return s})),i.d(e,"l",(function(){return o})),i.d(e,"p",(function(){return c})),i.d(e,"r",(function(){return l})),i.d(e,"s",(function(){return u})),i.d(e,"v",(function(){return d})),i.d(e,"t",(function(){return h})),i.d(e,"u",(function(){return f})),i.d(e,"q",(function(){return m})),i.d(e,"n",(function(){return g})),i.d(e,"k",(function(){return p})),i.d(e,"e",(function(){return b})),i.d(e,"h",(function(){return y})),i.d(e,"f",(function(){return x})),i.d(e,"i",(function(){return v})),i.d(e,"g",(function(){return w})),i.d(e,"a",(function(){return _})),i.d(e,"c",(function(){return C})),i.d(e,"b",(function(){return O})),i.d(e,"d",(function(){return S})),i.d(e,"w",(function(){return j}));var a=i("6b6c");function n(t){return Object(a.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function r(t){return Object(a.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function s(t){return Object(a.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function o(t){return Object(a.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(a.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(a.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(a.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(a.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function h(t){return Object(a.a)({url:"/statistic/user/get_region",method:"get",params:t})}function f(t){return Object(a.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function m(t){return Object(a.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function g(t){return Object(a.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function p(t){return Object(a.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function b(t){return Object(a.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function y(t){return Object(a.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function x(t){return Object(a.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function v(t){return Object(a.a)({url:"/statistic/order/get_type",method:"get",params:t})}function w(t){return Object(a.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function _(t){return Object(a.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function C(t){return Object(a.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function O(t){return Object(a.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function S(t){return Object(a.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function j(t,e){return Object(a.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}},"0db9":function(t,e,i){},"2c3e":function(t,e,i){var a=i("83ab"),n=i("9f7f").MISSED_STICKY,r=i("c6b6"),s=i("edd0"),o=i("69f3").get,c=RegExp.prototype,l=TypeError;a&&n&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===r(this))return!!o(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})},"3ded":function(t,e,i){i("64b2")},"4d63":function(t,e,i){var a=i("83ab"),n=i("cfe9"),r=i("e330"),s=i("94ca"),o=i("7156"),c=i("9112"),l=i("7c73"),u=i("241c").f,d=i("3a9b"),h=i("44e7"),f=i("577e"),m=i("90d8"),g=i("9f7f"),p=i("aeb0"),b=i("cb2d"),y=i("d039"),x=i("1a2d"),v=i("69f3").enforce,w=i("2626"),_=i("b622"),C=i("fce3"),O=i("107c"),S=_("match"),j=n.RegExp,L=j.prototype,D=n.SyntaxError,z=r(L.exec),k=r("".charAt),E=r("".replace),F=r("".indexOf),A=r("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,V=/a/g,T=/a/g,R=(i=new j(V)!==V,g.MISSED_STICKY),$=g.UNSUPPORTED_Y;_=a&&(!i||R||C||O||y((function(){return T[S]=!1,j(V)!==V||j(T)===T||"/a/i"!==String(j(V,"i"))})));if(s("RegExp",_)){for(var I=function(t,e){var i,a,n=d(L,this),r=h(t),s=void 0===e,u=[],g=t;if(!n&&r&&s&&t.constructor===I)return t;if((r||d(L,t))&&(t=t.source,s)&&(e=m(g)),t=void 0===t?"":f(t),e=void 0===e?"":f(e),g=t,r=e=C&&"dotAll"in V&&(i=!!e&&-1<F(e,"s"))?E(e,/s/g,""):e,R&&"sticky"in V&&(a=!!e&&-1<F(e,"y"))&&$&&(e=E(e,/y/g,"")),O&&(t=(s=(t=>{for(var e,i=t.length,a=0,n="",r=[],s=l(null),o=!1,c=!1,u=0,d="";a<=i;a++){if("\\"===(e=k(t,a)))e+=k(t,++a);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:if(n+=e,"?:"===A(t,a+1,a+3))continue;z(M,A(t,a+1))&&(a+=2,c=!0),u++;continue;case">"===e&&c:if(""===d||x(s,d))throw new D("Invalid capture group name");s[d]=!0,c=!(r[r.length]=[d,u]),d="";continue}c?d+=e:n+=e}return[n,r]})(t))[0],u=s[1]),s=o(j(t,e),n?this:L,I),(i||a||u.length)&&(e=v(s),i&&(e.dotAll=!0,e.raw=I((t=>{for(var e,i=t.length,a=0,n="",r=!1;a<=i;a++)"\\"===(e=k(t,a))?n+=e+k(t,++a):r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),n+=e):n+="[\\s\\S]";return n})(t),r)),a&&(e.sticky=!0),u.length)&&(e.groups=u),t!==g)try{c(s,"source",""===g?"(?:)":g)}catch(t){}return s},B=u(j),N=0;B.length>N;)p(I,j,B[N++]);(L.constructor=I).prototype=L,b(n,"RegExp",I,{constructor:!0})}w("RegExp")},"61f7":function(t,e,i){i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return c})),i.d(e,"b",(function(){return l}));var a=i("ade3"),n=i("5530");function r(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var i,a,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(i in n)new RegExp("(".concat(i,")")).test(e)&&(a=n[i]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}i("99af"),i("13d5"),i("e9f5"),i("9485"),i("b64b"),i("d3b7"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("00b4"),i("25f0"),i("5319"),i("498a");var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.a)({required:!0,message:t,type:"string"},e)}function l(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(c,"请输入%s"),o(l,"%s格式不正确");var u=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(n.a)(Object(n.a)({message:i.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s),r)},o(t[e],s[e]),t}),{})},"64b2":function(t,e,i){},"85d4":function(t,e,i){i("0db9")},9901:function(t,e,i){var a=i("313e"),n=i.n(a);a={name:"index",props:{infoList:{type:Object,default:null},series:Array,echartsTitle:{type:String,default:""},yAxisData:{type:Array,default:function(){return[]}},bingXdata:Array},data:function(){return{infoLists:this.infoList,seriesArray:this.series}},watch:{infoList:{handler:function(t,e){this.infoLists=t,this.handleSetVisitChart()},deep:!0},series:{handler:function(t,e){this.seriesArray=t,this.handleSetVisitChart()},deep:!0}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){this.myChart=n.a.init(document.getElementById(this.echarts));var t=null;t="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{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)}},i=i("2877"),i=Object(i.a)(a,(function(){var t=this._self._c;return t("div",[t("div",{staticStyle:{height:"300px"},attrs:{id:this.echarts}})])}),[],!1,null,"00217dc6",null);e.a=i.exports},a584:function(t,e,i){i("b0c0");var a={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};i("85d4"),i=i("2877"),i=Object(i.a)(a,(function(){var t=this,e=t._self._c;return e("div",[e("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:16}},t._l(t.cardLists,(function(i,a){return e("el-col",{key:a,staticClass:"ivu-mb",attrs:{xl:i.col||t.colsize.xl,lg:t.colsize.lg,md:t.colsize.md,sm:24,xs:24}},[e("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[e("div",{staticClass:"card_box"},[e("div",{staticClass:"card_box_cir",class:{one:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%5==4}},[e("span",{staticClass:"iconfont",class:i.className})])]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(i.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(i.name)}})])])])],1)})),1)],1)}),[],!1,null,"23d6d6ee",null);e.a=i.exports},c607:function(t,e,i){var a=i("83ab"),n=i("fce3"),r=i("c6b6"),s=i("edd0"),o=i("69f3").get,c=RegExp.prototype,l=TypeError;a&&n&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===r(this))return!!o(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})},c71e:function(t,e,i){var a=i("313e"),n=i.n(a);a={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){this.myChart=n.a.init(document.getElementById(this.echarts));var t=this.optionData;this.myChart.setOption(t,!0)}}},i=i("2877"),i=Object(i.a)(a,(function(){var t=this._self._c;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"4a0d7a27",null);e.a=i.exports}}]);