1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-delivery_statistics"],{"108f":function(t,e,a){"use strict";a.r(e);var n=a("ded1"),i=a("667e");for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("4d65");var r=a("828b"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"b4e17e46",null,!1,n["a"],void 0);e["default"]=o.exports},"12c1":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("2634")),s=n(a("2fdc"));a("64aa");var r=n(a("c158")),o={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$t.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,s.default)((0,i.default)().mark((function e(){var a,n,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.vuex_custom_bar_height,n=t.vuex_status_bar_height,a){e.next=15;break}return e.prev=3,e.next=6,t.$t.updateCustomBar();case 6:s=e.sent,a=s.customBarHeight,n=s.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$t.vuex("vuex_status_bar_height",n),t&&t.$t.vuex("vuex_custom_bar_height",a),t.customBarHeight=a,t.statusBarHeight=n;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,s.default)((0,i.default)().mark((function e(){var a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(a=t.beforeBack.bind(t.$t.$parent.call(t))(),!a||"function"!==typeof a.then){e.next=7;break}return e.next=5,a.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===a&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index"})}else uni.reLaunch({url:"/pages/index"})}}};e.default=o},"4d65":function(t,e,a){"use strict";var n=a("64e07"),i=a.n(n);i.a},"4df5":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-custom-nav-bar[data-v-0c6fe6ee]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-0c6fe6ee]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-0c6fe6ee]{position:fixed;width:100%;top:0;left:0}.tn-custom-nav-bar__bar--alpha[data-v-0c6fe6ee]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-0c6fe6ee]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-0c6fe6ee]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-0c6fe6ee]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-0c6fe6ee]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-0c6fe6ee]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=e},"5c4b":function(t,e,a){"use strict";a.r(e);var n=a("12c1"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},"64e07":function(t,e,a){var n=a("d6c3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("61bba3a4",n,!0,{sourceMap:!1,shadowMode:!1})},"667e":function(t,e,a){"use strict";a.r(e);var n=a("850d"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},"7a95":function(t,e,a){"use strict";a.r(e);var n=a("9d12"),i=a("5c4b");for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("7fa2");var r=a("828b"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"0c6fe6ee",null,!1,n["a"],void 0);e["default"]=o.exports},"7fa2":function(t,e,a){"use strict";var n=a("91cb"),i=a.n(n);i.a},"850d":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("937e"),i={data:function(){return{activeNum:0,typeValue:"today",tabList:[{value:"today",title:"今天"},{value:"yesterday",title:"昨天"},{value:"month",title:"本月"},{value:"last_month",title:"上月"}],takeoutData:{total_num:0,fee:0,num:0,cancel_num:0},erranderData:{total_num:0,fee:0,num:0,cancel_num:0},startTime:"",endTime:""}},onLoad:function(){this.getDeliveryStatcenterData()},methods:{getDeliveryStatcenterData:function(){var t=this;(0,n.getDeliveryStatcenterListApi)({type:this.typeValue}).then((function(e){var a=e.data;t.takeoutData.total_num=a.takeout.total_num,t.takeoutData.fee=a.takeout.fee,t.takeoutData.num=a.takeout.num,t.takeoutData.cancel_num=a.takeout.cancel_num,t.erranderData.total_num=a.errander.total_num,t.erranderData.fee=a.errander.fee,t.erranderData.num=a.errander.num,t.erranderData.cancel_num=a.errander.cancel_num,t.startTime=a.time.start,t.endTime=a.time.end})).catch((function(){}))},tabsClick:function(t){this.activeNum=t,this.typeValue=this.tabList[t].value,this.getDeliveryStatcenterData()}}};e.default=i},"91cb":function(t,e,a){var n=a("4df5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("e3174358",n,!0,{sourceMap:!1,shadowMode:!1})},"937e":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getDeliveryStatcenterStatisticApi=e.getDeliveryStatcenterListApi=void 0;var i=n(a("0ae0"));e.getDeliveryStatcenterListApi=function(t){return i.default.get("api/delivery.statcenter.stat/lists",{params:t})};e.getDeliveryStatcenterStatisticApi=function(t){return i.default.get("api/delivery.statcenter.stat/getStatistic",{params:t})}},"9d12":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?a("v-uni-view",[t.customBack?a("v-uni-view",[a("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),a("v-uni-view",[t._t("right")],2)],1)],1)},i=[]},c158:function(t,e,a){a("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},d6c3:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.main[data-v-b4e17e46]{background:#f8f9fa;min-height:100vh}.stats-container[data-v-b4e17e46]{padding:%?20?%}.lee-tabs[data-v-b4e17e46]{display:flex;justify-content:space-around;align-items:center;height:%?90?%;background-color:#fff;border-radius:%?12?%;margin-bottom:%?20?%;box-shadow:0 %?2?% %?12?% rgba(0,0,0,.05)}.lee-tabs .lee-tabs-item[data-v-b4e17e46]{position:relative;padding:0 %?30?%;font-size:%?28?%;color:#666;transition:all .3s}.lee-tabs .lee-tabs-item.active[data-v-b4e17e46]{color:#1fb4c8;font-weight:500}.lee-tabs .lee-tabs-item.active[data-v-b4e17e46]::after{content:"";position:absolute;bottom:%?-10?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?40?%;height:%?4?%;background:#1fb4c8;border-radius:%?2?%}.time-tips[data-v-b4e17e46]{background:#fff;padding:%?24?%;border-radius:%?12?%;margin-bottom:%?20?%;box-shadow:0 %?2?% %?12?% rgba(0,0,0,.05)}.time-tips .label[data-v-b4e17e46]{color:#666;font-size:%?26?%}.time-tips .time[data-v-b4e17e46]{color:#333;font-size:%?26?%}.stat-card[data-v-b4e17e46]{background:#fff;border-radius:%?12?%;padding:%?30?%;margin-bottom:%?20?%;box-shadow:0 %?2?% %?12?% rgba(0,0,0,.05)}.stat-card .card-header[data-v-b4e17e46]{display:flex;justify-content:space-between;align-items:center;margin-bottom:%?30?%}.stat-card .card-header .title[data-v-b4e17e46]{font-size:%?32?%;font-weight:500;color:#333}.stat-card .card-header .income[data-v-b4e17e46]{font-size:%?26?%;color:#666}.stat-card .card-header .income .amount[data-v-b4e17e46]{color:#1fb4c8;font-weight:500}.stat-card .stat-grid[data-v-b4e17e46]{display:flex;justify-content:space-between}.stat-card .stat-grid .stat-item[data-v-b4e17e46]{flex:1;display:flex;flex-direction:column;align-items:center;position:relative}.stat-card .stat-grid .stat-item[data-v-b4e17e46]:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:60%;background:#eee}.stat-card .stat-grid .stat-item .number[data-v-b4e17e46]{font-size:%?36?%;color:#1fb4c8;font-weight:500;margin-bottom:%?10?%}.stat-card .stat-grid .stat-item .label[data-v-b4e17e46]{font-size:%?26?%;color:#666}',""]),t.exports=e},ded1:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("7a95").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"main"},[a("tn-nav-bar",{attrs:{fixed:!0,bottomShadow:!0,backgroundColor:"#FFFFFF"}},[a("v-uni-view",{staticClass:"custom-nav",attrs:{id:"navbar"}},[t._v("配送统计")])],1),a("v-uni-view",{style:{paddingTop:t.vuex_custom_bar_height+"px"}},[a("v-uni-view",{staticClass:"stats-container"},[a("v-uni-view",{staticClass:"lee-tabs"},t._l(t.tabList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"lee-tabs-item",class:n===t.activeNum?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabsClick(n)}}},[t._v(t._s(e.title))])})),1),a("v-uni-view",{staticClass:"time-tips"},[a("v-uni-text",{staticClass:"label"},[t._v("统计时间:")]),a("v-uni-text",{staticClass:"time"},[t._v(t._s(t.startTime)+" - "+t._s(t.endTime))])],1),a("v-uni-view",{staticClass:"stat-card"},[a("v-uni-view",{staticClass:"card-header"},[a("v-uni-view",{staticClass:"title"},[t._v("外卖战绩")]),a("v-uni-view",{staticClass:"income"},[t._v("收入:"),a("v-uni-text",{staticClass:"amount"},[t._v(t._s(t.takeoutData.fee)+"元")])],1)],1),a("v-uni-view",{staticClass:"stat-grid"},[a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.takeoutData.total_num))]),a("v-uni-text",{staticClass:"label"},[t._v("已抢")])],1),a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.takeoutData.num))]),a("v-uni-text",{staticClass:"label"},[t._v("成功")])],1),a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.takeoutData.cancel_num))]),a("v-uni-text",{staticClass:"label"},[t._v("取消")])],1)],1)],1),a("v-uni-view",{staticClass:"stat-card"},[a("v-uni-view",{staticClass:"card-header"},[a("v-uni-view",{staticClass:"title"},[t._v("跑腿战绩")]),a("v-uni-view",{staticClass:"income"},[t._v("收入:"),a("v-uni-text",{staticClass:"amount"},[t._v(t._s(t.erranderData.fee)+"元")])],1)],1),a("v-uni-view",{staticClass:"stat-grid"},[a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.erranderData.total_num))]),a("v-uni-text",{staticClass:"label"},[t._v("已抢")])],1),a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.erranderData.num))]),a("v-uni-text",{staticClass:"label"},[t._v("成功")])],1),a("v-uni-view",{staticClass:"stat-item"},[a("v-uni-text",{staticClass:"number"},[t._v(t._s(t.erranderData.cancel_num))]),a("v-uni-text",{staticClass:"label"},[t._v("取消")])],1)],1)],1)],1)],1)],1)},s=[]}}]);
|