(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tray-page-order-tray-order-list"],{1106:function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.startRefundApi=e.getTrayInfoApi=e.getPayMethodApi=e.getOrderListApi=e.getOrderDetailApi=e.getOrderChartReportDetailApi=e.getOrderChartReportApi=e.getOrderChartApi=e.getIngOrderApi=e.getAbnormalOrderApi=e.createPayScoreOrderApi=e.bindTrayApi=e.bindOrderApi=e.bindCardApi=e.applyRefundApi=void 0;var a=i(r("7653"));e.getIngOrderApi=function(){return a.default.post("api/user.tray.tray_order/getIngOrder")};e.bindTrayApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a.default.post("api/user.tray.tray_order/bindTray",{plate_no:t,out_order_no:e})};e.getOrderListApi=function(t,e){return a.default.get("api/user.tray.tray_order/getOrderList",{page:t,pageSize:e})};e.getOrderDetailApi=function(t){return a.default.get("api/user.tray.tray_order/getOrderDetail",{id:t})};e.getOrderChartApi=function(t){return a.default.get("api/user.tray.nutrition_analysis/index",{date:t})};e.getAbnormalOrderApi=function(){return a.default.get("api/user.tray.tray_order/getAbnormalOrder")};e.startRefundApi=function(t){return a.default.post("api/user.tray.tray_order/startRefund",{id:t})};e.applyRefundApi=function(t){return a.default.post("api/user.tray.tray_order/applyRefund",t)};e.getOrderChartReportApi=function(){return a.default.get("api/user.tray.nutrition_analysis/report")};e.getOrderChartReportDetailApi=function(t){return a.default.get("api/user.tray.nutrition_analysis/reportDetail",t)};e.createPayScoreOrderApi=function(t){return a.default.post("api/user.tray.tray_order/createPayScoreOrder",{plate_no:t})};e.getPayMethodApi=function(t){return a.default.get("api/user.tray.tray_order/getPayMethod",{plate_no:t})};e.bindCardApi=function(t){return a.default.post("api/user.tray.user/bindCard",{card_no:t})};e.bindOrderApi=function(t){return a.default.post("api/user.tray.tray_order/bindOrder",{order_id:t})};e.getTrayInfoApi=function(t){return a.default.get("api/user.tray.tray_order/getTrayInfo",{plate_no:t})}},1138:function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("64aa"),r("c223"),r("5ef2");var i={name:"tn-lazy-load",options:{virtualHost:!0},props:{index:{type:[String,Number],default:""},bgColor:{type:String,default:"#f8f7f8"},src:{type:String,default:""},imgMode:{type:String,default:"aspectFill"},loadingImg:{type:String,default:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/loading.gif"},errorImg:{type:String,default:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/nopic.jpg"},threshold:{type:[Number,String],default:100},isEffect:{type:Boolean,default:!0},duration:{type:[String,Number],default:500},effect:{type:String,default:"ease-in-out"},height:{type:[String,Number],default:""},borderRadius:{type:String,default:""}},computed:{thresholdValue:function(){var t=uni.upx2px(Math.abs(this.threshold));return this.threshold<0?-t:t},lazyLoadItemStyle:function(){var t={};return t.opacity=Number(this.opacity),this.borderRadius&&(t.borderRadius=this.borderRadius),t.backgroundColor=this.bgColor,t.transition="opacity ".concat(this.time/1e3,"s ").concat(this.effect),t.height=this.$tn.string.getLengthUnitValue(this.height),t},imageStyle:function(){var t={};return"string"===typeof this.height&&-1===this.height.indexOf("%")&&(t.height=this.$tn.string.getLengthUnitValue(this.height)),t}},watch:{show:function(t){var e=this;this.effect&&(this.time=0,this.opacity=0,setTimeout((function(){e.time=e.duration,e.opacity=1}),30))},src:function(t){t?(this.init(),this.error=!1):this.error=!0}},data:function(){return{elIndex:this.$tn.uuid(),show:!1,opacity:1,time:this.duration,loadStatus:"",error:!1}},created:function(){this.observer={},this.observerName="lazyLoadContentObserver"},mounted:function(){var t=this;this.$nextTick((function(){uni.$once("tOnLazyLoadReachBottom",(function(){t.show||(t.show=!0)}))})),setTimeout((function(){t.disconnectObserver(t.observerName);var e=uni.createIntersectionObserver(t);e.relativeToViewport({bottom:t.thresholdValue}).observe(".tn-lazy-load__item--".concat(t.elIndex),(function(e){e.intersectionRatio>0&&(t.show=!0,t.disconnectObserver(t.observerName))})),t[t.observerName]=e}),50)},methods:{init:function(){this.error=!1,this.loadStatus=""},handleImgClick:function(){var t="";t=!1===this.show?"lazyImg":!0===this.error?"errorImg":"realImg",this.$emit("click",{index:this.index,whichImg:t})},handleImgLoaded:function(){(this.loadStatus="")?this.loadStatus="lazyed":"lazyed"==this.loadStatus&&(this.loadStatus="loaded",this.$emit("loaded",this.index))},handleErrorImgLoaded:function(){this.$emit("error",this.index)},handleImgError:function(){this.error=!0},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()}}};e.default=i},2370:function(t,e,r){var i=r("c86c");e=i(!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-lazy-load[data-v-43c4a84a]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item[data-v-43c4a84a]{width:100%;height:100%;border-radius:inherit;overflow:hidden}.tn-lazy-load__item__content[data-v-43c4a84a]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item__image[data-v-43c4a84a]{display:block;width:100%;height:100%;border-radius:inherit;-webkit-transform:transition3d(0,0,0);transform:transition3d(0,0,0);will-change:transform}',""]),t.exports=e},3362:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"tn-lazy-load-class tn-lazy-load"},[r("v-uni-view",{staticClass:"tn-lazy-load__item",class:["tn-lazy-load__item--"+t.elIndex],staticStyle:{color:"#aaaaaa !important"},style:[t.lazyLoadItemStyle]},[r("v-uni-view",{staticClass:"tn-lazy-load__item__content"},[t.error?r("v-uni-image",{staticClass:"tn-lazy-load__item__image tn-lazy-load__item__image--error",style:[t.imageStyle],attrs:{src:t.errorImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.handleErrorImgLoaded.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgClick.apply(void 0,arguments)}}}):r("v-uni-image",{staticClass:"tn-lazy-load__item__image",style:[t.imageStyle],attrs:{src:t.show?t.src:t.loadingImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgLoaded.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgClick.apply(void 0,arguments)}}})],1)],1)],1)},a=[]},3510:function(t,e,r){"use strict";r.r(e);var i=r("41b9"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"41b9":function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("c223");var a=i(r("dc1f")),n=i(r("dae0")),o=i(r("44ca")),d=i(r("a71b")),s=i(r("34cae")),c=r("419c"),u=(i(r("8c27")),r("1106")),l={components:{Empty:d.default,PaySelectModal:s.default},mixins:[a.default,n.default,o.default],data:function(){return{currentOrderId:0,showPaySelectModal:!1,loadingShow:!1,qrcode_box_show:!1,order_qrcode:"",page:1,pageSize:15,orderList:[],pageRequest:!0}},created:function(){this.getOrderList()},methods:{getOrderList:function(){var t=this;this.loadingShow=!0,(0,u.getOrderListApi)(this.page,this.pageSize).then((function(e){console.log("res",e),e.length0?r("v-uni-view",{staticClass:"btn to-pay",style:[t.themeBtnStyle],on:{click:function(r){r.stopPropagation(),arguments[0]=r=t.$handleEvent(r),t.start_refund(e.id)}}},[t._v("立即退款")]):t._e()],1)],1)],1)})),r("pay-select-modal",{attrs:{"order-id":t.currentOrderId,"order-type":"takeout"},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.successPayEvent.apply(void 0,arguments)},fail:function(e){arguments[0]=e=t.$handleEvent(e),t.failPayEvent.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelPayEvent.apply(void 0,arguments)}},model:{value:t.showPaySelectModal,callback:function(e){t.showPaySelectModal=e},expression:"showPaySelectModal"}}),0==t.orderList.length?r("v-uni-view",{staticStyle:{"padding-top":"280rpx"}},[r("empty",{attrs:{icon:"empty-data",tips:"订单为空"}})],1):t._e()],2)},n=[]},"9cae":function(t,e,r){var i=r("cc53");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("74ddcd86",i,!0,{sourceMap:!1,shadowMode:!1})},"9d9e":function(t,e,r){var i=r("c86c");e=i(!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 */\n/* 订单列表item start */.order-item[data-v-16e9c371]{position:relative;width:100%;padding:%?20?%;background-color:#fff;border-radius:%?20?%;margin-top:%?30?%\n /* 顶部信息 start */\n /* 顶部信息 end */\n /* 商品列表 start */\n /* 商品列表 end */\n /* 操作按钮 start */\n /* 操作按钮 end */}.order-item[data-v-16e9c371]:first-child{margin-top:%?0?%}.order-item .top-info[data-v-16e9c371]{width:100%;display:flex}.order-item .top-info .store-avatar[data-v-16e9c371]{position:relative;width:%?100?%;height:%?100?%;border-radius:%?15?%;border:%?1?% solid #e6e6e6;overflow:hidden}.order-item .top-info .store-avatar .business-tag[data-v-16e9c371]{position:absolute;top:%?-4?%;right:%?-2?%;border-radius:%?4?%;font-size:%?22?%;line-height:1;padding:%?4?% %?8?%;border-radius:%?0?% %?15?% %?0?% %?0?%}.order-item .top-info .top-right[data-v-16e9c371]{flex:1;margin-left:%?20?%}.order-item .top-info .top-right .top-right-line[data-v-16e9c371]{display:flex;align-items:center;justify-content:space-between}.order-item .top-info .top-right .top-right-line + .top-right-line[data-v-16e9c371]{margin-top:%?8?%}.order-item .top-info .top-right .store-title[data-v-16e9c371]{flex:1;font-size:%?32?%;font-weight:500}.order-item .top-info .top-right .order-status[data-v-16e9c371]{font-size:%?34?%;padding-left:%?40?%}.order-item .top-info .top-right .order-type[data-v-16e9c371]{border-radius:%?4?%;line-height:1;padding:%?4?% %?12?%}.order-item .product-list[data-v-16e9c371]{position:relative;margin-top:%?20?%;width:100%;padding:%?20?% %?0?%\n /* 单个商品 start */\n /* 单个商品 end */\n /* 单个商品 start */\n /* 单个商品 end */\n /* 商品数量、价格 start */\n /* 商品数量、价格 end */}.order-item .product-list .single-product[data-v-16e9c371]{position:relative;width:100%;padding-right:%?140?%}.order-item .product-list .single-product .product-image[data-v-16e9c371]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .single-product .product-info[data-v-16e9c371]{width:calc(100% - %?140?%);padding-left:%?20?%;font-size:%?30?%}.order-item .product-list .single-product .product-info .num[data-v-16e9c371]{margin-top:%?8?%}.order-item .product-list .scroll-view[data-v-16e9c371]{padding-right:%?140?%}.order-item .product-list .product-item[data-v-16e9c371]{flex-shrink:0;width:%?160?%}.order-item .product-list .product-item .item-image[data-v-16e9c371]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .product-item .item-image .item-num[data-v-16e9c371]{position:absolute;right:0;bottom:0;line-height:1;padding:%?4?% %?10?%;background-color:rgba(0,0,0,.5);color:#fff;font-size:%?20?%;border-radius:%?10?% %?0?% %?10?% %?0?%}.order-item .product-list .product-item .item-title[data-v-16e9c371]{width:100%;font-size:%?20?%;color:#aaa;margin-top:%?6?%}.order-item .product-list .order-price-count-info[data-v-16e9c371]{position:absolute;top:0;right:0;height:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?0?% %?20?%}.order-item .product-list .order-price-count-info .order-count[data-v-16e9c371]{font-size:%?24?%}.order-item .product-list .order-price-count-info .order-price[data-v-16e9c371]{display:flex;align-items:flex-end;font-size:%?32?%;line-height:1;margin-bottom:%?10?%}.order-item .product-list .order-price-count-info .order-price .unit[data-v-16e9c371]{font-size:%?24?%;margin-right:%?4?%}.order-item .create-time[data-v-16e9c371]{font-size:%?24?%;color:#aaa}.order-item .operation-btn[data-v-16e9c371]{margin-top:%?26?%}.order-item .operation-btn .btn[data-v-16e9c371]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background-color:#ffca28;color:#080808}.order-item .operation-btn .btn + .btn[data-v-16e9c371]{margin-left:%?16?%}\n/* 订单列表item end */\n/* 膨胀红包 */.expansion[data-v-16e9c371]{display:flex;position:fixed;top:0;left:0;height:100%;width:100%;justify-content:center;align-items:center;background-color:rgba(0,0,0,.5);flex-direction:column;z-index:999999}.expansion .expansion_box[data-v-16e9c371]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-16e9c371]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-16e9c371]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-16e9c371]{width:100%}.expansion .expansion_box .line4[data-v-16e9c371]{height:40px;width:100%;text-align:center;line-height:40px;font-size:15px;color:#fff;border-radius:10px;background:linear-gradient(90deg,#fc8c09,#fc29b4)}.expansion .expansion_close[data-v-16e9c371]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-16e9c371]{width:%?60?%;height:%?60?%}',""]),t.exports=e},a71b:function(t,e,r){"use strict";r.r(e);var i=r("ec01"),a=r("dc1c");for(var n in a)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(n);r("de1c");var o=r("828b"),d=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"6cf0f295",null,!1,i["a"],void 0);e["default"]=d.exports},af51:function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getOrderCommentPageInfoApi=e.getCutTImeData=e.cutOffSwit=e.confirmOrderApi=e.confirmErranderOrderApi=e.cancelTcOrderApi=e.cancelOrderApi=e.cancelErranderOrderApi=e.addOrderCommentApi=void 0;var a=i(r("7653"));e.getOrderCommentPageInfoApi=function(t){var e=t.id,r=t.order_type;return a.default.get("api/user.order.comment/getPageParams",{id:e,order_type:r})};e.addOrderCommentApi=function(t){var e=t.id,r=t.deliverScore,i=t.goodsQuality,n=t.note,o=t.thumbs,d=t.order_type;return a.default.post("api/user.order.comment/create",{id:e,deliverScore:r||0,goods_quality:i||0,note:n||"",thumbs:o||[],order_type:d||"takeout"})};e.cancelTcOrderApi=function(t){return a.default.post("/api/user.mealRedpacket.meal_redpacket_order/cancelOrder",{order_id:t})};e.cancelOrderApi=function(t){return a.default.post("api/user.order.order/cancel",{id:t})};e.confirmOrderApi=function(t){return a.default.post("api/user.order.order/end",{id:t})};e.cancelErranderOrderApi=function(t){return a.default.post("api/user.order.errander.errander/cancel",{id:t})};e.confirmErranderOrderApi=function(t){return a.default.post("api/user.order.errander.errander/confirm",{id:t})};e.cutOffSwit=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.default.get("api/user.order.cut_time/getOpen?sid="+t,{})};e.getCutTImeData=function(){return a.default.get("api/user.order.cut_time/list",{})}},b461:function(t,e,r){"use strict";r.r(e);var i=r("3362"),a=r("7cdd");for(var n in a)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(n);r("4eb3");var o=r("828b"),d=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"43c4a84a",null,!1,i["a"],void 0);e["default"]=d.exports},cbf2:function(t,e,r){"use strict";var i=r("5ead"),a=r.n(i);a.a},cc53:function(t,e,r){var i=r("c86c");e=i(!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 */.empty[data-v-6cf0f295]{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?60?% %?0?%}.empty__icon .icon-icon[data-v-6cf0f295]{font-size:%?180?%;line-height:1;color:#f3f2f7}.empty__icon .icon-image[data-v-6cf0f295]{width:%?180?%;height:%?180?%}.empty__tips[data-v-6cf0f295]{color:#aaa;font-size:%?32?%;margin-top:%?20?%}.empty__custom[data-v-6cf0f295]{margin-top:%?24?%}',""]),t.exports=e},dae0:function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{}},filters:{orderStatusValue:function(t,e,r){switch(t){case 1:return 1!==e?"待付款":2===r?"待确认":"待接单";case 2:return"已确认";case 3:return"待配送";case 4:return"配送中";case 5:return"已完成";case 6:return"已取消";default:return""}},orderStatusValueTow:function(t,e,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return 3==r&&a?6!=t?"商家备货中":"已取消":1==t?1!==e?"待付款":2===r?"待确认":"待接单":2==t?2===r||3===r?"商家备货中":"商家备货中,等待骑手接单":3==t?"待配送":4==t?7==i?"待取货":"配送中":5==t?"已完成":6==t?"已取消":void 0},orderTypeValue:function(t,e){switch(t){case 1:return"外卖";case 2:return 1===e?"自提":"店内";case 3:return"店内";default:return""}}},computed:{orderStatusColorClass:function(){return function(t,e){var r="gray";switch(t){case 1:r=1===e?"orangeyellow":"red";break;case 2:r="orangered";break;case 3:r="blue";break;case 4:r="bluepurple";break;case 5:r="green--dark";break}return"tn-color-".concat(r)}},creditshopOrderStatus:function(){return function(t,e){var r="gray";if(0===e)r="red";else switch(t){case 0:r="blue";break;case 1:r=1===e?"orangeyellow":"red";break;case 2:r="green--dark";break;case 3:r="red";break}return"tn-color-".concat(r)}},mallOrderStatusColorClass:function(){return function(t){var e="gray";switch(t){case"nopay":e="orangeyellow";break;case"noget":e="orangered";break;case"nosend":e="blue";break;case"refund_finish":e="bluepurple";break;case"refund_ing":e="green--dark";break;case"cancel":e="red";break}return"tn-color-".concat(e)}}}};e.default=i},dc1c:function(t,e,r){"use strict";r.r(e);var i=r("5c2e"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},de1c:function(t,e,r){"use strict";var i=r("9cae"),a=r.n(i);a.a},ec01:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"empty"},[r("v-uni-view",{staticClass:"empty__icon"},[t.isImage?r("v-uni-view",{staticClass:"icon-image"},[r("v-uni-image",{staticClass:"image",attrs:{src:t.icon,mode:"aspectFill"}})],1):t._e(),r("v-uni-view",{staticClass:"icon-icon"},[r("v-uni-text",{class:["tn-icon-"+t.icon]})],1)],1),t.tips?r("v-uni-view",{staticClass:"empty__tips"},[t._v(t._s(t.tips))]):t._e(),r("v-uni-view",{staticClass:"empty__custom"},[t._t("default")],2)],1)},a=[]},f456:function(t,e,r){var i=r("2370");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("2cd71374",i,!0,{sourceMap:!1,shadowMode:!1})}}]);