| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"128e":function(e,t,a){"use strict";a.r(t);var n=a("fae2"),i=a("8b58");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("9b5b");var r=a("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"3eaf181a",null,!1,n["a"],void 0);t["default"]=s.exports},"1cb9":function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-3eaf181a]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.index[data-v-3eaf181a]{overflow:hidden}.index-wrap .index-header[data-v-3eaf181a]{color:#fff;padding:%?30?% %?24?%;background-repeat:no-repeat;background-size:100% %?100?%;background-color:#40affa;padding-bottom:%?200?%}.index-wrap .index-section[data-v-3eaf181a]{padding:0 %?24?%;width:100%;position:absolute;top:%?100?%}.index-wrap .index-section .today-data[data-v-3eaf181a]{padding:%?60?% %?30?% %?40?% %?30?%;border-radius:%?14?%;background-color:#fff}.index-wrap .index-section .today-data .item-data[data-v-3eaf181a]{width:%?220?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-3eaf181a]:first-child{color:#999;font-size:%?24?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-3eaf181a]:last-child{color:#333;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-3eaf181a]:first-child{width:%?260?%!important}.index-wrap .index-section .btn[data-v-3eaf181a]{margin:%?30?% 0;margin-top:%?20?%;height:%?88?%;color:#fff;font-size:%?32?%;background-color:#40affa}.index-wrap .index-section .e-data .e-title[data-v-3eaf181a]{font-size:%?30?%;font-weight:500}.index-wrap .index-section .e-data .e-content[data-v-3eaf181a]{padding:%?20?% 0;border-radius:%?14?%;background-color:#fff}",""]),e.exports=t},8830:function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("64aa");var i=n(a("2634")),o=n(a("2fdc")),r=a("d3b6"),s=(a("f9f1"),n(a("ea09"))),d={mixins:[s.default],data:function(){return{pagesData:[],loading:!0,time:"",todayObj:[{name:"今日营业额",val:"0.00"},{name:"今日成交订单",val:"0"},{name:"今日进店人数",val:"0"}],orderObj:[{name:"自提订单",val:"0.00"},{name:"待核销",val:"0"},{name:"已核销",val:"0"}],turnoverData:{},visitData:{}}},methods:{downCallback:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getPageInfo();case 2:e.mescroll.endSuccess(0,!1);case 3:case"end":return t.stop()}}),t)})))()},getPageInfo:function(){var e=this;return(0,o.default)((0,i.default)().mark((function t(){var a,n,o;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.apiIndex)();case 2:a=t.sent,e.todayObj[0].val=a.order_amount,e.todayObj[1].val=a.order_num,e.todayObj[2].val=a.shop_user,e.orderObj[0].val=a.self_order,e.orderObj[1].val=a.is_verification,e.orderObj[2].val=a.no_verification,n={categories:a.dates,series:[{name:"营业额",data:a.echarts_order_amount}]},o={categories:a.dates,series:[{name:"进店人数",data:a.echarts_user_visit}]},e.turnoverData=n,e.visitData=o,e.pagesData=a;case 14:case"end":return t.stop()}}),t)})))()},showTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),i=Number(e.getHours())<=9?"0"+Number(e.getHours()):Number(e.getHours()),o=Number(e.getMinutes())<=9?"0"+Number(e.getMinutes()):Number(e.getMinutes()),r=Number(e.getSeconds())<=9?"0"+Number(e.getSeconds()):Number(e.getSeconds()),s=t+"-"+a+"-"+n+" "+i+":"+o+":"+r;this.time=s}},onLoad:function(){setInterval(this.showTime,1e3)}};t.default=d},"8b58":function(e,t,a){"use strict";a.r(t);var n=a("8830"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"9b5b":function(e,t,a){"use strict";var n=a("ce93"),i=a.n(n);i.a},ce93:function(e,t,a){var n=a("1cb9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("65a101ac",n,!0,{sourceMap:!1,shadowMode:!1})},ea09:function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(e){this.mescroll&&this.mescroll.onPageScroll(e)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(e){console.log(e),this.mescroll=e,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var e=this.$refs.mescrollRef;e&&(this.mescroll=e.mescroll)}},downCallback:function(){var e=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){e.mescroll.endSuccess()}),500)},upCallback:function(){var e=this;setTimeout((function(){e.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},i=n;t.default=i},fae2:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var n={charts:a("cdd3").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("mescroll-body",{ref:"mescrollRef",attrs:{up:{use:!1}},on:{init:function(t){arguments[0]=t=e.$handleEvent(t),e.mescrollInit.apply(void 0,arguments)},down:function(t){arguments[0]=t=e.$handleEvent(t),e.downCallback.apply(void 0,arguments)},up:function(t){arguments[0]=t=e.$handleEvent(t),e.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"}},[e._v("Hi,"+e._s(e.pagesData.shop_name||"-"))]),a("v-uni-view",{staticClass:"xs"},[e._v(e._s(e.time))])],1),a("v-uni-view",{staticStyle:{height:"130vh"}}),a("v-uni-view",{staticClass:"index-section"},[a("v-uni-view",{staticClass:"today-data flex"},[e._l(e.todayObj,(function(t,n){return[a("v-uni-view",{key:n+"_0",staticClass:"item-data"},[a("v-uni-view",[e._v(e._s(t.name))]),a("v-uni-view",[e._v(e._s(t.val))])],1)]}))],2),a("v-uni-view",{staticClass:"today-data flex m-t-30"},[e._l(e.orderObj,(function(t,n){return[a("v-uni-view",{key:n+"_0",staticClass:"item-data"},[a("v-uni-view",[e._v(e._s(t.name))]),a("v-uni-view",[e._v(e._s(t.val))])],1)]}))],2),a("v-uni-view",{},[a("v-uni-navigator",{attrs:{url:"/pages/verification_order/verification_order","hover-class":"none"}},[a("v-uni-button",{staticClass:"btn solid br60 flex row-center normal"},[e._v("核销订单")])],1)],1),a("v-uni-view",{staticClass:"e-data m-t-30"},[a("v-uni-view",{staticClass:"e-title"},[e._v("营业额趋势图")]),a("v-uni-view",{staticClass:"e-content m-t-20"},[a("charts",{attrs:{ids:"canvasColumn",width:"100%",height:"544rpx",chartData:e.turnoverData}})],1)],1),a("v-uni-view",{staticClass:"e-data m-t-30 m-b-50"},[a("v-uni-view",{staticClass:"e-title"},[e._v("进店人数趋势图")]),a("v-uni-view",{staticClass:"e-content m-t-20"},[a("charts",{attrs:{ids:"canvasColumn2",width:"100%",height:"544rpx",chartData:e.visitData}})],1)],1)],1)],1)],1)],1)},o=[]}}]);
|