1 line
6.5 KiB
JavaScript
1 line
6.5 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"19bd":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return n}));var n={charts:a("ac41").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:"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)},r=[]},4803:function(e,t,a){"use strict";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},4909:function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-780f0a36]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.index[data-v-780f0a36]{overflow:hidden}.index-wrap .index-header[data-v-780f0a36]{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-780f0a36]{padding:0 %?24?%;width:100%;position:absolute;top:%?100?%}.index-wrap .index-section .today-data[data-v-780f0a36]{padding:%?60?% %?30?% %?40?% %?30?%;border-radius:%?14?%;background-color:#fff}.index-wrap .index-section .today-data .item-data[data-v-780f0a36]{width:%?220?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-780f0a36]:first-child{color:#999;font-size:%?24?%}.index-wrap .index-section .today-data .item-data uni-view[data-v-780f0a36]: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-780f0a36]:first-child{width:%?260?%!important}.index-wrap .index-section .e-data .e-title[data-v-780f0a36]{font-size:%?30?%;font-weight:500}.index-wrap .inde
|