You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
46 KiB
1 lines
46 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-22a41c7a"],{"0b66":function(t,e,r){"use strict";r("9d5a")},"11bd":function(t,e,r){"use strict";r("cef4")},"146a":function(t,e,r){"use strict";r("5b4c")},"179c":function(t,e,r){},"365c":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"e",(function(){return a})),r.d(e,"d",(function(){return s})),r.d(e,"a",(function(){return c}));var n=r("b6bd");function o(){return Object(n.a)({url:"home/header",method:"get"})}function i(t){return Object(n.a)({url:"home/order",method:"get",params:t})}function a(){return Object(n.a)({url:"home/user",method:"get"})}function s(){return Object(n.a)({url:"home/rank",method:"get"})}function c(){return Object(n.a)({url:"check_auth",method:"get"})}},4434:function(t,e,r){"use strict";r("673f")},"4ca0":function(t,e,r){"use strict";r("f521")},"533d":function(t,e,r){},"5b4c":function(t,e,r){},"673f":function(t,e,r){},"7a23":function(t,e,r){},"7ca2":function(t,e,r){"use strict";r("533d")},9901:function(t,e,r){"use strict";var n=r("313e"),o=r.n(n),i={name:"index",props:{infoList:{type:Object,default:null},styles:{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(){var t=this;this.myChart=o.a.init(document.getElementById(this.echarts));var e=null;e="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:this.infoLists.bing_xdata||[]},series:[{name:"",type:"pie",radius:"60%",center:["50%","50%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:"circle1"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{icon:"circle",top:"5%",left:"center",fontSize:"12",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!0,formatter:"{d}%",position:"inner",fontSize:"12"},emphasis:{label:{show:!0,fontSize:"15",fontWeight:"bold"}},labelLine:{show:!1},data:this.infoLists.bing_data||[]}]}:"inlie"===this.echartsTitle?{tooltip:{trigger:"axis"},toolbox:{},legend:{icon:"line",left:"left",fontWeight:"100",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}:{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},setTimeout((function(){t.wsFunc(),t.myChart.setOption(e,!0)}),200)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},a=(r("7ca2"),r("2877")),s=Object(a.a)(i,(function(){var t=this._self._c;return t("div",[t("div",{staticClass:"styles",style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"e03fd378",null);e.a=s.exports},"9d5a":function(t,e,r){},b4c3:function(t,e,r){"use strict";r("179c")},cd00:function(t,e,r){"use strict";r("7a23")},cef4:function(t,e,r){},f521:function(t,e,r){},f75a:function(t,e,r){"use strict";r.r(e);var n=r("313e"),o=r.n(n),i=r("365c");function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new F(n||[]);return o(a,"_invoke",{value:O(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",g="completed",m={};function b(){}function w(){}function x(){}var C={};h(C,c,(function(){return this}));var L=Object.getPrototypeOf,_=L&&L(L(D([])));_&&_!==r&&n.call(_,c)&&(C=_);var k=x.prototype=b.prototype=Object.create(C);function S(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,s,c){var u=d(t[o],t,i);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==a(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?g:y,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=x,o(k,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=h(x,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,h(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(E.prototype),h(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),h(k,l,"Generator"),h(k,c,(function(){return this})),h(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function c(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}var u={data:function(){return{infoList:[],grid:{xl:6,lg:12,md:12,sm:12,xs:24},excessStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},avatarList:[]}},methods:{getStatistics:function(){var t=this;Object(i.b)().then(function(){var e,r=(e=s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.infoList=n.info;case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}},mounted:function(){this.getStatistics()}},l=(r("0b66"),r("2877")),h=Object(l.a)(u,(function(){var t=this,e=t._self._c;return e("Row",{attrs:{gutter:24}},t._l(t.infoList,(function(r,n){return e("Col",t._b({key:n,staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1,"dis-hover":"",padding:12}},[e("p",{attrs:{slot:"title"},slot:"title"},[e("span",{domProps:{textContent:t._s(r.title)}})]),e("Tag",{attrs:{slot:"extra",color:"green"},slot:"extra"},[t._v(t._s(r.date))]),e("div",[e("Numeral",{directives:[{name:"font",rawName:"v-font",value:30,expression:"30"}],attrs:{value:r.today}}),e("div",{directives:[{name:"height",rawName:"v-height",value:42,expression:"42"}],staticClass:"ivu-pt-8"},[e("span",{directives:[{name:"display",rawName:"v-display",value:"inline-block",expression:"'inline-block'"}]},[t._v("\n\t\t\t\t\t\t 昨日 "+t._s(Number(r.yesterday))+" "),e("span",{staticClass:"nl"})]),e("span",{directives:[{name:"display",rawName:"v-display",value:"inline-block",expression:"'inline-block'"}],staticClass:"ivu-mr"},[t._v("\n 日环比 "+t._s(Number(r.today_ratio))+"% "),e("Icon",{staticClass:"iconColor",class:Number(r.today_ratio)>=0?" ":"on",attrs:{type:Number(r.today_ratio)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)]),e("Divider",{staticStyle:{margin:"8px 0"}}),e("div",[e("Row",[e("Col",{attrs:{span:"12"},domProps:{textContent:t._s(r.total_name)}}),e("Col",{staticClass:"ivu-text-right",attrs:{span:"12"}},[t._v(t._s(r.total))])],1)],1)],1)],1)],1)})),1)}),[],!1,null,null,null).exports,f=r("d708"),d={data:function(){return{roterPre:f.a.roterPre,grid:{xl:3,lg:6,md:6,sm:8,xs:8}}}},p=(r("b4c3"),Object(l.a)(d,(function(){var t=this,e=t._self._c;return e("Row",{staticClass:"dashboard-console-grid",attrs:{gutter:24}},[e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/user/list")}}},[e("Icon",{attrs:{type:"md-people",color:"#69c0ff"}}),e("p",[t._v("用户管理")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/setting/shop/base")}}},[e("Icon",{attrs:{type:"md-settings",color:"#95de64"}}),e("p",[t._v("系统设置")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/product/product_list")}}},[e("Icon",{attrs:{type:"md-cart",color:"#ff9c6e"}}),e("p",[t._v("商品")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/order/list")}}},[e("Icon",{attrs:{type:"md-clipboard",color:"#b37feb"}}),e("p",[t._v("订单管理")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/setting/notification/index")}}},[e("Icon",{attrs:{type:"md-chatboxes",color:"#ffd666"}}),e("p",[t._v("消息配置")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/cms/article/index")}}},[e("Icon",{attrs:{type:"md-card",color:"#5cdbd3"}}),e("p",[t._v("文章管理")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/agent/agent_manage/index")}}},[e("Icon",{attrs:{type:"md-pricetags",color:"#ff85c0"}}),e("p",[t._v("分销管理")])],1)],1)],1),e("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[e("Card",{attrs:{bordered:!1}},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/marketing/store_coupon_issue/index")}}},[e("Icon",{attrs:{type:"md-cash",color:"#ffc069"}}),e("p",[t._v("优惠券")])],1)],1)],1)],1)}),[],!1,null,null,null).exports),y=r("9901");function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),s=new F(n||[]);return o(a,"_invoke",{value:O(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",m={};function b(){}function w(){}function x(){}var C={};u(C,a,(function(){return this}));var L=Object.getPrototypeOf,_=L&&L(L(D([])));_&&_!==r&&n.call(_,a)&&(C=_);var k=x.prototype=b.prototype=Object.create(C);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==v(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=f;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?y:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(v(e)+" is not iterable")}return w.prototype=x,o(k,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=u(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(E.prototype),u(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function m(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}var b={components:{echartsFrom:y.a},data:function(){return{infoList:null,visitDate:"thirtyday",series:[],yAxisData:[]}},methods:{getStatistics:function(){var t=this,e={cycle:this.visitDate};Object(i.c)(e).then(function(){var e,r=(e=g().mark((function e(r){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=r.data||{},t.series=t.infoList.series||[],t.yAxisData=[{type:"value",name:"金额",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},{type:"value",name:"数量",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}];case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){m(i,n,o,a,s,"next",t)}function s(t){m(i,n,o,a,s,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleChangeVisitType:function(){this.getStatistics()},handleResize:function(){this.infoList&&this.$refs.visitChart.handleResize()}},created:function(){var t=this;this.$nextTick((function(){t.getStatistics()}))}},w=(r("cd00"),Object(l.a)(b,(function(){var t=this,e=t._self._c;return e("div",{on:{resize:t.handleResize}},[e("Row",{attrs:{gutter:24}},[e("Col",{staticClass:"ivu-mb",attrs:{span:"24"}},[e("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[e("Col",{attrs:{span:"8"}},[e("Avatar",{staticStyle:{color:"#1890ff","background-color":"#e6f7ff"},attrs:{icon:"ios-podium",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("订单")])],1),e("Col",{staticClass:"ivu-text-right",attrs:{span:"16"}},[e("RadioGroup",{staticClass:"ivu-mr-8",attrs:{type:"button"},on:{"on-change":t.handleChangeVisitType},model:{value:t.visitDate,callback:function(e){t.visitDate=e},expression:"visitDate"}},[e("Radio",{attrs:{label:"thirtyday"}},[t._v("30天")]),e("Radio",{attrs:{label:"week"}},[t._v("周")]),e("Radio",{attrs:{label:"month"}},[t._v("月")]),e("Radio",{attrs:{label:"year"}},[t._v("年")])],1)],1)],1)],1),e("h4",[t._v("订单量趋势")]),e("Row",{attrs:{gutter:24}},[e("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t.infoList?e("echarts-from",{ref:"visitChart",attrs:{series:t.series,infoList:t.infoList,yAxisData:t.yAxisData}}):t._e()],1)],1)],1)],1)],1)],1)}),[],!1,null,"4e806412",null).exports);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */C=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new F(n||[]);return o(a,"_invoke",{value:O(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",y="completed",v={};function g(){}function m(){}function b(){}var w={};u(w,a,(function(){return this}));var L=Object.getPrototypeOf,_=L&&L(L(D([])));_&&_!==r&&n.call(_,a)&&(w=_);var k=b.prototype=g.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==x(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=f;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?y:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(x(e)+" is not iterable")}return m.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(E.prototype),u(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=D,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function L(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function _(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){L(i,n,o,a,s,"next",t)}function s(t){L(i,n,o,a,s,"throw",t)}a(void 0)}))}}var k={name:"user-chart",components:{echartsFrom:y.a},data:function(){return{line:"line",circle:"circle",infoList:{},series:[],xData:[],y1Data:[],y2Data:[],lists:[],bing_data:[],bing_xdata:[]}},methods:{getStatistics:function(){var t=this;Object(i.e)().then(function(){var e=_(C().mark((function e(r){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=r.data,t.series=[{data:r.data.series,name:"人数(人)",type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}],t.bing_data=r.bing_data,t.bing_xdata=r.bing_xdata;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getRank:function(){var t=this;Object(i.d)().then(function(){var e=_(C().mark((function e(r){var n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.lists=n.list;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleResize:function(){this.infoList&&0!==this.series.length&&this.$refs.userChart.handleResize(),this.infoList&&this.$refs.visitChart.handleResize()}},mounted:function(){this.getStatistics(),this.getRank()},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)}},S=(r("4ca0"),Object(l.a)(k,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"resize",rawName:"v-resize",value:t.handleResize,expression:"handleResize"}]},[e("Row",{attrs:{gutter:24}},[e("Col",{staticClass:"ivu-mb dashboard-console-visit",attrs:{xl:16,lg:12,md:24,sm:24,xs:24}},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#1890ff",expression:"'#1890ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6f7ff",expression:"'#e6f7ff'"}],attrs:{icon:"ios-pulse",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("用户")])],1),t.infoList&&0!==t.series.length?e("echarts-from",{ref:"userChart",attrs:{echartsTitle:t.line,infoList:t.infoList,series:t.series}}):t._e()],1)],1),e("Col",{attrs:{xl:8,lg:12,md:24,sm:24,xs:24}},[e("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#1890ff",expression:"'#1890ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6f7ff",expression:"'#e6f7ff'"}],attrs:{icon:"ios-analytics",size:"small"}}),e("span",{staticClass:"ivu-pl-8"},[t._v("购买用户统计")])],1),e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:t.circle}})],1)],1)],1)],1)}),[],!1,null,"22a9e4b4",null).exports);function E(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return O(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var j={data:function(){return{current:1,size:5,loading:!1,sortType:"normal",sortKey:"",column:[{title:"排名",key:"index",width:80},{title:"搜索关键词",key:"keyword",slot:"keyword",minWidth:120},{title:"用户数",key:"count",sortable:"custom",minWidth:100},{title:"周涨幅",key:"range",slot:"range",width:100,align:"right",sortable:"custom"}],data:[]}},computed:{limitData:function(){var t=this,e=E(this.data);return"asc"===this.sortType&&(e=e.sort((function(e,r){return e[t.sortKey]>r[t.sortKey]?1:-1}))),"desc"===this.sortType&&(e=e.sort((function(e,r){return e[t.sortKey]<r[t.sortKey]?1:-1}))),e},dataWithPage:function(){var t=this.limitData,e=this.current*this.size-this.size,r=e+this.size;return E(t).slice(e,r)}},methods:{handleSortChange:function(t){var e=t.key,r=t.order;this.sortKey=e,this.sortType=r,this.current=1},getData:function(){var t=[{index:1,keyword:"搜索关键词-0",count:257,range:69,status:0},{index:2,keyword:"搜索关键词-1",count:711,range:57,status:0},{index:3,keyword:"搜索关键词-2",count:766,range:24,status:1},{index:4,keyword:"搜索关键词-3",count:597,range:31,status:1},{index:5,keyword:"搜索关键词-4",count:133,range:30,status:0},{index:6,keyword:"搜索关键词-5",count:845,range:16,status:0},{index:7,keyword:"搜索关键词-6",count:454,range:35,status:1},{index:8,keyword:"搜索关键词-7",count:884,range:96,status:1},{index:9,keyword:"搜索关键词-8",count:725,range:30,status:1},{index:10,keyword:"搜索关键词-9",count:778,range:46,status:0},{index:11,keyword:"搜索关键词-10",count:414,range:69,status:1},{index:12,keyword:"搜索关键词-11",count:927,range:41,status:0},{index:13,keyword:"搜索关键词-12",count:128,range:54,status:0},{index:14,keyword:"搜索关键词-13",count:169,range:77,status:0},{index:15,keyword:"搜索关键词-14",count:764,range:8,status:0},{index:16,keyword:"搜索关键词-15",count:178,range:23,status:1},{index:17,keyword:"搜索关键词-16",count:32,range:94,status:0},{index:18,keyword:"搜索关键词-17",count:183,range:34,status:1},{index:19,keyword:"搜索关键词-18",count:988,range:5,status:0},{index:20,keyword:"搜索关键词-19",count:324,range:15,status:0},{index:21,keyword:"搜索关键词-20",count:832,range:42,status:0},{index:22,keyword:"搜索关键词-21",count:336,range:99,status:0},{index:23,keyword:"搜索关键词-22",count:23,range:1,status:1},{index:24,keyword:"搜索关键词-23",count:557,range:84,status:0},{index:25,keyword:"搜索关键词-24",count:894,range:62,status:1},{index:26,keyword:"搜索关键词-25",count:610,range:73,status:1},{index:27,keyword:"搜索关键词-26",count:810,range:1,status:1},{index:28,keyword:"搜索关键词-27",count:83,range:13,status:1},{index:29,keyword:"搜索关键词-28",count:734,range:11,status:1},{index:30,keyword:"搜索关键词-29",count:6,range:97,status:0},{index:31,keyword:"搜索关键词-30",count:112,range:88,status:0},{index:32,keyword:"搜索关键词-31",count:978,range:92,status:0},{index:33,keyword:"搜索关键词-32",count:674,range:86,status:0},{index:34,keyword:"搜索关键词-33",count:632,range:42,status:1},{index:35,keyword:"搜索关键词-34",count:0,range:23,status:1},{index:36,keyword:"搜索关键词-35",count:965,range:94,status:0},{index:37,keyword:"搜索关键词-36",count:758,range:86,status:0},{index:38,keyword:"搜索关键词-37",count:857,range:34,status:0},{index:39,keyword:"搜索关键词-38",count:72,range:95,status:0},{index:40,keyword:"搜索关键词-39",count:69,range:74,status:1},{index:41,keyword:"搜索关键词-40",count:553,range:21,status:1},{index:42,keyword:"搜索关键词-41",count:430,range:2,status:1},{index:43,keyword:"搜索关键词-42",count:86,range:23,status:1},{index:44,keyword:"搜索关键词-43",count:626,range:2,status:1},{index:45,keyword:"搜索关键词-44",count:266,range:8,status:1},{index:46,keyword:"搜索关键词-45",count:943,range:61,status:0},{index:47,keyword:"搜索关键词-46",count:417,range:17,status:1},{index:48,keyword:"搜索关键词-47",count:151,range:92,status:1},{index:49,keyword:"搜索关键词-48",count:197,range:63,status:0},{index:50,keyword:"搜索关键词-49",count:578,range:18,status:1}];this.total=t.length,this.data=t}},mounted:function(){this.getData()}},N={components:{searchTable:Object(l.a)(j,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"i-table-no-border"},[e("Table",{attrs:{columns:t.column,data:t.dataWithPage,loading:t.loading,size:"small"},on:{"on-sort-change":t.handleSortChange},scopedSlots:t._u([{key:"keyword",fn:function(r){var n=r.row;return[e("a",{attrs:{href:"/",target:"_blank"}},[t._v(t._s(n.keyword))])]}},{key:"range",fn:function(r){var n=r.row;return[t._v("\n "+t._s(n.range)+"%\n "),e("Trend",{attrs:{flag:n.status?"up":"down"}})]}}])}),e("div",{staticClass:"ivu-text-right ivu-mt-8"},[e("Page",{attrs:{size:"small","page-size":5,total:t.limitData.length,current:t.current},on:{"update:current":function(e){t.current=e},"on-change":t.getData}})],1)],1)}),[],!1,null,null,null).exports},data:function(){return{}},methods:{handleSetSearchChart:function(){this.searchUserChart=o.a.init(this.$refs.searchUserChart),this.searchCountChart=o.a.init(this.$refs.searchCountChart);var t={xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],type:"category",show:!1},yAxis:{show:!1,type:"value"},series:[{data:[120,300,150,350,70,210,130],type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}],color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:-60,right:-20,bottom:-20,top:0,containLabel:!0},tooltip:{trigger:"axis"}};this.searchUserChart.setOption(t),this.searchCountChart.setOption(t)},handleResize:function(){this.searchUserChart&&this.searchUserChart.resize(),this.searchCountChart&&this.searchCountChart.resize()}},mounted:function(){this.handleSetSearchChart()},beforeDestroy:function(){this.searchUserChart&&(this.searchUserChart.dispose(),this.searchUserChart=null),this.searchCountChart&&(this.searchCountChart.dispose(),this.searchCountChart=null)}},T=Object(l.a)(N,(function(){var t=this._self._c;return t("div",[t("Row",{attrs:{gutter:24}},[t("Col",{attrs:{span:"12"}},[t("NumberInfo",{attrs:{total:"23,378","sub-total":"16.8",status:"up"}},[t("span",{attrs:{slot:"subTitle"},slot:"subTitle"},[this._v("\n 搜索用户数\n "),t("Tooltip",{attrs:{content:"指标说明",placement:"top"}},[t("Icon",{attrs:{type:"ios-information-circle-outline"}})],1)],1)]),t("div",{directives:[{name:"height",rawName:"v-height",value:50,expression:"50"}],ref:"searchUserChart"})],1),t("Col",{attrs:{span:"12"}},[t("NumberInfo",{attrs:{total:"3.1","sub-total":"8.5",status:"down"}},[t("span",{attrs:{slot:"subTitle"},slot:"subTitle"},[this._v("\n 人均搜索次数\n "),t("Tooltip",{attrs:{content:"指标说明",placement:"top"}},[t("Icon",{attrs:{type:"ios-information-circle-outline"}})],1)],1)]),t("div",{directives:[{name:"height",rawName:"v-height",value:50,expression:"50"}],ref:"searchCountChart"})],1)],1),t("div",{staticClass:"ivu-mt"},[t("search-table")],1)],1)}),[],!1,null,null,null).exports,F={data:function(){return{}}},D=(r("146a"),{components:{userGender:Object(l.a)(F,(function(){var t=this._self._c;return t("div",{staticClass:"dashboard-console-user-gender"},[t("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[t("Col",{directives:[{name:"color",rawName:"v-color",value:"#3399ff",expression:"'#3399ff'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[t("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#3399ff",expression:"'#3399ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#d6f0ff",expression:"'#d6f0ff'"}],attrs:{icon:"ios-man",size:"large"}}),t("div",{staticClass:"ivu-mt-8"},[this._v("男性 65%")])],1),t("Col",{directives:[{name:"color",rawName:"v-color",value:"#be6be0",expression:"'#be6be0'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[t("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#be6be0",expression:"'#be6be0'"},{name:"bg-color",rawName:"v-bg-color",value:"#fdf0ff",expression:"'#fdf0ff'"}],attrs:{icon:"ios-woman",size:"large"}}),t("div",{staticClass:"ivu-mt-8"},[this._v("女性 25%")])],1),t("Col",{directives:[{name:"color",rawName:"v-color",value:"#babdc3",expression:"'#babdc3'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[t("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#babdc3",expression:"'#babdc3'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6edf5",expression:"'#e6edf5'"}],attrs:{icon:"md-man",size:"large"}}),t("div",{staticClass:"ivu-mt-8"},[this._v("未知 10%")])],1)],1),t("div",{staticClass:"dashboard-console-user-gender-grid ivu-mt-8"},[t("Grid",{attrs:{center:"",square:"",col:25,padding:"2px",border:!1}},this._l(100,(function(e){return t("GridItem",{key:e},[t("span",e<=65?{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#3399ff",expression:"'#3399ff'"}]}:e<=90?{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#be6be0",expression:"'#be6be0'"}]}:{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#babdc3",expression:"'#babdc3'"}]})])})),1)],1)],1)}),[],!1,null,null,null).exports}}),A=(r("4434"),Object(l.a)(D,(function(){var t=this._self._c;return t("div",[t("div",{directives:[{name:"height",rawName:"v-height",value:200,expression:"200"}]},[t("user-gender")],1),t("div",{directives:[{name:"height",rawName:"v-height",value:210,expression:"210"}]},[t("div",{staticClass:"dashboard-console-user-preference"})])])}),[],!1,null,null,null).exports),P=r("8593"),z=(r("e069"),r("c276")),I={name:"index",components:{baseInfo:h,gridMenu:p,visitChart:w,userChart:S,hotSearch:T,userPreference:A},data:function(){return{visitType:"day",visitDate:[new Date,new Date],openImage:!0}},mounted:function(){z.a.cookies.get("auth")||Object(i.a)().then((function(t){})).catch((function(t){})),this.getAuth()},methods:{getAuth:function(){var t=this;Object(P.c)().then((function(e){var r=e.data||{};r.auth_code&&r.auth&&(t.authCode=r.auth_code,t.auth=!0)})).catch((function(t){}))},clear:function(){this.openImage=!1}}},G=(r("11bd"),Object(l.a)(I,(function(){var t=this._self._c;return t("div",[t("base-info",{ref:"baseInfo"}),t("grid-menu"),t("visit-chart",{ref:"visitChart"}),t("user-chart",{ref:"userChart"})],1)}),[],!1,null,null,null));e.default=G.exports}}]); |