canyin-project/ybcy/views/channel/index/static/js/chunk-848a089e.3820cef1.js
2024-11-01 16:07:54 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-848a089e"],{"079c":function(t,e,a){"use strict";var s=a("2c40"),r=a.n(s);r.a},"2c40":function(t,e,a){},"321b":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"outmain ba_f mar_t20"},[a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("实时概况")]),a("span",{staticClass:"fnormal fon_14 color_9 mar_l10"},[t._v("更新时间:"+t._s(t.dateFormat(t.date)))])])]),a("div",{staticClass:"flex-bet"},[a("div",{staticClass:"bflex-7 flex"},[a("div",{staticClass:"pad_20 flex-1 borderBG mar_r20"},[a("div",{staticClass:"color_9 lh25"},[t._v("今日新增用户(人)")]),a("div",{staticClass:"fon_30 title35 lhh40 wei"},[t._v(" "+t._s(t.ssgkData.todayUser)+" ")]),a("div",{staticClass:"fon_14 color_9 flex lh25"},[a("div",{},[t._v("昨日:"+t._s(t.ssgkData.yesUser))])])]),a("div",{staticClass:"pad_20 flex-1 borderBG mar_r20"},[a("div",{staticClass:"color_9 lh25"},[t._v("今日付费用户(人)")]),a("div",{staticClass:"fon_30 title35 lhh40 wei"},[t._v(" "+t._s(t.ssgkData.payUser)+" ")]),a("div",{staticClass:"fon_14 color_9 flex lh25"},[a("div",{},[t._v("昨日:"+t._s(t.ssgkData.yesPayUser))])])]),a("div",{staticClass:"pad_20 flex-1 borderBG mar_r20"},[a("div",{staticClass:"color_9 lh25"},[t._v("会员用户(人)")]),a("div",{staticClass:"fon_30 title35 lhh40 wei"},[t._v(t._s(t.ssgkData.userCardRecordCount))]),a("div",{staticClass:"fon_14 color_9 flex lh25"},[a("div",{},[t._v("昨日:"+t._s(t.ssgkData.yesUserCardRecordCount))])])]),a("div",{staticClass:"pad_20 flex-1 borderBG"},[a("div",{staticClass:"color_9 lh25"},[t._v("累计用户(人)")]),a("div",{staticClass:"fon_30 title35 lhh40 wei"},[t._v(" "+t._s(t.ssgkData.userSum)+" ")]),a("div",{staticClass:"fon_14 color_9 flex lh25"},[a("div",{},[t._v("累计付费用户:"+t._s(t.ssgkData.payUserCount))])])])])])]),a("div",{staticClass:"t_r mar_t20"},[a("div",{staticClass:"fon_12 mar_r10 color_9"},[a("span",{staticClass:"fon_14 color_3"},[t._v("时间筛选:")]),a("el-date-picker",{staticClass:"mar_l10",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:t.changeTime},model:{value:t.form.time,callback:function(e){t.$set(t.form,"time",e)},expression:"form.time"}})],1)]),t._m(0),t._m(1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mar_t20"},[a("div",{staticClass:"mar_t20 flex-bet"},[a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("会员总览")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch32"}})]),a("div",{staticClass:"flex-g-1 ba_f mar_lr20 pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("会员比例")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch33"}})]),a("div",{staticClass:"flex-g-1 ba_f pad_20 bor_rad5"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("付费总览")])])]),a("div",{staticClass:"mar_r20",staticStyle:{height:"280px",width:"380px","margin-top":"40px"},attrs:{id:"mainEch34"}})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"outmain ba_f mar_t20"},[a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("用户总览")])])]),a("div",{staticStyle:{height:"400px"},attrs:{id:"mainEch2"}})])}],i=(a("d81d"),a("96cf"),a("1da1")),o=a("5530"),n=a("313e"),l=a.n(n),c=a("48fb"),u=a("ed08"),d=a("2f62"),h={mounted:function(){this.init()},computed:Object(o["a"])({},Object(d["d"])(["storeId"])),data:function(){return{form:{shopValue:"all",timeType:"1",time:[new Date,new Date],Mtime:" "},options:[{value:"1",label:"全部"}],options2:[{value:"1",label:"自然日"},{value:"2",label:"自然月"}],ssgkData:{dePay:"",deUser:"",oldPrice:"",payUser:"",payUserCount:"",todayUser:"",userPrice:"",userSum:"",yesPayUser:"",yesUser:"",userCardRecordCount:"",yesUserCardRecordCount:""},userData:{userSum:"",miniSum:"",newSum:"",userBilv:"",payUser:"",payBilv:"",userCount:"",userBilvCount:"",paySum:"",paySumBilv:"",tiaoToday:"",tiaoBilv:"",sumMoney:"",sumBilv:"",keMoney:"",keBilv:""},echarts1_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F"],legend:{orient:"vertical",right:0,data:["付费用户","未付费用户"]},series:[{name:"访问来源",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"16",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:35,name:"付费用户"},{value:310,name:"未付费用户"}]}]},echarts1_option2:{color:["#2A75ED","#2FCE63"],tooltip:{trigger:"axis"},legend:{data:["新增用户","付费用户"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!1,lineStyle:{color:"#ccc",type:"dashed"}},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},axisLine:{lineStyle:{color:"#f7f7f7",width:2}},data:["1","2","3","4","5","6","7"]},yAxis:{type:"value",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{color:"#333",fontSize:"12"}},splitLine:{lineStyle:{type:"dotted",color:"#DDDDDD"},show:!0}},series:[{name:"新增用户",type:"line",stack:"总量",data:[],smooth:!0},{name:"付费用户",type:"line",stack:"总量",data:[],smooth:!0}]},date:new Date,echarts32_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信小程序","支付宝小程序"]},series:[{name:"会员总览",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信小程序"},{value:20,name:"支付宝小程序"}]}]},echarts33_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["会员用户","普通用户"]},series:[{name:"会员比例",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"会员用户"},{value:20,name:"普通用户"}]}]},echarts34_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["付费用户","未付费用户"]},series:[{name:"付费总览",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"付费用户"},{value:20,name:"未付费用户"}]}]}}},methods:{init:function(){this.userIndex(),this.getUserData()},userIndex:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["M"])({storeId:t.storeId});case 2:a=e.sent,s=a.data,console.log(s),s&&(t.ssgkData.todayUser=s.todayUser,t.ssgkData.yesUser=s.yesUser,t.ssgkData.deUser=s.deUser,t.ssgkData.payUser=s.payUser,t.ssgkData.yesPayUser=s.yesPayUser,t.ssgkData.dePay=s.dePay,t.ssgkData.userSum=s.userSum,t.ssgkData.payUserCount=s.payUserCount,t.ssgkData.userPrice=s.userPrice,t.ssgkData.oldPrice=s.oldPrice,t.ssgkData.userCardRecordCount=s.userCardRecordCount,t.ssgkData.yesUserCardRecordCount=s.yesUserCardRecordCount,t.bus.$emit("loading",!1));case 6:case"end":return e.stop()}}),e)})))()},getUserData:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,s,r,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="",s="",t.form.time&&(a=Object(u["a"])(t.form.time[0]),s=Object(u["a"])(t.form.time[1])),r={startTime:a,endTime:s,storeId:t.storeId},e.next=6,Object(c["p"])(r);case 6:i=e.sent,o=i.data,o&&(console.log(o),t.echarts32_option.series[0].data[0].value=+o.miniSum,t.echarts32_option.series[0].data[1].value=+o.aliSum,t.mainEch32(),t.echarts33_option.series[0].data[0].value=+o.vipSUm,t.echarts33_option.series[0].data[1].value=+o.userPlain,t.mainEch33(),t.echarts34_option.series[0].data[0].value=+o.vipNum,t.echarts34_option.series[0].data[1].value=+o.noPayNum,t.mainEch34(),t.echarts1_option2.series[0].data=o.userChar.map((function(t){return t.money})),t.echarts1_option2.series[1].data=o.OrderChar.map((function(t){return t.money})),t.echarts1_option2.xAxis.data=o.userChar.map((function(t){return t.hours})),t.yhzl());case 9:case"end":return e.stop()}}),e)})))()},ssgk:function(){var t=l.a.init(document.getElementById("mainEch"));t.setOption(this.echarts1_option,!0)},yhzl:function(){var t=l.a.init(document.getElementById("mainEch2"));t.setOption(this.echarts1_option2,!0)},changeTime:function(){this.getUserData()},mainEch32:function(){var t=l.a.init(document.getElementById("mainEch32"));t.setOption(this.echarts32_option,!0)},mainEch33:function(){var t=l.a.init(document.getElementById("mainEch33"));t.setOption(this.echarts33_option,!0)},mainEch34:function(){var t=l.a.init(document.getElementById("mainEch34"));t.setOption(this.echarts34_option,!0)},dateFormat:function(t){var e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),n=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+s+"-"+r+" "+i+":"+o+":"+n}}},p=h,_=(a("079c"),a("2877")),g=Object(_["a"])(p,s,r,!1,null,"13c2c569",null);e["default"]=g.exports},"3bbe":function(t,e,a){var s=a("861d");t.exports=function(t){if(!s(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,a){var s=a("861d"),r=a("d2bb");t.exports=function(t,e,a){var i,o;return r&&"function"==typeof(i=e.constructor)&&i!==a&&s(o=i.prototype)&&o!==a.prototype&&r(t,o),t}},a9e3:function(t,e,a){"use strict";var s=a("83ab"),r=a("da84"),i=a("94ca"),o=a("6eeb"),n=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),p=a("241c").f,_=a("06cf").f,g=a("9bf2").f,m=a("58a8").trim,f="Number",v=r[f],y=v.prototype,b=l(h(y))==f,C=function(t){var e,a,s,r,i,o,n,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:s=2,r=49;break;case 79:case 111:s=8,r=55;break;default:return+c}for(i=c.slice(2),o=i.length,n=0;n<o;n++)if(l=i.charCodeAt(n),l<48||l>r)return NaN;return parseInt(i,s)}return+c};if(i(f,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var w,x=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof x&&(b?d((function(){y.valueOf.call(a)})):l(a)!=f)?c(new v(C(e)),a,x):C(e)},D=s?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;D.length>S;S++)n(v,w=D[S])&&!n(x,w)&&g(x,w,_(v,w));x.prototype=y,y.constructor=x,o(r,f,x)}},bf19:function(t,e,a){"use strict";var s=a("23e7");s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,a){var s=a("825a"),r=a("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,a={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(a,[]),e=a instanceof Array}catch(i){}return function(a,i){return s(a),r(i),e?t.call(a,i):a.__proto__=i,a}}():void 0)},ed08:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function s(t){var e=new Date(t).toJSON(),a=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(t){var e=new Date(t),a=e.getFullYear(),s=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getHours()<10?"0"+e.getHours():e.getHours(),o=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),n=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+"-"+s+"-"+r+" "+i+":"+o+":"+n}function i(t){var e=new Date(1e3*Number(t)),a=e.getFullYear()+"-",s=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",i=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",o=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",n=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),l=a+s+r+i+o+n;return l}}}]);