| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fdd3fe5"],{"003c":function(t,e,n){},"02fe":function(t,e,n){},"0996":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",[n("Button",{staticClass:"return",attrs:{icon:"ios-arrow-back",size:"small",type:"text",disabled:t.disabled},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")])],1),n("Divider",{staticClass:"return",attrs:{type:"vertical"}}),n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])],1)]),t.cardLists.length>=0?n("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"table-head"},[n("h3",[t._v("关注趋势")]),n("DatePicker",{staticClass:"mr20",staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"请选择时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),t.optionData?n("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)},i=[],r=(n("d81d"),n("ac1f"),n("1276"),n("a15b"),n("b0c0"),n("a584")),s=n("c71e"),o=n("0c9f"),c=n("61f7"),u=n("9901"),l={name:"index",components:{cardsData:r["a"],echartsNew:s["a"],echartsFrom:u["a"]},data:function(){return{timeVal:[],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,options:this.$timeOptions,columns:[{title:"序号",type:"index",width:60,align:"center"},{title:"来源",key:"name",minWidth:80,align:"center"},{title:"金额",width:180,key:"value",align:"center"},{title:"占比率",slot:"percent",minWidth:100,align:"center"}]}},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(c["a"])(e,"yyyy/MM/dd")+"-"+Object(c["a"])(t,"yyyy/MM/dd"),this.wechatQrcodeStatistic()},methods:{wechatQrcodeStatistic:function(){var t=this;Object(o["w"])(this.id,this.formValidate).then((function(e){var n=["y_follow","y_scan","all_follow","all_scan"];t.cardLists.map((function(t,a){t.count=e.data[n[a]]})),t.getTrend(e.data.trend.series,e.data.trend.xAxis)}))},timeG:function(t){var e=new Date(t),n=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();return n},selectChange:function(t){console.log(this.timeG(t.split(",")[0]),this.timeG(t.split(",")[1]))},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal.join("-"),this.name=this.formValidate.time,this.wechatQrcodeStatistic()},getTrend:function(t,e){this.spinShow=!0;var n=t.map((function(t){return t.name})),a=e,i=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],r=[];t.map((function(t,e){r.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:i[e]}},smooth:0})})),this.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:n},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:a},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:r},this.spinShow=!1}}},d=l,h=(n("5e25"),n("2877")),f=Object(h["a"])(d,a,i,!1,null,"3d773184",null);e["default"]=f.exports},"0c9f":function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"o",(function(){return r})),n.d(e,"m",(function(){return s})),n.d(e,"l",(function(){return o})),n.d(e,"p",(function(){return c})),n.d(e,"r",(function(){return u})),n.d(e,"s",(function(){return l})),n.d(e,"v",(function(){return d})),n.d(e,"t",(function(){return h})),n.d(e,"u",(function(){return f})),n.d(e,"q",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"k",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return v})),n.d(e,"i",(function(){return x})),n.d(e,"g",(function(){return w})),n.d(e,"a",(function(){return _})),n.d(e,"c",(function(){return C})),n.d(e,"b",(function(){return O})),n.d(e,"d",(function(){return j})),n.d(e,"w",(function(){return S}));var a=n("6b6c");function i(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 u(t){return Object(a["a"])({url:"/statistic/user/get_trend",method:"get",params:t})}function l(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 y(t){return Object(a["a"])({url:"/statistic/order/get_basic",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/statistic/order/get_trend",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/statistic/order/get_channel",method:"get",params:t})}function x(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 j(t){return Object(a["a"])({url:"/statistic/balance/get_type",method:"get",params:t})}function S(t,e){return Object(a["a"])({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}},"2c3e":function(t,e,n){var a=n("da84"),i=n("83ab"),r=n("9f7f").MISSED_STICKY,s=n("c6b6"),o=n("edd0"),c=n("69f3").get,u=RegExp.prototype,l=a.TypeError;i&&r&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!c(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,n){var a=n("83ab"),i=n("da84"),r=n("e330"),s=n("94ca"),o=n("7156"),c=n("9112"),u=n("241c").f,l=n("3a9b"),d=n("44e7"),h=n("577e"),f=n("90d8"),m=n("9f7f"),g=n("aeb0"),p=n("cb2d"),y=n("d039"),b=n("1a2d"),v=n("69f3").enforce,x=n("2626"),w=n("b622"),_=n("fce3"),C=n("107c"),O=w("match"),j=i.RegExp,S=j.prototype,D=i.SyntaxError,L=r(S.exec),E=r("".charAt),F=r("".replace),A=r("".indexOf),k=r("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,M=/a/g,$=new j(T)!==T,V=m.MISSED_STICKY,I=m.UNSUPPORTED_Y,B=a&&(!$||V||_||C||y((function(){return M[O]=!1,j(T)!=T||j(M)==M||"/a/i"!=j(T,"i")}))),z=function(t){for(var e,n=t.length,a=0,i="",r=!1;a<=n;a++)e=E(t,a),"\\"!==e?r||"."!==e?("["===e?r=!0:"]"===e&&(r=!1),i+=e):i+="[\\s\\S]":i+=e+E(t,++a);return i},q=function(t){for(var e,n=t.length,a=0,i="",r=[],s={},o=!1,c=!1,u=0,l="";a<=n;a++){if(e=E(t,a),"\\"===e)e+=E(t,++a);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:L(R,k(t,a+1))&&(a+=2,c=!0),i+=e,u++;continue;case">"===e&&c:if(""===l||b(s,l))throw new D("Invalid capture group name");s[l]=!0,r[r.length]=[l,u],c=!1,l="";continue}c?l+=e:i+=e}return[i,r]};if(s("RegExp",B)){for(var N=function(t,e){var n,a,i,r,s,u,m=l(S,this),g=d(t),p=void 0===e,y=[],b=t;if(!m&&g&&p&&t.constructor===N)return t;if((g||l(S,t))&&(t=t.source,p&&(e=f(b))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),b=t,_&&"dotAll"in T&&(a=!!e&&A(e,"s")>-1,a&&(e=F(e,/s/g,""))),n=e,V&&"sticky"in T&&(i=!!e&&A(e,"y")>-1,i&&I&&(e=F(e,/y/g,""))),C&&(r=q(t),t=r[0],y=r[1]),s=o(j(t,e),m?this:S,N),(a||i||y.length)&&(u=v(s),a&&(u.dotAll=!0,u.raw=N(z(t),n)),i&&(u.sticky=!0),y.length&&(u.groups=y)),t!==b)try{c(s,"source",""===b?"(?:)":b)}catch(x){}return s},P=u(j),Y=0;P.length>Y;)g(N,j,P[Y++]);S.constructor=N,N.prototype=S,p(i,"RegExp",N,{constructor:!0})}x("RegExp")},"5e25":function(t,e,n){"use strict";var a=n("003c"),i=n.n(a);i.a},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l}));var a=n("fc11"),i=n("f3f3");n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("b64b"),n("99af");function r(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var a in n)if(new RegExp("(".concat(a,")")).test(e)){var i=n[a]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?i:s(i))}return e}function s(t){return("00"+t).substr(t.length)}var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var c=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i["a"])({required:!0,message:t,type:"string"},e)}function l(t){return d.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}c(u,"请输入%s"),c(l,"%s格式不正确");var d=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:Object(a["a"])({},e,t);return Object(i["a"])(Object(i["a"])({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s),r)},c(t[e],o[e]),t}),{})},7443:function(t,e,n){"use strict";var a=n("02fe"),i=n.n(a);i.a},9901:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticStyle:{height:"300px"},attrs:{id:t.echarts}})])},i=[],r=n("313e"),s=n.n(r),o={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=s.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)}},c=o,u=n("2877"),l=Object(u["a"])(c,a,i,!1,null,"00217dc6",null);e["a"]=l.exports},a15b:function(t,e,n){"use strict";var a=n("23e7"),i=n("e330"),r=n("44ad"),s=n("fc6a"),o=n("a640"),c=i([].join),u=r!=Object,l=o("join",",");a({target:"Array",proto:!0,forced:u||!l},{join:function(t){return c(s(this),void 0===t?",":t)}})},a584:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:10}},t._l(t.cardLists,(function(e,a){return n("Col",{key:a,staticClass:"ivu-mb",attrs:{xl:e.col,lg:6,md:12,sm:24,xs:24}},[n("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[n("div",{staticClass:"card_box"},[n("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}},[n("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}},[n("Icon",{attrs:{type:e.className}})],1)]),n("div",{staticClass:"card_box_txt"},[n("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),n("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)},i=[],r={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}},s=r,o=(n("7443"),n("2877")),c=Object(o["a"])(s,a,i,!1,null,"e3e38522",null);e["a"]=c.exports},c607:function(t,e,n){var a=n("da84"),i=n("83ab"),r=n("fce3"),s=n("c6b6"),o=n("edd0"),c=n("69f3").get,u=RegExp.prototype,l=a.TypeError;i&&r&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===s(this))return!!c(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},c71e:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{style:t.styles,attrs:{id:t.echarts}})])},i=[],r=n("313e"),s=n.n(r),o={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=s.a.init(document.getElementById(this.echarts));var t=null;t=this.optionData,this.myChart.setOption(t,!0)}}},c=o,u=n("2877"),l=Object(u["a"])(c,a,i,!1,null,"4a0d7a27",null);e["a"]=l.exports},edd0:function(t,e,n){var a=n("13d2"),i=n("9bf2");t.exports=function(t,e,n){return n.get&&a(n.get,e,{getter:!0}),n.set&&a(n.set,e,{setter:!0}),i.f(t,e,n)}}}]);
|