index.js
53.7 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"02e9":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},props:{toastShow:{type:Boolean,default:!1},typeArr:{type:Array,default:function(){return[{name:"**",key:""}]}}},watch:{toastShow:function(t,e){}},methods:{itemClick:function(t){this.$emit("update:toastShow",!1),this.$emit("handleChange",t)}}};e.default=r},"0378":function(t,e,a){"use strict";a.r(e);var r=a("ce17"),i=a("61bf");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("a643");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},"04dd":function(t,e,a){},"0766":function(t,e,a){"use strict";a.r(e);var r=a("51be"),i=a("8e0a");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("8c48");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},"099c":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",["account"==t.type?a("accountindex",{attrs:{mpcomid:"fdfd28ca-3"}}):"mall"==t.type?a("mallindex",{attrs:{mpcomid:"fdfd28ca-0"}}):"floor"==t.type?a("floorindex",{attrs:{mpcomid:"fdfd28ca-1"}}):"zone"==t.type?a("zoneindex",{attrs:{mpcomid:"fdfd28ca-2"}}):t._e()],1)},i=[];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},"0a35":function(t,e,a){"use strict";a.r(e);var r=a("4336"),i=a("6c57");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("57cb");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},"0dcc":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(a("e56f")),i=n(a("d2c6")),s=n(a("0766"));function n(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{reportType:"day",date:"",dateText:"",currentYear:[],currentMonth:[],currentWeek:[],yearData:[],monthData:[],weekData:[],picker:{textTitle:"选择",textConfirm:"确定",textCancel:"取消",colorConfirm:"#ffffff",colorCancel:"#ffffff"},title:"",atoken:"",chartIds:"",orgIds:"",keyArr:["CustomerCounting","Customeradd","trend7","trend15","trend30","costomer_ranking"],chartDatas:{},dateTypeArr:[{name:"日报",key:"day"},{name:"周报",key:"week"},{name:"月报",key:"month"},{name:"年报",key:"year"}],isShow:!1,headData:{mallOpenedCount:"-",dayInnum:"-",yesterdayInnum:"-",dayLastweekInnum:"-",dayLastyearInnum:"-",mallOpenedArea:"-"}}},computed:{},components:{linechart:r.default,toast:s.default,rankchart:i.default},created:function(){var e=this;this.getDateList(),t.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),t.getStorage({key:"orgName",success:function(t){e.title=t.data}}),t.getStorage({key:"orgIds",success:function(t){e.orgIds=t.data}})},mounted:function(){this.getReportKey(),this.initFresh()},methods:{handleDayConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=t[2].index+1;a=a>9?a:"0"+a,r=r>9?r:"0"+r,this.date=e+"-"+a+"-"+r,this.dateText=e+"-"+a+"-"+r,this.reportType="day",this.getReportKey()},handleWeekConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1;a=a>9?a:"0"+a;var r=new Date;r.setFullYear(e,a-1,1);var i=r.getDay();r.setFullYear(e,a,0);var s,n=r.getDate();s=7-i+1;var o="",c="";if(0==t[2].index){o=e+"-"+a+"-01";var d=s>9?s:"0"+s;c=e+"-"+a+"-"+d}else{var l=s+7*(t[2].index-1)+1;d=s+7*t[2].index;if(l>n){for(var f=t[2].index-1;f>=0;f--)if(l=s+7*(f-1),d=s+7*f,l<=n){d>n&&(d=n);break}}else l<=n&&d>n&&(d=n);l=l>9?l:"0"+l,d=d>9?d:"0"+d,o=e+"-"+a+"-"+l,c=e+"-"+a+"-"+d}this.reportType="week",this.date=o+","+c,this.dateText=o+"至"+c,this.reportType="week",this.getReportKey()},handleMonthConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=(new Date).getFullYear(),i=(new Date).getMonth()+1,s="",n="";if(e==r&&a==i){a=a>9?a:"0"+a,s=e+"-"+a+"-01";var o=(new Date).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}else{a=a>9?a:"0"+a,s=e+"-"+a+"-01";o=new Date(e,a,0).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}this.reportType="month",this.date=s+","+n,this.dateText=s+"至"+n,this.reportType="month",this.getReportKey()},handleYearConfirm:function(t){var e="",a="",r=1900+t[0].index;e=r+"-01-01",a=r+"-12-31",this.reportType="month",this.date=e+","+a,this.dateText=e+"至"+a,this.reportType="year",this.getReportKey()},getDateList:function(){var t=[];this.yearData=[];for(var e=1900;e<2100;e++)t.push(e+"年");this.yearData.push(t);var a=[];for(e=1;e<12;e++){var r=e;e<10&&(r="0"+e),a.push(r+"月")}this.monthData.push(t),this.monthData.push(a);var i=["第一周","第二周","第三周","第四周","第五周"];this.weekData.push(t),this.weekData.push(a),this.weekData.push(i);var s=new Date,n=s.getFullYear(),o={value:n+"年",index:n-1900};this.currentYear.push(o);var c=s.getMonth(),d=(r=c+1>9?c+1:"0"+(c+1),{index:c,value:r+"月"});this.currentMonth.push(o),this.currentMonth.push(d);var l=s.getDay(),f=s.getDate(),u=f>9?f:"0"+f,h=Math.ceil((f+6-l)/7)-1,p={index:h,value:i[h]};this.currentWeek.push(o),this.currentWeek.push(d),this.currentWeek.push(p),this.date=n+"-"+r+"-"+u,this.dateText=n+"-"+r+"-"+u},goList:function(){t.navigateTo({url:"../list/mallList?accountId="+this.orgIds+"&atoken="+this.atoken,animationType:"slide-in-right",animationDuration:200})},getReportKey:function(){var e=this,a="AccountDay";"day"==this.reportType?(a="AccountDay",this.keyArr=["CustomerCounting","Customeradd","trend7","trend15","trend30","costomer_ranking"]):"week"==this.reportType?(a="AccountWeek",this.keyArr=["costomerTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"month"==this.reportType?(a="AccountMonth",this.keyArr=["trafficAndSaleTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"year"==this.reportType&&(a="AccountYear",this.keyArr=["trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","trafficAndSaleDayTrend","CityTraffic"]),t.request({url:"https://store.keliuyun.com/report/reportCharts",data:{report:a,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(t){e.chartIds="",t.data.data.forEach(function(t){"-1"!=e.keyArr.indexOf(t.key)&&(e.chartIds+=t.id+",")}),e.chartIds=e.chartIds.substring(0,e.chartIds.length-1),e.getChartData()}})},getChartData:function(){var e=this,a={},r="https://store.keliuyun.com/report/report/day/account";if("day"==this.reportType)r="https://store.keliuyun.com/report/report/day/account",a={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3};else if("week"==this.reportType){var i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/week/account",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("month"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/month/account",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("year"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/year/account",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}t.request({url:r,header:{Authorization:this.atoken},data:a,method:"GET",success:function(t){var a=t.data.data;e.chartDatas=a.body,e.headData.mallOpenedCount=a.head.mallOpenedCount?a.head.mallOpenedCount:"-",e.headData.dayInnum=a.head.dayInnum?a.head.dayInnum:"-",e.headData.yesterdayInnum=a.head.yesterdayInnum?a.head.yesterdayInnum:"-",e.headData.dayLastweekInnum=a.head.dayLastweekInnum?a.head.dayLastweekInnum:"-",e.headData.dayLastyearInnum=a.head.dayLastyearInnum?a.head.dayLastyearInnum:"-",e.headData.mallOpenedArea=a.head.mallOpenedArea?a.head.mallOpenedArea:"-"}})},initFresh:function(){var t=this,e=new MiniRefresh({container:"#minirefresh",down:{callback:function(){t.getChartData(),e.endDownLoading()}},up:{callback:function(){console.log("bb"),e.endUpLoading(!0)}},isScrollBar:!1})},toastClick:function(t){switch(t){case"day":this.$refs.daypicker.show();break;case"week":this.$refs.weekpicker.show();break;case"month":this.$refs.monthpicker.show();break;case"year":console.log(t),this.$refs.yearpicker.show();break}}}};e.default=o}).call(this,a("649d")["default"])},"243d":function(t,e,a){"use strict";var r=a("2e86"),i=a.n(r);i.a},"2dc0":function(t,e,a){},"2e86":function(t,e,a){},"32bc":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(a("0a35")),i=o(a("9deb")),s=o(a("0378")),n=o(a("c307"));function o(t){return t&&t.__esModule?t:{default:t}}var c={data:function(){return{type:""}},onLoad:function(){var e=this;t.getStorage({key:"type",success:function(t){e.type=t.data}})},components:{accountindex:r.default,mallindex:i.default,floorindex:s.default,zoneindex:n.default}};e.default=c}).call(this,a("649d")["default"])},3869:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(a("e56f")),i=s(a("0766"));function s(t){return t&&t.__esModule?t:{default:t}}var n={data:function(){return{reportType:"day",date:"",dateText:"",currentYear:[],currentMonth:[],currentWeek:[],yearData:[],monthData:[],weekData:[],picker:{textTitle:"选择",textConfirm:"确定",textCancel:"取消",colorConfirm:"#ffffff",colorCancel:"#ffffff"},title:"",atoken:"",chartIds:"",orgIds:"",keyArr:["CustomerCounting","Customeradd","trend7","trend15","trend30","costomer_ranking"],chartDatas:{},dateTypeArr:[{name:"日报",key:"day"},{name:"周报",key:"week"},{name:"月报",key:"month"},{name:"年报",key:"year"}],isShow:!1,accountId:"",mallId:""}},computed:{},components:{linechart:r.default,toast:i.default},created:function(){var e=this;this.getDateList(),t.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),t.getStorage({key:"orgIds",success:function(t){e.orgIds=t.data}}),t.getStorage({key:"orgName",success:function(t){e.title=t.data}}),t.getStorage({key:"accountId",success:function(t){e.accountId=t.data}}),t.getStorage({key:"mallId",success:function(t){e.mallId=t.data}})},mounted:function(){this.getReportKey(),this.initFresh()},methods:{handleDayConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=t[2].index+1;a=a>9?a:"0"+a,r=r>9?r:"0"+r,this.date=e+"-"+a+"-"+r,this.dateText=e+"-"+a+"-"+r,this.reportType="day",this.getReportKey()},handleWeekConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1;a=a>9?a:"0"+a;var r=new Date;r.setFullYear(e,a-1,1);var i=r.getDay();r.setFullYear(e,a,0);var s,n=r.getDate();s=7-i+1;var o="",c="";if(0==t[2].index){o=e+"-"+a+"-01";var d=s>9?s:"0"+s;c=e+"-"+a+"-"+d}else{var l=s+7*(t[2].index-1)+1;d=s+7*t[2].index;if(l>n){for(var f=t[2].index-1;f>=0;f--)if(l=s+7*(f-1),d=s+7*f,l<=n){d>n&&(d=n);break}}else l<=n&&d>n&&(d=n);l=l>9?l:"0"+l,d=d>9?d:"0"+d,o=e+"-"+a+"-"+l,c=e+"-"+a+"-"+d}this.reportType="week",this.date=o+","+c,this.dateText=o+"至"+c,this.reportType="week",this.getReportKey()},handleMonthConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=(new Date).getFullYear(),i=(new Date).getMonth()+1,s="",n="";if(e==r&&a==i){a=a>9?a:"0"+a,s=e+"-"+a+"-01";var o=(new Date).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}else{a=a>9?a:"0"+a,s=e+"-"+a+"-01";o=new Date(e,a,0).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}this.reportType="month",this.date=s+","+n,this.dateText=s+"至"+n,this.reportType="month",this.getReportKey()},handleYearConfirm:function(t){var e="",a="",r=1900+t[0].index;e=r+"-01-01",a=r+"-12-31",this.reportType="month",this.date=e+","+a,this.dateText=e+"至"+a,this.reportType="year",this.getReportKey()},getDateList:function(){var t=[];this.yearData=[];for(var e=1900;e<2100;e++)t.push(e+"年");this.yearData.push(t);var a=[];for(e=1;e<12;e++){var r=e;e<10&&(r="0"+e),a.push(r+"月")}this.monthData.push(t),this.monthData.push(a);var i=["第一周","第二周","第三周","第四周","第五周"];this.weekData.push(t),this.weekData.push(a),this.weekData.push(i);var s=new Date,n=s.getFullYear(),o={value:n+"年",index:n-1900};this.currentYear.push(o);var c=s.getMonth(),d=(r=c+1>9?c+1:"0"+(c+1),{index:c,value:r+"月"});this.currentMonth.push(o),this.currentMonth.push(d);var l=s.getDay(),f=s.getDate(),u=f>9?f:"0"+f,h=Math.ceil((f+6-l)/7)-1,p={index:h,value:i[h]};this.currentWeek.push(o),this.currentWeek.push(d),this.currentWeek.push(p),this.date=n+"-"+r+"-"+u,this.dateText=n+"-"+r+"-"+u},goList:function(){t.navigateTo({url:"../list/mallList?accountId="+this.accountId+"&atoken="+this.atoken})},goStoreList:function(){t.navigateTo({url:"../list/floorList?mallId="+this.mallId+"&atoken="+this.atoken+"&accountId="+this.accountId})},getReportKey:function(){var e=this,a="";"day"==this.reportType?(a="MallDay",this.keyArr=["customerfeature_denger","customercounting","customeradd","trend15","costomer_ranking","triffic_ranking","gate_triffic","floor_triffic"]):"week"==this.reportType?(a="MallWeek",this.keyArr=["costomerTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"month"==this.reportType?(a="MallMonth",this.keyArr=["trafficAndSaleTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"year"==this.reportType&&(a="MallYear",this.keyArr=["trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","trafficAndSaleDayTrend","CityTraffic"]),t.request({url:"https://store.keliuyun.com/report/reportCharts",data:{report:a,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(t){e.chartIds="",t.data.data.forEach(function(t){"-1"!=e.keyArr.indexOf(t.key)&&(e.chartIds+=t.id+",")}),e.chartIds=e.chartIds.substring(0,e.chartIds.length-1),e.getChartData()}})},getChartData:function(){var e=this,a={},r="https://store.keliuyun.com/report/report/day/mall";if("day"==this.reportType)r="https://store.keliuyun.com/report/report/day/mall",a={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3};else if("week"==this.reportType){var i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/week/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("month"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/month/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("year"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/year/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}t.request({url:r,header:{Authorization:this.atoken},data:a,method:"GET",success:function(t){e.chartDatas=t.data.data.body}})},initFresh:function(){var t=this,e=new MiniRefresh({container:"#minirefresh",down:{callback:function(){t.getChartData(),e.endDownLoading()}},up:{callback:function(){console.log("bb"),e.endUpLoading(!0)}},isScrollBar:!1})},toastClick:function(t){switch(t){case"day":this.$refs.daypicker.show();break;case"week":this.$refs.weekpicker.show();break;case"month":this.$refs.monthpicker.show();break;case"year":console.log(t),this.$refs.yearpicker.show();break}}}};e.default=n}).call(this,a("649d")["default"])},"3d2c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},mounted:function(){console.log("chartData",this.chartData)},watch:{bindId:function(t,e){},chartData:{handler:function(t,e){this.drawLine()},deep:!0}},props:{bindId:{type:String,default:""},chartData:{type:Object,default:function(){return{}}}},methods:{drawLine:function(){var t=this,e={},a=document.getElementById(this.bindId);e=this.echarts.init(a),e.showLoading("default",{text:"",color:"#409eff"});var r={title:{show:!0,text:this.chartData.title,left:"13px",top:"13px",textStyle:{fontWeight:"normal",fontSize:14,color:"#444"}},backgroundColor:"#fff",color:["#0069FF","#3BB8FF","#87D14B","#FFC62E","#FF9631"],tooltip:{triggerOn:"none",position:function(t){return[t[0],130]}},grid:{left:"50px",right:"26px",top:"50px",bottom:"60px"},yAxis:{scale:!0,axisLabel:{textStyle:{color:"#888"}},axisLine:{show:!0,lineStyle:{color:"#888"}},axisTick:{show:!1},splitLine:{lineStyle:{color:"#f5f5f5"}}},xAxis:{axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"#888"}},axisLabel:{textStyle:{color:"#888"}},splitLine:{show:!1}},legend:{orient:"horizontal",x:"center",textStyle:{fontSize:12},itemWidth:12,itemHeight:12,itemGap:15,bottom:12,data:[]},series:this.chartData.series};this.chartData.series.length>1&&this.chartData.series.forEach(function(e,a){var i={};i.name=e.name,r.legend.data.push(i),e.areaStyle={normal:{color:new t.echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:r.color[a]},{offset:1,color:r.color[a]}])}}}),r.xAxis.data=this.chartData.xaxis.data,e.clear(),setTimeout(function(){e.hideLoading()},500),e.setOption(r),console.log(r)}}};e.default=r},4336:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:"indexNav"},[a("toast",{attrs:{typeArr:t.dateTypeArr,toastShow:t.isShow,eventid:"0f6cbbbc-1",mpcomid:"0f6cbbbc-0"},on:{"update:toastShow":function(e){t.isShow=e},handleChange:t.toastClick}},[a("span",{staticClass:"selectReport",attrs:{eventid:"0f6cbbbc-0"},on:{tap:function(e){t.isShow=!0}}},[t._v("日期")])]),t._v(t._s(t.title)),a("span",{staticClass:"searchBtn",attrs:{eventid:"0f6cbbbc-2"},on:{tap:t.goList}},[t._v("门店")])],1),a("div",{staticClass:"minirefresh-wrap",attrs:{id:"minirefresh"}},[a("div",{staticClass:"minirefresh-scroll"},[a("view",{staticClass:"_blank"},[a("text",{staticClass:"dateBox"},[t._v(t._s(t.dateText))])]),a("div",{staticClass:"dataBox"},[a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.mallOpenedCount))]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("当日客流")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.dayInnum))]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("昨日客流")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.yesterdayInnum))]),a("div",{staticClass:"unit"},[t._v("人次")])])]),a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("上周同期")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.dayLastweekInnum))]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("去年同期")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.dayLastyearInnum))]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业面积")]),a("div",{staticClass:"num"},[t._v(t._s(t.headData.mallOpenedArea))]),a("div",{staticClass:"unit"},[t._v("平米")])])])]),"day"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.CustomerCounting,"bind-id":"CustomerCounting",mpcomid:"0f6cbbbc-1"}}):t._e(),"month"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trafficAndSaleTrend,"bind-id":"trafficAndSaleTrend",mpcomid:"0f6cbbbc-2"}}):t._e(),"day"==t.reportType?a("rankchart",{attrs:{"chart-data":t.chartDatas.costomer_ranking,"bind-id":"costomer_ranking",mpcomid:"0f6cbbbc-3"}}):t._e()],1)]),a("awesome-picker",{ref:"daypicker",attrs:{type:"date",textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,eventid:"0f6cbbbc-3",mpcomid:"0f6cbbbc-4"},on:{confirm:t.handleDayConfirm}}),a("awesome-picker",{ref:"weekpicker",attrs:{data:t.weekData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentWeek,eventid:"0f6cbbbc-4",mpcomid:"0f6cbbbc-5"},on:{confirm:t.handleWeekConfirm}}),a("awesome-picker",{ref:"monthpicker",attrs:{data:t.monthData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentMonth,eventid:"0f6cbbbc-5",mpcomid:"0f6cbbbc-6"},on:{confirm:t.handleMonthConfirm}}),a("awesome-picker",{ref:"yearpicker",attrs:{data:t.yearData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentYear,eventid:"0f6cbbbc-6",mpcomid:"0f6cbbbc-7"},on:{confirm:t.handleYearConfirm}})],1)},i=[];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},4372:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(a("e56f")),i=s(a("0766"));function s(t){return t&&t.__esModule?t:{default:t}}var n={data:function(){return{reportType:"day",date:"",dateText:"",currentYear:[],currentMonth:[],currentWeek:[],yearData:[],monthData:[],weekData:[],picker:{textTitle:"选择",textConfirm:"确定",textCancel:"取消",colorConfirm:"#ffffff",colorCancel:"#ffffff"},title:"",atoken:"",chartIds:"",orgIds:"",keyArr:["CustomerCounting","Customeradd","trend7","trend15","trend30","costomer_ranking"],chartDatas:{},dateTypeArr:[{name:"日报",key:"day"},{name:"周报",key:"week"},{name:"月报",key:"month"},{name:"年报",key:"year"}],isShow:!1,accountId:"",mallId:""}},computed:{},components:{linechart:r.default,toast:i.default},created:function(){var e=this;this.getDateList(),t.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),t.getStorage({key:"orgIds",success:function(t){e.orgIds=t.data}}),t.getStorage({key:"orgName",success:function(t){e.title=t.data}}),t.getStorage({key:"accountId",success:function(t){e.accountId=t.data}}),t.getStorage({key:"mallId",success:function(t){e.mallId=t.data}})},mounted:function(){this.getReportKey(),this.initFresh()},methods:{handleDayConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=t[2].index+1;a=a>9?a:"0"+a,r=r>9?r:"0"+r,this.date=e+"-"+a+"-"+r,this.dateText=e+"-"+a+"-"+r,this.reportType="day",this.getReportKey()},handleWeekConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1;a=a>9?a:"0"+a;var r=new Date;r.setFullYear(e,a-1,1);var i=r.getDay();r.setFullYear(e,a,0);var s,n=r.getDate();s=7-i+1;var o="",c="";if(0==t[2].index){o=e+"-"+a+"-01";var d=s>9?s:"0"+s;c=e+"-"+a+"-"+d}else{var l=s+7*(t[2].index-1)+1;d=s+7*t[2].index;if(l>n){for(var f=t[2].index-1;f>=0;f--)if(l=s+7*(f-1),d=s+7*f,l<=n){d>n&&(d=n);break}}else l<=n&&d>n&&(d=n);l=l>9?l:"0"+l,d=d>9?d:"0"+d,o=e+"-"+a+"-"+l,c=e+"-"+a+"-"+d}this.reportType="week",this.date=o+","+c,this.dateText=o+"至"+c,this.reportType="week",this.getReportKey()},handleMonthConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=(new Date).getFullYear(),i=(new Date).getMonth()+1,s="",n="";if(e==r&&a==i){a=a>9?a:"0"+a,s=e+"-"+a+"-01";var o=(new Date).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}else{a=a>9?a:"0"+a,s=e+"-"+a+"-01";o=new Date(e,a,0).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}this.reportType="month",this.date=s+","+n,this.dateText=s+"至"+n,this.reportType="month",this.getReportKey()},handleYearConfirm:function(t){var e="",a="",r=1900+t[0].index;e=r+"-01-01",a=r+"-12-31",this.reportType="month",this.date=e+","+a,this.dateText=e+"至"+a,this.reportType="year",this.getReportKey()},getDateList:function(){var t=[];this.yearData=[];for(var e=1900;e<2100;e++)t.push(e+"年");this.yearData.push(t);var a=[];for(e=1;e<12;e++){var r=e;e<10&&(r="0"+e),a.push(r+"月")}this.monthData.push(t),this.monthData.push(a);var i=["第一周","第二周","第三周","第四周","第五周"];this.weekData.push(t),this.weekData.push(a),this.weekData.push(i);var s=new Date,n=s.getFullYear(),o={value:n+"年",index:n-1900};this.currentYear.push(o);var c=s.getMonth(),d=(r=c+1>9?c+1:"0"+(c+1),{index:c,value:r+"月"});this.currentMonth.push(o),this.currentMonth.push(d);var l=s.getDay(),f=s.getDate(),u=f>9?f:"0"+f,h=Math.ceil((f+6-l)/7)-1,p={index:h,value:i[h]};this.currentWeek.push(o),this.currentWeek.push(d),this.currentWeek.push(p),this.date=n+"-"+r+"-"+u,this.dateText=n+"-"+r+"-"+u},goList:function(){t.navigateTo({url:"../list/mallList?accountId="+this.accountId+"&atoken="+this.atoken})},goStoreList:function(){t.navigateTo({url:"../list/storeList?mallId="+this.mallId+"&atoken="+this.atoken+"&accountId="+this.accountId})},getReportKey:function(){var e=this,a="";"day"==this.reportType?(a="MallDay",this.keyArr=["customerfeature_denger","customercounting","customeradd","trend15","costomer_ranking","triffic_ranking","gate_triffic","floor_triffic"]):"week"==this.reportType?(a="MallWeek",this.keyArr=["costomerTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"month"==this.reportType?(a="MallMonth",this.keyArr=["trafficAndSaleTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"year"==this.reportType&&(a="MallYear",this.keyArr=["trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","trafficAndSaleDayTrend","CityTraffic"]),t.request({url:"https://store.keliuyun.com/report/reportCharts",data:{report:a,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(t){e.chartIds="",t.data.data.forEach(function(t){"-1"!=e.keyArr.indexOf(t.key)&&(e.chartIds+=t.id+",")}),e.chartIds=e.chartIds.substring(0,e.chartIds.length-1),e.getChartData()}})},getChartData:function(){var e=this,a={},r="https://store.keliuyun.com/report/report/day/mall";if("day"==this.reportType)r="https://store.keliuyun.com/report/report/day/mall",a={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3};else if("week"==this.reportType){var i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/week/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("month"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/month/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("year"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/year/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}t.request({url:r,header:{Authorization:this.atoken},data:a,method:"GET",success:function(t){e.chartDatas=t.data.data.body}})},initFresh:function(){var t=this,e=new MiniRefresh({container:"#minirefresh",down:{callback:function(){t.getChartData(),e.endDownLoading()}},up:{callback:function(){console.log("bb"),e.endUpLoading(!0)}},isScrollBar:!1})},toastClick:function(t){switch(t){case"day":this.$refs.daypicker.show();break;case"week":this.$refs.weekpicker.show();break;case"month":this.$refs.monthpicker.show();break;case"year":console.log(t),this.$refs.yearpicker.show();break}}}};e.default=n}).call(this,a("649d")["default"])},"46dd":function(t,e,a){"use strict";a("eb2b");var r=s(a("b0ce")),i=s(a("64d3"));function s(t){return t&&t.__esModule?t:{default:t}}Page((0,r.default)(i.default))},"51be":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("div",{staticStyle:{position:"relative"}},[t._t("default",null,{mpcomid:"ebdd0886-0"}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.toastShow,expression:"toastShow"}],staticClass:"toast"},[a("div",{staticClass:"toastContent"},[a("div",{staticClass:"arrow"}),t._l(t.typeArr,function(e,r){return a("span",{staticClass:"typeBox",attrs:{eventid:"ebdd0886-0-"+r},on:{tap:function(a){t.itemClick(e.key)}}},[t._v(t._s(e.name))])})],2)])],2),t.toastShow?a("div",{staticClass:"dialog",attrs:{eventid:"ebdd0886-1"},on:{tap:function(e){t.$emit("update:toastShow",!1)}}}):t._e()])},i=[];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},5487:function(t,e,a){},"576d":function(t,e,a){"use strict";a.r(e);var r=a("32bc"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"57cb":function(t,e,a){"use strict";var r=a("5487"),i=a.n(r);i.a},"61bf":function(t,e,a){"use strict";a.r(e);var r=a("3869"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"64d3":function(t,e,a){"use strict";a.r(e);var r=a("099c"),i=a("576d");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},"6a35":function(t,e,a){"use strict";a.r(e);var r=a("c0ab"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"6c57":function(t,e,a){"use strict";a.r(e);var r=a("0dcc"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"6f57":function(t,e,a){"use strict";var r=a("af10"),i=a.n(r);i.a},7366:function(t,e,a){"use strict";var r=a("04dd"),i=a.n(r);i.a},"89f6":function(t,e,a){"use strict";a.r(e);var r=a("4372"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"8c48":function(t,e,a){"use strict";var r=a("fd97"),i=a.n(r);i.a},"8e0a":function(t,e,a){"use strict";a.r(e);var r=a("02e9"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},"93fa":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:"indexNav"},[a("toast",{attrs:{typeArr:t.dateTypeArr,toastShow:t.isShow,eventid:"7f80d532-1",mpcomid:"7f80d532-0"},on:{"update:toastShow":function(e){t.isShow=e},handleChange:t.toastClick}},[a("span",{staticClass:"selectReport",attrs:{eventid:"7f80d532-0"},on:{tap:function(e){t.isShow=!0}}},[t._v("日期")])]),t._v(t._s(t.title)),a("image",{staticClass:"searchIcon",attrs:{src:"../../static/index/searchIcon.png",mode:"",eventid:"7f80d532-2"},on:{tap:t.goFloorList}}),a("span",{staticClass:"searchBtn",attrs:{eventid:"7f80d532-3"},on:{tap:t.goList}},[t._v("门店")])],1),a("div",{staticClass:"minirefresh-wrap",attrs:{id:"minirefresh"}},[a("div",{staticClass:"minirefresh-scroll"},[a("view",{staticClass:"_blank"},[a("text",{staticClass:"dateBox"},[t._v(t._s(t.dateText))])]),t._m(0),"day"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trend15,"bind-id":"trend15",mpcomid:"7f80d532-1"}}):t._e(),"month"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trafficAndSaleTrend,"bind-id":"trafficAndSaleTrend",mpcomid:"7f80d532-2"}}):t._e()],1)]),a("awesome-picker",{ref:"daypicker",attrs:{type:"date",textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,eventid:"7f80d532-4",mpcomid:"7f80d532-3"},on:{confirm:t.handleDayConfirm}}),a("awesome-picker",{ref:"weekpicker",attrs:{data:t.weekData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentWeek,eventid:"7f80d532-5",mpcomid:"7f80d532-4"},on:{confirm:t.handleWeekConfirm}}),a("awesome-picker",{ref:"monthpicker",attrs:{data:t.monthData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentMonth,eventid:"7f80d532-6",mpcomid:"7f80d532-5"},on:{confirm:t.handleMonthConfirm}}),a("awesome-picker",{ref:"yearpicker",attrs:{data:t.yearData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentYear,eventid:"7f80d532-7",mpcomid:"7f80d532-6"},on:{confirm:t.handleYearConfirm}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dataBox"},[a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("当日客流")]),a("div",{staticClass:"num"},[t._v("1161")]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("昨日客流")]),a("div",{staticClass:"num"},[t._v("2925")]),a("div",{staticClass:"unit"},[t._v("人次")])])]),a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])])])])}];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},9608:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",{staticClass:"linechart"},[a("div",{staticClass:"chart",attrs:{id:t.bindId}})])},i=[];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},"99e1":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(a("e56f")),i=s(a("0766"));function s(t){return t&&t.__esModule?t:{default:t}}var n={data:function(){return{reportType:"day",date:"",dateText:"",currentYear:[],currentMonth:[],currentWeek:[],yearData:[],monthData:[],weekData:[],picker:{textTitle:"选择",textConfirm:"确定",textCancel:"取消",colorConfirm:"#ffffff",colorCancel:"#ffffff"},title:"",atoken:"",chartIds:"",orgIds:"",keyArr:["CustomerCounting","Customeradd","trend7","trend15","trend30","costomer_ranking"],chartDatas:{},dateTypeArr:[{name:"日报",key:"day"},{name:"周报",key:"week"},{name:"月报",key:"month"},{name:"年报",key:"year"}],isShow:!1,accountId:""}},computed:{},components:{linechart:r.default,toast:i.default},created:function(){var e=this;this.getDateList(),t.getStorage({key:"atoken",success:function(t){e.atoken=t.data}}),t.getStorage({key:"orgIds",success:function(t){e.orgIds=t.data}}),t.getStorage({key:"orgName",success:function(t){e.title=t.data}}),t.getStorage({key:"accountId",success:function(t){e.accountId=t.data}}),t.setStorage({key:"mallId",data:this.orgIds})},mounted:function(){this.getReportKey(),this.initFresh()},methods:{handleDayConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=t[2].index+1;a=a>9?a:"0"+a,r=r>9?r:"0"+r,this.date=e+"-"+a+"-"+r,this.dateText=e+"-"+a+"-"+r,this.reportType="day",this.getReportKey()},handleWeekConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1;a=a>9?a:"0"+a;var r=new Date;r.setFullYear(e,a-1,1);var i=r.getDay();r.setFullYear(e,a,0);var s,n=r.getDate();s=7-i+1;var o="",c="";if(0==t[2].index){o=e+"-"+a+"-01";var d=s>9?s:"0"+s;c=e+"-"+a+"-"+d}else{var l=s+7*(t[2].index-1)+1;d=s+7*t[2].index;if(l>n){for(var f=t[2].index-1;f>=0;f--)if(l=s+7*(f-1),d=s+7*f,l<=n){d>n&&(d=n);break}}else l<=n&&d>n&&(d=n);l=l>9?l:"0"+l,d=d>9?d:"0"+d,o=e+"-"+a+"-"+l,c=e+"-"+a+"-"+d}this.reportType="week",this.date=o+","+c,this.dateText=o+"至"+c,this.reportType="week",this.getReportKey()},handleMonthConfirm:function(t){var e=1900+t[0].index,a=t[1].index+1,r=(new Date).getFullYear(),i=(new Date).getMonth()+1,s="",n="";if(e==r&&a==i){a=a>9?a:"0"+a,s=e+"-"+a+"-01";var o=(new Date).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}else{a=a>9?a:"0"+a,s=e+"-"+a+"-01";o=new Date(e,a,0).getDate();o=o>9?o:"0"+o,n=e+"-"+a+"-"+o}this.reportType="month",this.date=s+","+n,this.dateText=s+"至"+n,this.reportType="month",this.getReportKey()},handleYearConfirm:function(t){var e="",a="",r=1900+t[0].index;e=r+"-01-01",a=r+"-12-31",this.reportType="month",this.date=e+","+a,this.dateText=e+"至"+a,this.reportType="year",this.getReportKey()},getDateList:function(){var t=[];this.yearData=[];for(var e=1900;e<2100;e++)t.push(e+"年");this.yearData.push(t);var a=[];for(e=1;e<12;e++){var r=e;e<10&&(r="0"+e),a.push(r+"月")}this.monthData.push(t),this.monthData.push(a);var i=["第一周","第二周","第三周","第四周","第五周"];this.weekData.push(t),this.weekData.push(a),this.weekData.push(i);var s=new Date,n=s.getFullYear(),o={value:n+"年",index:n-1900};this.currentYear.push(o);var c=s.getMonth(),d=(r=c+1>9?c+1:"0"+(c+1),{index:c,value:r+"月"});this.currentMonth.push(o),this.currentMonth.push(d);var l=s.getDay(),f=s.getDate(),u=f>9?f:"0"+f,h=Math.ceil((f+6-l)/7)-1,p={index:h,value:i[h]};this.currentWeek.push(o),this.currentWeek.push(d),this.currentWeek.push(p),this.date=n+"-"+r+"-"+u,this.dateText=n+"-"+r+"-"+u},goList:function(){t.navigateTo({url:"../list/mallList?accountId="+this.accountId+"&atoken="+this.atoken})},goFloorList:function(){t.navigateTo({url:"../list/floorList?mallId="+this.orgIds+"&atoken="+this.atoken+"&accountId="+this.accountId})},getReportKey:function(){var e=this,a="";"day"==this.reportType?(a="MallDay",this.keyArr=["customerfeature_denger","customercounting","customeradd","trend15","costomer_ranking","triffic_ranking","gate_triffic","floor_triffic"]):"week"==this.reportType?(a="MallWeek",this.keyArr=["costomerTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"month"==this.reportType?(a="MallMonth",this.keyArr=["trafficAndSaleTrend","trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","CityTraffic"]):"year"==this.reportType&&(a="MallYear",this.keyArr=["trifficRank","format_traffic_ranking","customerfeature_gender","customerfeature_age","trafficAndSaleDayTrend","CityTraffic"]),t.request({url:"https://store.keliuyun.com/report/reportCharts",data:{report:a,_t:Date.parse(new Date)/1e3},header:{Authorization:this.atoken},method:"GET",success:function(t){e.chartIds="",t.data.data.forEach(function(t){"-1"!=e.keyArr.indexOf(t.key)&&(e.chartIds+=t.id+",")}),e.chartIds=e.chartIds.substring(0,e.chartIds.length-1),e.getChartData()}})},getChartData:function(){var e=this,a={},r="https://store.keliuyun.com/report/report/day/mall";if("day"==this.reportType)r="https://store.keliuyun.com/report/report/day/mall",a={orgIds:this.orgIds,date:this.date,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3};else if("week"==this.reportType){var i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/week/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("month"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/month/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}else if("year"==this.reportType){i=this.date.split(",")[0],s=this.date.split(",")[1];r="https://store.keliuyun.com/report/report/year/mall",a={orgIds:this.orgIds,startDate:i,endDate:s,chartIds:this.chartIds,_t:Date.parse(new Date)/1e3}}t.request({url:r,header:{Authorization:this.atoken},data:a,method:"GET",success:function(t){e.chartDatas=t.data.data.body}})},initFresh:function(){var t=this,e=new MiniRefresh({container:"#minirefresh",down:{callback:function(){t.getChartData(),e.endDownLoading()}},up:{callback:function(){console.log("bb"),e.endUpLoading(!0)}},isScrollBar:!1})},toastClick:function(t){switch(t){case"day":this.$refs.daypicker.show();break;case"week":this.$refs.weekpicker.show();break;case"month":this.$refs.monthpicker.show();break;case"year":console.log(t),this.$refs.yearpicker.show();break}}}};e.default=n}).call(this,a("649d")["default"])},"9deb":function(t,e,a){"use strict";a.r(e);var r=a("93fa"),i=a("b86c");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("ef18");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},a643:function(t,e,a){"use strict";var r=a("2dc0"),i=a.n(r);i.a},a880:function(t,e,a){"use strict";a.r(e);var r=a("3d2c"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},af10:function(t,e,a){},b86c:function(t,e,a){"use strict";a.r(e);var r=a("99e1"),i=a.n(r);for(var s in r)"default"!==s&&function(t){a.d(e,t,function(){return r[t]})}(s);e["default"]=i.a},c0ab:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},mounted:function(){},watch:{bindId:function(t,e){},chartData:{handler:function(t,e){this.drawRank()},deep:!0}},props:{bindId:{type:String,default:""},chartData:{type:Object,default:function(){return{}}}},methods:{drawRank:function(){var e={},a=document.getElementById(this.bindId);e=this.echarts.init(a),e.showLoading("default",{text:"",color:"#409eff"});var r={title:{show:!0,text:this.chartData.title,left:"13px",top:"13px",textStyle:{fontWeight:"normal",fontSize:14,color:"#444"}},tooltip:{trigger:"axis",backgroundColor:"#fff",padding:[0,0,0,0],textStyle:{color:"#333333"},axisPointer:{type:"line",lineStyle:{color:"transparent"}},extraCssText:"box-shadow: 0px 0px 10px -4px rgba(3, 3, 3, .4)"},grid:{left:"56px",right:"36px",top:"66px",bottom:"20px"},yAxis:JSON.parse(JSON.stringify(this.chartData.yaxis)),xAxis:{axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},series:JSON.parse(JSON.stringify(this.chartData.series))};try{this.autoComplete(r.yAxis.data.length,r.yAxis.data,"string")}catch(u){}var i=[];try{r.yAxis.axisTick={},r.yAxis.axisTick.show=!1,r.yAxis.inverse=!0,r.yAxis.axisLine={show:!1},r.yAxis.splitLine={normal:{show:!1},emphasis:{show:!1}};var s="";t.getSystemInfo({success:function(t){s=t.windowWidth-150}});var n=6,o=0;r.yAxis.data.length>o&&(o=r.yAxis.data.length),r.yAxis.axisLabel={margin:40,interval:0,padding:[0,0,10,0],verticalAlign:"bottom",textStyle:{align:"left",color:"#666666"},formatter:function(t,e){var a=e+1,r="";return r=1==a?"{firstLabel|"+a+"} {valueLabel|"+t+"}":2==a?"{secondLabel|"+a+"} {valueLabel|"+t+"}":3==a?"{thirdLabel|"+a+"} {valueLabel|"+t+"}":"{normalLabel|"+a+"} {valueLabel|"+t+"}",r},rich:{firstLabel:{width:18,height:18,align:"center",color:"#fff",fontSize:12,backgroundColor:"#EB6100"},secondLabel:{width:18,height:18,align:"center",color:"#fff",fontSize:12,backgroundColor:"#FF9631"},thirdLabel:{width:18,height:18,align:"center",color:"#fff",fontSize:12,backgroundColor:"#FFC62E"},normalLabel:{width:18,height:18,fontSize:12,align:"center",color:"#666666"},valueLabel:{height:18,padding:[0,0,0,20],align:"left",color:"#666",fontSize:12}}}}catch(u){}if(r.series){for(var c=0;c<r.series.length;c++)this.autoComplete(r.series[c].data.length,r.series[c].data),r.series[c].label={normal:{show:!0,position:[s,-20],fontSize:12,textStyle:{color:"#666666"}},emphasis:{show:!0,position:[s,-20],fontSize:12,textStyle:{color:"#666666"}}},r.series[c].itemStyle={normal:{barBorderRadius:18,color:"#3BB8FF"},emphasis:{barBorderRadius:18,color:"#0069FF"}},r.tooltip.formatter=function(t,e,a){if(t[0].data){var i="",s="",n="";s=t[0].data||0==t[0].data?t[0].data>=1e5?(t[0].data/1e4).toFixed(2):t[0].data:"--",/^costomer_ranking$/.test(r.seriesText)||/^format_costomer_ranking$/.test(r.seriesText)||/^trifficRank$/.test(r.seriesText)||/^format_traffic_ranking$/.test(r.seriesText)||/^trafficRank$/.test(r.seriesText)?(i="客流量",n=t[0].data>=1e5?"万人次":"人次"):/^sale_ranking$/.test(r.seriesText)||/^format_sell_ranking$/.test(r.seriesText)||/^saleRank$/.test(r.seriesText)||/^format_sale_ranking$/.test(r.seriesText)?(i="销售额",n=t[0].data>=1e5?"万元":"元"):/^areaEffRank$/.test(r.seriesText)||/^perSquareMeterRank$/.test(r.seriesText)?(i="坪效",n=t[0].data>=1e5?"万元/平米":"元/平米"):/^durationtimeRank$/.test(r.seriesText)||/^dwellTimeRank$/.test(r.seriesText)||/^durationTimeRank$/.test(r.seriesText)?(i="滞留时间",s=t[0].data>=1?t[0].data:60*t[0].data,n=t[0].data>=1?"小时":"分"):/^order_ranking$/.test(r.seriesText)?(i="成单数",n=t[0].data>=1e5?"万次":"次"):/^depth_ranking$/.test(r.seriesText)||/^depthRank$/.test(r.seriesText)?(i="游逛深度",n=t[0].data>=1e5?"万个":"个"):/^preprice_ranking$/.test(r.seriesText)||/^prePriceRank$/.test(r.seriesText)||/^perTransactionRank$/.test(r.seriesText)?(i="客单价",n=t[0].data>=1e5?"万元/人":"元/人"):/^turnoverRank$/.test(r.seriesText)?(i="成交量",n=t[0].data>=1e5?"万单":"单"):/^handbagRateRank$/.test(r.seriesText)?(i="提袋率",n="%"):/^format_enteringrate_ranking$/.test(r.seriesText)||/^enteringRateRank$/.test(r.seriesText)?(i="进店率",n="%"):(i="--",n="--");var o="";return o+='<div style="font-size:16px;height:31px;color:#0068FF;border-radius:4px;line-height:31px;padding-left:15px; padding-right: 15px;">'+t[0].name+'</div><div><p style="font-size:14px;padding:4px 15px 6px;color:#444444;">'+i+" : "+s+n+"</p></div>",o}},r.series[c].barWidth=n;var d=0,l=100;for(c=0;c<r.series[0].data.length;c++)"string"!==typeof r.series[0].data[c]||d?d<r.series[0].data[c]&&(d=r.series[0].data[c]):d=l;for(c=0;c<r.series[0].data.length;c++)i[c]=d;var f={type:"bar",z:0,itemStyle:{normal:{color:"#f5f5f5",barBorderRadius:18},emphasis:{color:"#f5f5f5",barBorderRadius:18}},label:{show:!1},barWidth:n,barGap:"-100%",barCategoryGap:"40%",data:i,animation:!1};r.series.push(f),r.xAxis.max="dataMax",e.clear(),setTimeout(function(){e.hideLoading()},500),e.setOption(r)}},autoComplete:function(t,e,a){if(t<10)for(var r=0;r<10;r++)e[r]||0==e[r]||(e[r]="");return e}}};e.default=a}).call(this,a("649d")["default"])},c307:function(t,e,a){"use strict";a.r(e);var r=a("ddc8"),i=a("89f6");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("7366");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},ce17:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:"indexNav"},[a("toast",{attrs:{typeArr:t.dateTypeArr,toastShow:t.isShow,eventid:"12e9cefd-1",mpcomid:"12e9cefd-0"},on:{"update:toastShow":function(e){t.isShow=e},handleChange:t.toastClick}},[a("span",{staticClass:"selectReport",attrs:{eventid:"12e9cefd-0"},on:{tap:function(e){t.isShow=!0}}},[t._v("日期")])]),t._v(t._s(t.title)),a("image",{staticClass:"searchIcon",attrs:{src:"../../static/index/searchIcon.png",mode:"",eventid:"12e9cefd-2"},on:{tap:t.goStoreList}}),a("span",{staticClass:"searchBtn",attrs:{eventid:"12e9cefd-3"},on:{tap:t.goList}},[t._v("门店")])],1),a("div",{staticClass:"minirefresh-wrap",attrs:{id:"minirefresh"}},[a("div",{staticClass:"minirefresh-scroll"},[a("view",{staticClass:"_blank"},[a("text",{staticClass:"dateBox"},[t._v(t._s(t.dateText))])]),t._m(0),"day"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trend15,"bind-id":"trend15",mpcomid:"12e9cefd-1"}}):t._e(),"month"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trafficAndSaleTrend,"bind-id":"trafficAndSaleTrend",mpcomid:"12e9cefd-2"}}):t._e()],1)]),a("awesome-picker",{ref:"daypicker",attrs:{type:"date",textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,eventid:"12e9cefd-4",mpcomid:"12e9cefd-3"},on:{confirm:t.handleDayConfirm}}),a("awesome-picker",{ref:"weekpicker",attrs:{data:t.weekData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentWeek,eventid:"12e9cefd-5",mpcomid:"12e9cefd-4"},on:{confirm:t.handleWeekConfirm}}),a("awesome-picker",{ref:"monthpicker",attrs:{data:t.monthData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentMonth,eventid:"12e9cefd-6",mpcomid:"12e9cefd-5"},on:{confirm:t.handleMonthConfirm}}),a("awesome-picker",{ref:"yearpicker",attrs:{data:t.yearData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentYear,eventid:"12e9cefd-7",mpcomid:"12e9cefd-6"},on:{confirm:t.handleYearConfirm}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dataBox"},[a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("当日客流")]),a("div",{staticClass:"num"},[t._v("1161")]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("昨日客流")]),a("div",{staticClass:"num"},[t._v("2925")]),a("div",{staticClass:"unit"},[t._v("人次")])])]),a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])])])])}];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},d182:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",{staticClass:"rankchart"},[a("div",{staticClass:"chart",attrs:{id:t.bindId}})])},i=[];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},d2c6:function(t,e,a){"use strict";a.r(e);var r=a("d182"),i=a("6a35");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("243d");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},ddc8:function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("view",[a("view",{staticClass:"indexNav"},[a("toast",{attrs:{typeArr:t.dateTypeArr,toastShow:t.isShow,eventid:"53e436cf-1",mpcomid:"53e436cf-0"},on:{"update:toastShow":function(e){t.isShow=e},handleChange:t.toastClick}},[a("span",{staticClass:"selectReport",attrs:{eventid:"53e436cf-0"},on:{tap:function(e){t.isShow=!0}}},[t._v("日期")])]),t._v(t._s(t.title)),a("image",{staticClass:"searchIcon",attrs:{src:"../../static/index/searchIcon.png",mode:"",eventid:"53e436cf-2"},on:{tap:t.goStoreList}}),a("span",{staticClass:"searchBtn",attrs:{eventid:"53e436cf-3"},on:{tap:t.goList}},[t._v("门店")])],1),a("div",{staticClass:"minirefresh-wrap",attrs:{id:"minirefresh"}},[a("div",{staticClass:"minirefresh-scroll"},[a("view",{staticClass:"_blank"},[a("text",{staticClass:"dateBox"},[t._v(t._s(t.dateText))])]),t._m(0),"day"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trend15,"bind-id":"trend15",mpcomid:"53e436cf-1"}}):t._e(),"month"==t.reportType?a("linechart",{attrs:{"chart-data":t.chartDatas.trafficAndSaleTrend,"bind-id":"trafficAndSaleTrend",mpcomid:"53e436cf-2"}}):t._e()],1)]),a("awesome-picker",{ref:"daypicker",attrs:{type:"date",textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,eventid:"53e436cf-4",mpcomid:"53e436cf-3"},on:{confirm:t.handleDayConfirm}}),a("awesome-picker",{ref:"weekpicker",attrs:{data:t.weekData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentWeek,eventid:"53e436cf-5",mpcomid:"53e436cf-4"},on:{confirm:t.handleWeekConfirm}}),a("awesome-picker",{ref:"monthpicker",attrs:{data:t.monthData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentMonth,eventid:"53e436cf-6",mpcomid:"53e436cf-5"},on:{confirm:t.handleMonthConfirm}}),a("awesome-picker",{ref:"yearpicker",attrs:{data:t.yearData,textConfirm:t.picker.textConfirm,colorConfirm:t.picker.colorConfirm,textCancel:t.picker.textCancel,colorCancel:t.picker.colorCancel,anchor:t.currentYear,eventid:"53e436cf-7",mpcomid:"53e436cf-6"},on:{confirm:t.handleYearConfirm}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dataBox"},[a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("当日客流")]),a("div",{staticClass:"num"},[t._v("1161")]),a("div",{staticClass:"unit"},[t._v("人次")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("昨日客流")]),a("div",{staticClass:"num"},[t._v("2925")]),a("div",{staticClass:"unit"},[t._v("人次")])])]),a("span",{staticClass:"flexBox"},[a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])]),a("span",{staticClass:"boxs"},[a("div",{staticClass:"littleTit"},[t._v("已开业商场数量")]),a("div",{staticClass:"num"},[t._v("20")]),a("div",{staticClass:"unit"},[t._v("座")])])])])}];a.d(e,"a",function(){return r}),a.d(e,"b",function(){return i})},e56f:function(t,e,a){"use strict";a.r(e);var r=a("9608"),i=a("a880");for(var s in i)"default"!==s&&function(t){a.d(e,t,function(){return i[t]})}(s);a("6f57");var n=a("2877"),o=Object(n["a"])(i["default"],r["a"],r["b"],!1,null,null,null);e["default"]=o.exports},ef18:function(t,e,a){"use strict";var r=a("f8f7"),i=a.n(r);i.a},f8f7:function(t,e,a){},fd97:function(t,e,a){}},[["46dd","common/runtime","common/vendor"]]]);