| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"02aa":function(t,e,a){var i=a("7f31");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("4f7fd9e2",i,!0,{sourceMap:!1,shadowMode:!1})},2524:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(t){console.log(t),this.mescroll=t,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef;t&&(this.mescroll=t.mescroll)}},downCallback:function(){var t=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){t.mescroll.endSuccess()}),500)},upCallback:function(){var t=this;setTimeout((function(){t.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},n=i;e.default=n},"5e0c":function(t,e,a){"use strict";a.r(e);var i=a("e724"),n=a("dbcd");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("b6f7");var o=a("828b"),r=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"8f70a4f8",null,!1,i["a"],void 0);e["default"]=r.exports},"7f31":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-8f70a4f8]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.index-wrap .index-header[data-v-8f70a4f8]{color:#fff;padding:%?30?% %?24?%;background-repeat:no-repeat;background-size:100% %?100?%;background-color:#3868f9}.index-wrap .index-section[data-v-8f70a4f8]{width:100%}.index-wrap .index-section .today-data[data-v-8f70a4f8]{padding:%?30?% %?30?% %?40?% %?30?%;border-radius:%?14?%;background-color:#fff}.index-wrap .index-section .today-data .item-data[data-v-8f70a4f8]{width:%?220?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-8f70a4f8]:first-child{color:#999;font-size:%?24?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-8f70a4f8]:last-child{font-size:%?44?%;font-weight:500;margin-top:%?6?%;height:50px;word-wrap:break-word;word-break:break-all}.index-wrap .index-section .today-data .item-data[data-v-8f70a4f8]:first-child{width:%?260?%!important}.index-wrap .index-section .e-data .e-content[data-v-8f70a4f8]{padding:%?20?% 0;border-radius:%?14?%;background-color:#fff}.index-wrap .index-section .title[data-v-8f70a4f8]{display:flex;align-items:center;height:100%;font-size:%?32?%;font-weight:500;margin-bottom:%?38?%}.index-wrap .index-section .title[data-v-8f70a4f8]:before{display:block;width:%?5?%;height:%?38?%;background-color:#3868f9;margin-right:%?10?%;content:""}',""]),t.exports=e},"8ebf":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var n=i(a("2634")),s=i(a("2fdc")),o=a("b315"),r=(a("accb"),i(a("2524"))),d={mixins:[r.default],data:function(){return{pagesData:[],loading:!0,time:"",totleAmount:"123",todayObj:[{name:"成交订单",val:"0.00"},{name:"新增用户",val:"0"},{name:"访客数",val:"0"}],orderObj:[{name:"待发货订单",val:"0.00"},{name:"待审核售后",val:"0"},{name:"待审核评价",val:"0"},{name:"售罄商品",val:"0"}],turnoverData:{},visitData:{}}},methods:{downCallback:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getPageInfo();case 2:t.mescroll.endSuccess(0,!1);case 3:case"end":return e.stop()}}),e)})))()},getPageInfo:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var a,i,s;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.apiIndex)();case 2:a=e.sent,t.totleAmount=a.today.today_order_amount,t.todayObj[0].val=a.today.today_order_num,t.todayObj[1].val=a.today.today_new_user,t.todayObj[2].val=a.today.today_visitor,t.orderObj[0].val=a.pending.wait_shipped,t.orderObj[1].val=a.pending.wait_audit,t.orderObj[2].val=a.pending.wait_process,t.orderObj[3].val=a.pending.no_stock_goods,i={categories:a.business5.date,series:a.business5.list},s={categories:a.visitor5.date,series:a.visitor5.list},t.turnoverData=i,t.visitData=s,t.pagesData=a;case 16:case"end":return e.stop()}}),e)})))()},showTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),n=Number(t.getHours())<=9?"0"+Number(t.getHours()):Number(t.getHours()),s=Number(t.getMinutes())<=9?"0"+Number(t.getMinutes()):Number(t.getMinutes()),o=Number(t.getSeconds())<=9?"0"+Number(t.getSeconds()):Number(t.getSeconds()),r=e+"-"+a+"-"+i+" "+n+":"+s+":"+o;this.time=r}},onLoad:function(){setInterval(this.showTime,1e3)}};e.default=d},b6f7:function(t,e,a){"use strict";var i=a("02aa"),n=a.n(i);n.a},dbcd:function(t,e,a){"use strict";a.r(e);var i=a("8ebf"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},e724:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var i={charts:a("fbb3").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("mescroll-body",{ref:"mescrollRef",attrs:{up:{use:!1}},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"index"},[a("v-uni-view",{staticClass:"index-wrap"},[a("v-uni-view",{staticClass:"index-header flex row-between"},[a("v-uni-view",{staticClass:"md",staticStyle:{"font-weight":"400"}},[t._v(t._s(t.pagesData.shop_name||"-"))]),a("v-uni-view",{staticClass:"xs"},[t._v(t._s(t.time))])],1),a("v-uni-view",{staticClass:"index-section"},[a("v-uni-view",{staticClass:"today-data"},[a("v-uni-view",{staticClass:"title"},[t._v("今日数据")]),a("v-uni-view",{staticClass:"turnover"},[a("v-uni-view",[a("v-uni-view",{staticClass:"item-data"},[a("v-uni-view",[t._v("营业额")]),a("v-uni-view",{staticClass:"primary"},[t._v(t._s(t.totleAmount))])],1)],1)],1),a("v-uni-view",{staticClass:"flex"},[t._l(t.todayObj,(function(e,i){return[a("v-uni-view",{key:i+"_0",staticClass:"item-data"},[a("v-uni-view",[t._v(t._s(e.name))]),a("v-uni-view",[t._v(t._s(e.val))])],1)]}))],2)],1),a("v-uni-view",{staticClass:"today-data m-t-30"},[a("v-uni-view",{staticClass:"title"},[t._v("待办事项")]),a("v-uni-view",{staticClass:"flex"},[t._l(t.orderObj,(function(e,i){return[a("v-uni-view",{key:i+"_0",staticClass:"item-data"},[a("v-uni-view",[t._v(t._s(e.name))]),a("v-uni-view",{class:{red:3==i}},[t._v(t._s(e.val))])],1)]}))],2)],1),a("v-uni-view",{staticClass:"e-data m-t-30 p-20"},[a("v-uni-view",{staticClass:"title"},[t._v("营业额趋势图")]),a("v-uni-view",{staticClass:"e-content m-t-20"},[a("charts",{attrs:{ids:"canvasColumn",width:"100%",height:"544rpx",chartData:t.turnoverData}})],1)],1),a("v-uni-view",{staticClass:"e-data m-t-30 p-b-60 p-20"},[a("v-uni-view",{staticClass:"title"},[t._v("访问量趋势图")]),a("v-uni-view",{staticClass:"e-content m-t-20"},[a("charts",{attrs:{ids:"canvasColumn2",width:"100%",height:"544rpx",chartData:t.visitData}})],1)],1)],1)],1)],1)],1)],1)},s=[]}}]);
|