(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27c5a702"],{"57f2":function(t,e,a){var n,i;!function(r,o){n=o,i="function"===typeof n?n.call(e,a,e,t):n,void 0===i||(t.exports=i)}(0,(function(t,e,a){var n=function(t,e,a,n,i,r){for(var o=0,s=["webkit","moz","ms","o"],u=0;u<s.length&&!window.requestAnimationFrame;++u)window.requestAnimationFrame=window[s[u]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[s[u]+"CancelAnimationFrame"]||window[s[u]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var a=(new Date).getTime(),n=Math.max(0,16-(a-o)),i=window.setTimeout((function(){t(a+n)}),n);return o=a+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)});var l=this;for(var c in l.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null},r)r.hasOwnProperty(c)&&(l.options[c]=r[c]);""===l.options.separator&&(l.options.useGrouping=!1),l.options.prefix||(l.options.prefix=""),l.options.suffix||(l.options.suffix=""),l.d="string"==typeof t?document.getElementById(t):t,l.startVal=Number(e),l.endVal=Number(a),l.countDown=l.startVal>l.endVal,l.frameVal=l.startVal,l.decimals=Math.max(0,n||0),l.dec=Math.pow(10,l.decimals),l.duration=1e3*Number(i)||2e3,l.formatNumber=function(t){var e,a,n,i;if(t=t.toFixed(l.decimals),t+="",e=t.split("."),a=e[0],n=e.length>1?l.options.decimal+e[1]:"",i=/(\d+)(\d{3})/,l.options.useGrouping)for(;i.test(a);)a=a.replace(i,"$1"+l.options.separator+"$2");return l.options.prefix+a+n+l.options.suffix},l.easeOutExpo=function(t,e,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+e},l.easingFn=l.options.easingFn?l.options.easingFn:l.easeOutExpo,l.formattingFn=l.options.formattingFn?l.options.formattingFn:l.formatNumber,l.version=function(){return"1.7.1"},l.printValue=function(t){var e=l.formattingFn(t);"INPUT"===l.d.tagName?this.d.value=e:"text"===l.d.tagName||"tspan"===l.d.tagName?this.d.textContent=e:this.d.innerHTML=e},l.count=function(t){l.startTime||(l.startTime=t),l.timestamp=t;var e=t-l.startTime;l.remaining=l.duration-e,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.easingFn(e,0,l.startVal-l.endVal,l.duration):l.frameVal=l.easingFn(e,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(e/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(e/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.round(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),e<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback()},l.start=function(t){return l.callback=t,l.rAF=requestAnimationFrame(l.count),!1},l.pauseResume=function(){l.paused?(l.paused=!1,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=!0,cancelAnimationFrame(l.rAF))},l.reset=function(){l.paused=!1,delete l.startTime,l.startVal=e,cancelAnimationFrame(l.rAF),l.printValue(l.startVal)},l.update=function(t){cancelAnimationFrame(l.rAF),l.paused=!1,delete l.startTime,l.startVal=l.frameVal,l.endVal=Number(t),l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count)},l.printValue(l.startVal)};return n}))},"5f4c":function(t,e,a){"use strict";a("6b9c")},"6b9c":function(t,e,a){},9349:function(t,e,a){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"count-to-wrapper"},[t._t("left"),e("p",{staticClass:"content-outer"},[e("span",{class:["count-to-count-text",t.countClass],attrs:{id:t.counterId}},[t._v(t._s(t.init))]),e("i",{class:["count-to-unit-text",t.unitClass]},[t._v(t._s(t.unitText))])]),t._t("right")],2)},i=[],r=(a("c5f6"),a("57f2")),o=a.n(r),s={name:"CountTo",props:{init:{type:Number,default:0},startVal:{type:Number,default:0},end:{type:Number,required:!0},decimals:{type:Number,default:0},decimal:{type:String,default:"."},duration:{type:Number,default:2},delay:{type:Number,default:0},uneasing:{type:Boolean,default:!1},usegroup:{type:Boolean,default:!1},separator:{type:String,default:","},simplify:{type:Boolean,default:!1},unit:{type:Array,default:function(){return[[3,"K+"],[6,"M+"],[9,"B+"]]}},countClass:{type:String,default:""},unitClass:{type:String,default:""}},data:function(){return{counter:null,unitText:""}},computed:{counterId:function(){return"count_to_".concat(this._uid)}},methods:{getHandleVal:function(t,e){return{endVal:parseInt(t/Math.pow(10,this.unit[e-1][0])),unitText:this.unit[e-1][1]}},transformValue:function(t){var e=this.unit.length,a={endVal:0,unitText:""};if(t<Math.pow(10,this.unit[0][0]))a.endVal=t;else for(var n=1;n<e;n++)t>=Math.pow(10,this.unit[n-1][0])&&t<Math.pow(10,this.unit[n][0])&&(a=this.getHandleVal(t,n));return t>Math.pow(10,this.unit[e-1][0])&&(a=this.getHandleVal(t,e)),a},getValue:function(t){var e=0;if(this.simplify){var a=this.transformValue(t),n=a.endVal,i=a.unitText;this.unitText=i,e=n}else e=t;return e}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.getValue(t.end);t.counter=new o.a(t.counterId,t.startVal,e,t.decimals,t.duration,{useEasing:!t.uneasing,useGrouping:t.usegroup,separator:t.separator,decimal:t.decimal}),setTimeout((function(){t.counter.error||t.counter.start()}),t.delay)}))},watch:{end:function(t){var e=this.getValue(t);this.counter.update(e)}}},u=s,l=a("2877"),c=Object(l["a"])(u,n,i,!1,null,null,null),d=c.exports;e["a"]=d},dae9:function(t,e,a){"use strict";a.r(e);a("c5f6"),a("7f7f");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"statistics"},[e("div",{staticClass:"form-wrap"},[e("Form",{ref:"form",attrs:{"label-width":50,rules:t.formRules,model:t.selectForm,inline:""}},[e("FormItem",{attrs:{label:"时间：",prop:"date"}},[e("DatePicker",{attrs:{type:"daterange",placeholder:"请选择时间","split-panels":"",clearable:!1,options:t.datePickerOptions},model:{value:t.selectForm.date,callback:function(e){t.$set(t.selectForm,"date",e)},expression:"selectForm.date"}})],1),e("FormItem",{staticClass:"btn-wrap"},[e("Button",{attrs:{type:"primary",size:"large",title:"查询记录"},on:{click:function(e){return t.init()}}},[t._v(" 查询 ")]),e("Button",{attrs:{type:"default",size:"large",title:"导出记录"},on:{click:t.derive}},[t._v(" 导出 ")])],1)],1)],1),e("Card",[e("Row",{attrs:{gutter:10}},[e("h2",{staticClass:"section-title"},[t._v("粉丝数据")]),e("div",{staticClass:"fan-data"},t._l(t.cardData,(function(a,n){return e("div",{key:n,staticClass:"fan-data__item"},[e("infor-card",{attrs:{color:t.dictionary[a.name].color,icon:t.dictionary[a.name].icon,"icon-size":30}},[e("p",[t._v(t._s(t.dictionary[a.name].title))]),e("count-to",{attrs:{end:Number(a.val),"count-class":"count-style",usegroup:!0}})],1)],1)})),0)])],1),e("Card",[e("Row",{attrs:{gutter:10}},[e("h2",{staticClass:"section-title"},[t._v("粉丝曲线")]),e("Col",{attrs:{span:24}},[e("example",{ref:"view-example",staticStyle:{"min-height":"360px"}})],1)],1)],1)],1)},i=[],r=(a("a481"),a("9349")),o=function(){var t=this,e=t._self._c;return e("div",{ref:"dom"})},s=[],u=a("313e"),l=a.n(u),c=a("90de"),d={name:"serviceRequests",data:function(){return{dom:null}},beforeDestroy:function(){Object(c["e"])(window,"resize",this.resize)},methods:{init:function(t,e){var a=t,n=e;if(0!=n.length){var i={color:["#3d8ce9","#4ac7f5","#25d5d2"],legend:{icon:"pin",data:[n[0].title,n[1].title,n[2].title],selector:["all","inverse"],selectorPosition:"end"},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:{top:"15%",left:"2.5%",right:"3%",bottom:"5%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:a}],yAxis:[{type:"value"}],series:[{name:n[0].title,type:"line",smooth:!0,data:n[0].data},{name:n[1].title,type:"line",smooth:!0,data:n[1].data},{name:n[2].title,type:"line",smooth:!0,data:n[2].data}]};this.dom=l.a.init(this.$refs.dom),this.dom.setOption(i),Object(c["f"])(window,"resize",this.resize)}},resize:function(){this.dom.resize()}}},m=d,f=a("2877"),p=Object(f["a"])(m,o,s,!1,null,null,null),h=p.exports,v=a("63a4"),g=a("4328"),w=a.n(g),b={name:"Statistics",components:{CountTo:r["a"],Example:h,InforCard:v["a"]},props:{findDay:{type:void 0|Number,default:-1}},data:function(){return{actID:null,datePickerOptions:{disabledDate:function(t){return!!t&&(t.valueOf()>Date.now()||void 0)}},formRules:{date:[{required:!0}]},selectForm:{date:[]},dictionary:{number_pv:{title:"总pv",icon:"ios-people",color:"#3d8ce9"},number_uv:{title:"总uv",icon:"md-trending-up",color:"#4ac7f5"},subscribe_num:{title:"总关注",icon:"md-eye-off ",color:"#25d5d2"},unsubscribe_num:{title:"总取关",icon:"md-happy ",color:"#ae8ae2"},net_assets_num:{title:"净增",icon:"ios-add",color:"#00a578"}},cardData:[{val:0,name:"number_pv"},{val:0,name:"number_uv"},{val:0,name:"subscribe_num"},{val:0,name:"unsubscribe_num"},{val:0,name:"net_assets_num"}]}},watch:{findDay:function(){this.setFormRules()}},created:function(){this.selectForm.date[0]=this.formatDate(new Date(Date.now()-6048e5)),this.selectForm.date[1]=this.formatDate(new Date)},methods:{setFormRules:function(){var t=this;-1!==this.findDay&&(this.formRules.date[0].validator=function(e,a,n){var i=a[0].valueOf(),r=a[1].valueOf();i+1e3*t.findDay*60*60*24<r?n(new Error("当前会员数据查看范围：".concat(t.findDay,"天"))):n()})},init:function(t){var e=this;null!=t&&(this.actID=t),null!=this.actID&&this.$refs.form.validate((function(t){t&&e.$http.post("new/Channelqrcode/channel_graph",{id:e.actID,begin_date:e.formatDate(e.selectForm.date[0]),end_date:e.formatDate(e.selectForm.date[1])}).then((function(t){var a=t.data;if(200==a.code){console.log("resData",a);var n=a.data;e.cardData[0].val=n.number_pv,e.cardData[1].val=n.number_uv,e.cardData[2].val=n.subscribe_num,e.cardData[3].val=n.unsubscribe_num,e.cardData[4].val=n.net_assets_num;for(var i=[],r=[],o=[],s=[],u=0;u<n.graph.length;u++)i.push(n.graph[u].count_time),r.push(n.graph[u].number),o.push(n.graph[u].subscribe_num),s.push(n.graph[u].unsubscribe_num);var l=e.modify(i),c=[];c.push({title:"扫码次数",data:r}),c.push({title:"关注次数",data:o}),c.push({title:"取关次数",data:s}),e.$refs["view-example"].init(l,c)}}))}))},modify:function(t){for(var e=0;e<t.length;e++)t[e]=t[e].replace(/2019-/g,""),t[e]=t[e].replace(/2020-/g,""),t[e]=t[e].replace(/2021-/g,""),t[e]=t[e].replace(/2022-/g,""),t[e]=t[e].replace(/-/g,"月");return t},derive:function(){var t=this;this.$refs.form.validate((function(e){if(e){var a={id:t.actID,begin_date:t.formatDate(t.selectForm.date[0]),end_date:t.formatDate(t.selectForm.date[1])},n="".concat(t.baseURL,"new/excel/get_yyznchannel?").concat(w.a.stringify(a));window.open(n)}}))}}},V=b,y=(a("5f4c"),Object(f["a"])(V,n,i,!1,null,"6536f56c",null));e["default"]=y.exports}}]);