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
18 KiB
1 lines
18 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["index"],{"0a0d":function(t,a,s){"use strict";s.r(a);var e={};s.r(e),s.d(e,"functions",(function(){return E})),s.d(e,"overview",(function(){return G})),s.d(e,"statistics",(function(){return j}));s("9911"),s("b0c0");var i=function(){var t=this,a=t._self._c;return a("a-spin",{attrs:{spinning:t.isLoading}},[a("div",{staticClass:"container"},[a("a-card",{staticClass:"overview",attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[a("span",[t._v("实时概况")])]),a("a-row",{attrs:{gutter:32}},[a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item flex"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{attrs:{component:t.Icons.overview.sale}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"name"},[t._v("销售额 (元)")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.overview.orderTotalPrice.tday))]),a("p",{staticClass:"yesterday"},[t._v("昨日:"+t._s(t.data.overview.orderTotalPrice.yday))])])])]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item flex"},[a("div",{staticClass:"col-right"},[a("p",{staticClass:"name"},[t._v("支付订单数")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.overview.orderTotal.tday))]),a("p",{staticClass:"yesterday"},[t._v("昨日:"+t._s(t.data.overview.orderTotal.yday))])])])]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item flex"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{attrs:{component:t.Icons.overview.increase}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"name"},[t._v("新增会员数")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.overview.newUserTotal.tday))]),a("p",{staticClass:"yesterday"},[t._v("昨日:"+t._s(t.data.overview.newUserTotal.yday))])])])]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item flex"},[a("div",{staticClass:"col-right"},[a("p",{staticClass:"name"},[t._v("付款会员数")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.overview.consumeUserTotal.tday))]),a("p",{staticClass:"yesterday"},[t._v("昨日:"+t._s(t.data.overview.consumeUserTotal.yday))])])])])],1)],1),a("a-row",{staticClass:"statistics mt-20",attrs:{gutter:32}},[a("a-col",{staticClass:"item",attrs:{span:6}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"flex flex-y-center"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{staticClass:"icon",attrs:{component:t.Icons.statistics.goods}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"info"},[t._v("商品总数量")]),a("p",{staticClass:"keynote"},[t._v(t._s(t.data.statistics.goodsTotal))])])])])],1),a("a-col",{staticClass:"item",attrs:{span:6}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"flex flex-y-center"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{staticClass:"icon",attrs:{component:t.Icons.statistics.user}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"info"},[t._v("会员总人数")]),a("p",{staticClass:"keynote"},[t._v(t._s(t.data.statistics.userTotal))])])])])],1),a("a-col",{staticClass:"item",attrs:{span:6}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"flex flex-y-center"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{staticClass:"icon",attrs:{component:t.Icons.statistics.order}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"info"},[t._v("付款订单总量")]),a("p",{staticClass:"keynote"},[t._v(t._s(t.data.statistics.orderTotal))])])])])],1),a("a-col",{staticClass:"item",attrs:{span:6}},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"flex flex-y-center"},[a("div",{staticClass:"col-left"},[a("div",{staticClass:"icon-body flex flex-x-center flex-y-center"},[a("a-icon",{staticClass:"icon",attrs:{component:t.Icons.statistics.consume}})],1)]),a("div",{staticClass:"col-right"},[a("p",{staticClass:"info"},[t._v("消费总人数")]),a("p",{staticClass:"keynote"},[t._v(t._s(t.data.statistics.consumeUserTotal))])])])])],1)],1),a("a-card",{staticClass:"pending mt-20",attrs:{bordered:!1}},[a("a-row",{attrs:{gutter:32}},[a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:"/order/list/delivery"}},[a("p",{staticClass:"name"},[t._v("待发货订单(笔)")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.pending.deliverOrderTotal))])])],1)]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:"/order/refund/index"}},[a("p",{staticClass:"name"},[t._v("售后单(笔)")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.pending.refundTotal))])])],1)]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:"/order/list/pay"}},[a("p",{staticClass:"name"},[t._v("待付款订单(笔)")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.pending.paidOrderTotal))])])],1)]),a("a-col",{attrs:{span:6}},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:{path:"/goods/index",query:{listType:"sold_out"}}}},[a("p",{staticClass:"name"},[t._v("已售罄商品")]),a("p",{staticClass:"value"},[t._v(t._s(t.data.pending.soldoutGoodsTotal))])])],1)])],1)],1),a("a-card",{staticClass:"functions mt-20",attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[a("span",[t._v("常用功能")])]),a("a-row",{attrs:{gutter:32}},t._l(t.functions,(function(s,e){return a("a-col",{key:e,attrs:{span:6}},[!s.moduleKey||t.$module(s.moduleKey)?a("div",{staticClass:"item",on:{click:function(a){return t.handleLink(s.link)}}},[a("div",{staticClass:"flex flex-y-center"},[a("div",{staticClass:"icon flex flex-x-center flex-y-center",style:{backgroundColor:s.color}},[a("a-icon",{attrs:{component:s.icon}})],1),a("span",{staticClass:"name"},[t._v(t._s(s.name))])])]):t._e()])})),1)],1),a("a-card",{staticClass:"trade-trend mt-20",attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[a("span",[t._v("近七日交易走势")])]),a("div",{staticClass:"echarts-body"},[a("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"main"}})])])],1)])},o=[],r=(s("d3b7"),s("313e")),n=s.n(r),c=(s("a59f"),s("b775")),l={data:"/home/data"};function d(t){return Object(c["b"])({url:l.data,method:"get",params:t})}var v=s("3158"),p=s.n(v),u=s("baef"),f=s.n(u),g=s("5ce6"),C=s.n(g),h=s("5e52"),m=s.n(h),x=s("d725"),w=s.n(x),y=s("5183"),_=s.n(y),b=s("b412"),M=s.n(b),T=s("e880"),L=s.n(T),k=s("193c"),z=s.n(k),B=s("ba7a"),I=s.n(B),U=s("19c2"),O=s.n(U),A=s("5ef6"),H=s.n(A),V=s("f4f6"),K=s.n(V),P=s("f08d"),$=s.n(P),E={coupon:p.a,dealer:f.a,goods:C.a,order:m.a,refund:w.a,statistics:_.a,user:M.a,decorate:L.a},G={sale:z.a,increase:I.a},j={goods:O.a,order:H.a,user:K.a,consume:$.a},D=[{name:"发布商品",icon:E.goods,color:"#00BF57",link:"/goods/create"},{name:"店铺装修",icon:E.decorate,color:"#f15858",link:"/page/index"},{name:"会员管理",icon:E.user,color:"#139dff",link:"/user/index"},{name:"分销中心",icon:E.dealer,color:"#00BF57",link:"/apps/dealer",moduleKey:"app-dealer"},{name:"订单管理",icon:E.order,color:"#139dff",link:"/order/list/all"},{name:"售后管理",icon:E.refund,color:"#139dff",link:"/order/refund/index"},{name:"优惠券",icon:E.coupon,color:"#f15858",link:"/market/coupon/index",moduleKey:"app-coupon"},{name:"数据统计",icon:E.statistics,color:"#139dff",link:"/statistics",moduleKey:"statistics-statistics"}],F={overview:{orderTotalPrice:{tday:"0.00",ytd:"0.00"},orderTotal:{tday:"0",ytd:"0"},newUserTotal:{tday:"0",ytd:"0"},consumeUserTotal:{tday:"0",ytd:"0"}},statistics:{goodsTotal:"0",userTotal:"0",orderTotal:"0",consumeUserTotal:"0"},pending:{deliverOrderTotal:0,refundTotal:0,paidOrderTotal:0,soldoutGoodsTotal:0},tradeTrend:{date:[],orderTotal:[],orderTotalPrice:[]}},J={name:"Index",data:function(){return{Icons:e,functions:D,isLoading:!1,data:F}},created:function(){this.getData()},methods:{getData:function(){var t=this;this.isLoading=!0,d().then((function(a){t.data=a.data.data,t.$nextTick((function(){t.myEcharts()}))})).finally((function(){return t.isLoading=!1}))},handleLink:function(t){var a=this;if(!a.$auth(t))return a.$message.info("很抱歉,没有该页面的访问权限"),!1;a.$router.push(t)},myEcharts:function(){var t=this.data,a=n.a.init(document.getElementById("main"),"fresh-cut"),s={tooltip:{trigger:"axis"},legend:{data:["成交量","成交额"]},toolbox:{show:!0,showTitle:!1,feature:{mark:{show:!0},magicType:{show:!0,type:["line","bar"]}}},calculable:!0,xAxis:{type:"category",boundaryGap:!1,data:t.tradeTrend.date},yAxis:{type:"value"},series:[{name:"成交额",type:"line",data:t.tradeTrend.orderTotalPrice},{name:"成交量",type:"line",data:t.tradeTrend.orderTotal}]};a.setOption(s)}}},q=J,S=(s("814c"),s("2877")),Z=Object(S["a"])(q,i,o,!1,null,"3c696d4d",null);a["default"]=Z.exports},"23ce":function(t,a,s){},3158:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600242330515",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15685",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M45.95712 400.36352l358.10304 0c8.4992-16.35328 17.98144-40.5504 28.44672-72.6016L88.13568 327.76192 88.13568 215.9104l150.10816 0c-30.74048-35.31776-62.13632-69.98016-94.18752-103.99744l87.31648-70.63552c41.85088 39.24992 84.03968 81.7664 126.55616 127.54944l-57.88672 47.09376L448.2048 215.92064c4.57728-47.74912 8.4992-106.60864 11.776-176.59904l135.39328 3.92192c-4.57728 66.06848-9.1648 123.61728-13.74208 172.67712l130.48832 0-48.06656-36.3008C706.56 135.13728 744.81664 88.3712 778.84416 39.31136l106.92608 67.69664c-30.73024 39.23968-60.81536 75.54048-90.25536 108.9024l153.05728 0 0 111.84128L567.90016 327.75168c-5.23264 28.12928-11.12064 52.3264-17.664 72.6016L998.6048 400.35328l0 115.77344L764.12928 516.12672c66.70336 61.4912 148.7872 103.34208 246.25152 125.58336-20.93056 30.74048-44.15488 71.61856-69.65248 122.64448-36.63872-13.07648-70.98368-28.78464-103.03488-47.09376-4.57728 45.12768-8.82688 85.67808-12.7488 121.6512-13.74208 100.07552-74.89536 150.10816-183.47008 150.10816-56.90368 0-108.58496-0.65536-155.01312-1.95584-4.58752-27.47392-13.73184-68.03456-27.47392-121.66144l154.03008 7.85408c50.36032 0 78.80704-20.60288 85.36064-61.80864 2.6112-20.93056 5.888-51.34336 9.80992-91.2384L447.22176 720.20992c-19.61984 72.6016-49.38752 129.1776-89.28256 169.728-55.6032 51.67104-136.704 94.17728-243.31264 127.5392-23.54176-40.5504-48.0768-79.80032-73.58464-117.72928 101.36576-22.24128 175.28832-52.31616 221.72672-90.25536 26.1632-23.552 45.45536-53.2992 57.88672-89.28256l-95.17056 0c-28.12928 15.04256-57.88672 29.42976-89.28256 43.17184-26.1632-39.89504-53.63712-77.50656-82.41152-112.83456 103.34208-40.5504 185.7536-85.36064 247.2448-134.41024L45.95712 516.13696 45.95712 400.36352zM396.20608 608.34816l302.1824 0c-26.81856-27.47392-51.68128-58.2144-74.56768-92.22144L486.47168 516.12672C461.6192 548.17792 431.52384 578.9184 396.20608 608.34816z","p-id":"15686"}}]})}},5183:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600243008867",class:"icon",viewBox:"0 0 1080 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3099",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M568.765 0h-14.47v458.574h466.366v-7.791C1020.66 202.573 818.087 0 568.765 0z","p-id":"3100"}},{tag:"path",attrsMap:{d:"M467.478 548.73V57.878C208.14 65.67 0 279.374 0 540.94 0 808.07 215.93 1024 483.06 1024c126.888 0 242.644-48.974 329.462-130.226L467.478 548.73z","p-id":"3101"}},{tag:"path",attrsMap:{d:"M1080.765 540.94H606.61l328.348 328.347c87.93-82.365 143.582-198.122 145.808-328.348z","p-id":"3102"}}]})}},"5ce6":function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600241550446",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8141",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M974.798976 444.8256l-76.8 474.624A126.464 126.464 0 0 1 776.757376 1024H247.195776a126.5152 126.5152 0 0 1-121.2416-104.5504l-76.8-474.624a100.3008 100.3008 0 0 1 20.48-81.92A96.8192 96.8192 0 0 1 144.795776 327.936h734.4128a94.3104 94.3104 0 0 1 75.1104 34.9696 100.1472 100.1472 0 0 1 20.48 81.92zM295.221376 474.624a73.2672 73.2672 0 1 0 71.68 74.752v-1.536a72.8064 72.8064 0 0 0-71.68-73.216z m430.08 0a73.2672 73.2672 0 1 0 71.68 74.752v-1.536a72.8576 72.8576 0 0 0-71.4752-73.216z m35.84-181.4528a35.4304 35.4304 0 0 1-35.84-34.9696v-1.7408c0-104.5504-114.2784-183.0912-216.832-183.0912-104.192 0-211.7632 68.096-211.7632 181.4528a35.84 35.84 0 1 1-71.68 0.3584v-0.3584C225.179776 95.9488 370.331776 0 508.571776 0c136.6016 0 286.72 104.8064 286.72 254.8224a33.6896 33.6896 0 0 1-28.7232 37.9904 36.7104 36.7104 0 0 1-5.12 0.3584z","p-id":"8142"}}]})}},"5e52":function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600242900275",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2638",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M782.83956269 76.76757225h75.64992124c46.04672444 0 83.23551321 37.33419948 83.23551321 83.24763079v772.40956751c0 46.04672444-37.34631703 83.19916054-83.23551321 83.19916055H130.16359629c-46.04672444 0-83.25974834-37.33419948-83.25974836-83.19916055V160.01520304c0-46.05884201 37.34631703-83.24763078 83.25974836-83.24763079h105.43488142V21.28126927c0-10.1545145 8.30052796-18.45504245 18.45504246-18.45504244h103.43548417c10.16663205 0 18.60045316 8.28841039 18.60045319 18.5883356v55.49842052h266.24700778v-55.49842052c0-10.16663205 8.27629285-18.58833561 18.45504246-18.5883356h103.56877733c10.14239693 0 18.57621805 8.28841039 18.57621804 18.5883356l-0.09694045 55.35300982zM150.49686038 252.32676801v131.29375247h643.34544594V252.32676801H150.49686038z m0 291.88776275v131.26951736h447.40451584V544.21453076H150.49686038z m0 0","p-id":"2639"}}]})}},"814c":function(t,a,s){"use strict";s("23ce")},b412:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600242747795",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2458",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M652.72455749 625.27260426C646.42519536 623.22221321 606.66577657 605.28566036 631.50944838 529.70879464L631.1649805 529.70879464C695.92284649 462.98668103 745.41933453 355.55482392 745.41933453 249.82522292 745.41933453 87.230756 637.34564077 2.03067645 511.77268275 2.03067645 386.11826349 2.03067645 278.66600954 87.230756 278.66600954 249.82522292 278.66600954 355.98213462 327.89018072 463.83780907 393.0355748 530.40506589 418.42038831 597.05149573 373.01796166 621.79241104 363.51480415 625.27260155 231.98927942 672.85890065 77.70668309 759.60754395 77.70668309 845.23493287L77.70668309 877.32279094C77.70668309 993.99013837 303.77734175 1020.51248414 513.00625491 1020.51248414 722.54239527 1020.51248414 945.75721981 993.99013837 945.75721981 877.32279094L945.75721981 845.23493287C945.75721981 757.01806599 790.70189352 670.96685973 652.72455749 625.27260426L652.72455749 625.27260426Z","p-id":"2459"}}]})}},baef:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600242641243",class:"icon",viewBox:"0 0 1144 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"41233",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M843.394343 421.697171L722.422629 541.816972l96.266223 96.266223H506.888519V326.282862l95.41431 95.414309 120.1198-120.1198-180.605657-181.457571L421.697171 0 120.1198 301.577371l120.971714 120.1198 95.41431-95.414309v361.211314L0 1024h241.091514l215.53411-216.386023h362.063228l-96.266223 96.266223 120.971714 120.1198 180.605657-180.605657 120.971714-120.971714L843.394343 421.697171z","p-id":"41234"}}]})}},d725:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600242235234",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9571",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M940.423554 592.717219c43.779578-43.818948 70.354412-110.551309 79.685131-200.157711A78.740248 78.740248 0 0 0 886.092783 328.740537l-104.803271 104.84264-126.81117-24.881918a49.803207 49.803207 0 0 1-39.291384-39.252014l-24.842548-126.81117L695.14768 137.795435A78.740248 78.740248 0 0 0 631.328709 3.779532c-89.606403 9.330719-156.299393 35.905553-200.118341 79.724501a360.236636 360.236636 0 0 0-68.818977 413.031973L33.729595 826.969458l-0.590552 0.629922a115.039503 115.039503 0 0 0 1.653545 162.677353 116.771788 116.771788 0 0 0 164.567119-1.102364l326.57518-328.346835a360.197266 360.197266 0 0 0 414.449297-68.110315z","p-id":"9572"}}]})}},e880:function(t,a,s){var e=s("b2b7");t.exports={__esModule:!0,default:e.svgComponent({tag:"svg",attrsMap:{t:"1600243089555",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2968",width:"500",height:"500"},children:[{tag:"path",attrsMap:{d:"M402.53754243 624.34742857a52.53976043 52.53976043 0 0 1 0.55480212 74.3434836L102.5560381 999.00529778a52.53976043 52.53976043 0 0 1-74.28800339-0.55480212 52.53976043 52.53976043 0 0 1-0.55480212-74.3434836l300.42534603-300.36986582a52.53976043 52.53976043 0 0 1 74.3434836 0.55480212zM460.95820529 565.81580529L180.11737397 476.77006561 418.51584338 308.9424254l-5.88090243-293.49031958 236.45666202 177.25927619 277.29009777-92.26359196-92.26359196 277.23461757L1011.32190476 614.19454984l-293.49031957-5.82542222-167.71667979 238.39846941L460.95820529 565.81580529z","p-id":"2969"}}]})}}}]); |