1 line
62 KiB
JavaScript
1 line
62 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-today-order-today-order"],{"0f47":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return i}));var i={uniTransition:a("9d67").default},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.showPopup?a("v-uni-view",{staticClass:"uni-popup",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[a("uni-transition",{attrs:{"mode-class":["fade"],styles:e.maskClass,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}),a("uni-transition",{attrs:{"mode-class":e.ani,styles:e.transClass,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-popup__wrapper-box",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._t("default")],2)],1)],1):e._e()},n=[]},"157c":function(e,t,a){e.exports=a.p+"static/haircut/mkbg.png"},"54a8":function(e,t,a){"use strict";(function(e){a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("c223");var o=i(a("b7c7")),n=a("5ffc"),r=a("2352"),s=i(a("144a")),d=i(a("4c78")),c=i(a("7acc")),l={data:function(){return{callPhone:r.callPhone,formatImgUrl:r.formatImgUrl,loading:!1,userId:(0,r.getStorage)("userInfo").id,page:1,pageSize:10,loadingType:0,pageHistory:1,pageSizeHistory:10,loadingTypeHistory:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},contentTextHistory:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},statisticsData:{num:0,price:0},statisticsDataHistory:{num:0,price:0},orders:[],takeDay:"",currentTabIndex:0,ordersHistory:[],takeFoodPlace:["全部","梨园","科技楼"],takeFoodPlaceIndex:0,allFoodList:[],startDate:this.getDay(-30),endDate:this.getDay(0),descriptionVal:"暂无订单",activeKey:0,finished:!1,refreshing:!1}},components:{loadMore:s.default,contentNone:d.default,UniPopup:c.default},onLoad:function(e){this.currentTabIndex=e.currentTabIndex||0,0==this.currentTabIndex?(this.chooseFoodList=[],this.initData(0)):(this.page=1,this.loadingType=0,this.initData(1))},watch:{currentTabIndex:function(e,t){this.takeFoodPlaceIndex=0,1==e?(this.pageHistory=1,this.loadingTypeHistory=0,this.initData(1)):(this.page=1,this.loadingType=0,this.initData(0))}},methods:{initData:function(e){var t=this,a={};a=0==e?{method:n.toDaylist,data:{userId:this.userId,pageSize:this.pageSize,pageNum:this.page,takeFoodPlace:0==this.takeFoodPlaceIndex?"":this.takeFoodPlace[this.takeFoodPlaceIndex],queryType:"0"}}:{method:n.toDaylist,data:{userId:this.userId,pageSize:this.pageSizeHistory,pageNum:this.pageHistory,takeFoodPlace:0==this.takeFoodPlaceIndex?"":this.takeFoodPlace[this.takeFoodPlaceIndex],queryType:"1",startDate:this.startDate,endDate:this.endDate}},(0,r.callbackRequest)(a).then((function(a){if(1==a.data.returnCode)if(0==e){var i=a.data.returnData||{};i.orderList=i.orderList||[],1==t.page?(t.takeDay=a.data.returnData.takeDay||"",i.numList.length>0?t.statisticsData=i.numList[0]:t.statisticsData={num:0,price:0},t.orders=i.orderList):i.orderList.length>0?(t.orders=[].concat((0,o.default)(t.orders),(0,o.default)(i.orderList)),t.loadingType=0):t.loadingType=2,t.loading=!0}else{var n=a.data.returnData||{};n.orderList=n.orderList||[],1==t.pageHistory?(t.ordersHistory=n.orderList,n.numList.length>0?t.statisticsDataHistory=n.numList[0]:t.statisticsDataHistory={num:0,price:0}):n.orderList.length>0?(t.ordersHistory=[].concat((0,o.default)(t.ordersHistory),(0,o.default)(n.orderList)),t.loadingTypeHistory=0):t.loadingTypeHistory=2,t.loading=!0}else(0,r.alertTip)(a.data.returnMsg)}))},circulation:function(){this.getAllFoodList(),this.$refs.popup.open()},closeCirculation:function(){this.$refs.popup.close()},getAllFoodList:function(){var
|