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
4.6 KiB
1 lines
4.6 KiB
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/order/index"],{"0a34":function(t,e,i){},"3a50":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("e727"),r=n(i("26f7")),o=null,s={name:"adminOrder",components:{Loading:function(){i.e("components/Loading/index").then(function(){return resolve(i("b025"))}.bind(null,i)).catch(i.oe)},NavBar:function(){i.e("components/NavBar").then(function(){return resolve(i("5962"))}.bind(null,i)).catch(i.oe)}},data:function(){return{iconColor:"#FFFFFF",isScrolling:!1,getHeight:this.$util.getWXStatusHeight(),census:{},list:[],where:{page:1,limit:15},loaded:!1,loading:!1,after_price:0,after_number:0,after_pay_number:0,today_visits:0,growth_rate:0,increase_time:0,increase_time_status:1,cWidth:"",cHeight:"",pixelRatio:1,textarea:"",index:0,array:["今天","近7天","近30天"],arrays:[1,7,30]}},onShow:function(){this,this.cWidth=t.upx2px(710),this.cHeight=t.upx2px(500),this.getOrderTime(),this.getOrderChart(),this.getIndex(),this.getList()},onPageScroll:function(t){t.scrollTop>50?(this.isScrolling=!0,this.iconColor="#333333"):t.scrollTop<50&&(this.isScrolling=!1,this.iconColor="#FFFFFF")},beforeMount:function(){o=null},methods:{bindPickerChange:function(t){this.index=t.detail.value,this.getOrderTime(),this.getOrderChart()},getOrderTime:function(){var t=this;(0,a.getOrderTime)({type:this.arrays[this.index]}).then((function(e){var i=e.data,n=i.after_number,a=i.after_pay_number,r=i.after_price,o=i.today_visits,s=i.growth_rate,c=i.increase_time,l=i.increase_time_status;t.after_number=n,t.after_pay_number=a,t.after_price=r,t.today_visits=o,t.growth_rate=s,t.increase_time=c,t.increase_time_status=l}))},getOrderChart:function(){var t=this;(0,a.getOrderChart)({type:this.arrays[this.index]}).then((function(e){var i=e.data,n={categories:[],series:[]},a=[{name:"销售额",type:"line",data:[]}];i.forEach((function(t){t.num;var e=t.price,i=t.time;a[0].data.push(e),n.categories.push(i)})),n.series=a,t.chartData=i,o?o.updateData(n):t.showLineA("canvasMix",n)}))},showLineA:function(t,e){o=new r.default({$this:this,canvasId:t,type:"line",fontSize:11,padding:[5,5,0,5],legend:{show:!0,position:"bottom",float:"center",padding:5,lineHeight:11,margin:6},background:"#FFFFFF",pixelRatio:this.pixelRatio,categories:e.categories,series:e.series,animation:!0,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:6,scrollShow:!0,scrollAlign:"left"},yAxis:{data:[{calibration:!0,position:"left",title:"销售额(元)",titleFontSize:12,format:function(t){return t.toFixed(0)}}],showTitle:!0,gridType:"dash",dashLength:4,splitNumber:7},width:this.cWidth*this.pixelRatio,height:this.cHeight*this.pixelRatio,dataLabel:!0,dataPointShape:!0})},touchMix:function(t){o.scrollStart(t)},moveMix:function(t){o.scroll(t)},touchEndMix:function(t){var e=o.getCurrentDataIndex(t);o.scrollEnd(t),o.touchLegend(t),o.showToolTip(t,{textList:[{text:this.chartData[e].time,color:null},{text:"销售额:"+this.chartData[e].price,color:"#1890FF"},{text:"订单量:"+this.chartData[e].num,color:"#91CB74"}]})},getIndex:function(){var t=this;(0,a.getStatisticsInfo)().then((function(e){t.census=e.data}),(function(e){t.$util.Tips({title:e})}))},getList:function(){var t=this;t.loading||t.loaded||(t.loading=!0,(0,a.getStatisticsMonth)(t.where).then((function(e){t.loading=!1,t.loaded=e.data.length<t.where.limit,t.list.push.apply(t.list,e.data),t.where.page=t.where.page+1}),(function(e){t.$util.Tips({title:e})}),300))}},onReachBottom:function(){this.getList()}};e.default=s}).call(this,i("df3c")["default"])},"403b":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("7561");n(i("3240"));var a=n(i("d181"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},a1de:function(t,e,i){"use strict";i.r(e);var n=i("3a50"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},ad30:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},a=[]},d181:function(t,e,i){"use strict";i.r(e);var n=i("ad30"),a=i("a1de");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("fc2c");var o=i("828b"),s=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"6a09214a",null,!1,n["a"],void 0);e["default"]=s.exports},fc2c:function(t,e,i){"use strict";var n=i("0a34"),a=i.n(n);a.a}},[["403b","common/runtime","common/vendor","pages/admin/common/vendor"]]]); |