(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-order~system-page-order-index"],{1138:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.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:""},enableLazyLoad:{type:Boolean,default:!0}},computed:{thresholdValue:function(){var e=uni.upx2px(Math.abs(this.threshold));return this.threshold<0?-e:e},lazyLoadItemStyle:function(){var e={};return e.opacity=Number(this.opacity),this.borderRadius&&(e.borderRadius=this.borderRadius),e.backgroundColor=this.bgColor,e.transition="opacity ".concat(this.time/1e3,"s ").concat(this.effect),e.height=this.$tn.string.getLengthUnitValue(this.height),e},imageStyle:function(){var e={};return"string"===typeof this.height&&-1===this.height.indexOf("%")&&(e.height=this.$tn.string.getLengthUnitValue(this.height)),e}},watch:{show:function(e){var t=this;this.effect&&(this.time=0,this.opacity=0,setTimeout((function(){t.time=t.duration,t.opacity=1}),30))},src:function(e){e?(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 e=this;this.$nextTick((function(){uni.$once("tOnLazyLoadReachBottom",(function(){e.show||(e.show=!0)}))})),this.enableLazyLoad?setTimeout((function(){e.disconnectObserver(e.observerName);var t=uni.createIntersectionObserver(e);t.relativeToViewport({bottom:e.thresholdValue}).observe(".tn-lazy-load__item--".concat(e.elIndex),(function(t){t.intersectionRatio>0&&(e.show=!0,e.disconnectObserver(e.observerName))})),e[e.observerName]=t}),50):this.show=!0},methods:{init:function(){this.error=!1,this.loadStatus=""},handleImgClick:function(){var e="";e=!1===this.show?"lazyImg":!0===this.error?"errorImg":"realImg",this.$emit("click",{index:this.index,whichImg:e})},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(e){var t=this[e];t&&t.disconnect&&t.disconnect()}},beforeDestroy:function(){this.disconnectObserver(this.observerName)}};t.default=i},"375a":function(e,t,r){var i=r("dff1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=r("967d").default;a("28bb376a",i,!0,{sourceMap:!1,shadowMode:!1})},"3fb4":function(e,t,r){var i=r("c86c");t=i(!1),t.push([e.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-6a8ecf09]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item[data-v-6a8ecf09]{width:100%;height:100%;border-radius:inherit;overflow:hidden}.tn-lazy-load__item__content[data-v-6a8ecf09]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item__image[data-v-6a8ecf09]{display:block;width:100%;height:100%;border-radius:inherit;-webkit-transform:transition3d(0,0,0);transform:transition3d(0,0,0);will-change:transform}',""]),e.exports=t},"44ca":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("c223");var i=r("419c"),a=r("9d0a"),n=r("af51"),o={methods:{navAnotherOrder:function(e,t,r,a){a?(0,i.navPage)(a):(0,i.navPage)("/store-page/product-showcase/template-1?sid=".concat(e,"&order_id=").concat(t))},navAppraiseOrder:function(e){(0,i.navPage)("/order-page/appraise-order/index?id=".concat(e))},cancelOrder:function(e,t){(0,a.showModal)({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,callback:function(r){r&&(0,n.cancelOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-cancel]取消订单失败",e),(0,a.showToast)({title:"取消订单失败, 请重试"})}))}})},confitmOrder:function(e,t){(0,a.showModal)({title:"提示",content:"确认需要完成订单吗?",showCancel:!0,callback:function(r){r&&(0,n.confirmOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-confirm]确认订单失败",e),(0,a.showToast)({title:"确认订单失败, 请重试"})}))}})}}};t.default=o},"6e6a":function(e,t,r){"use strict";r.r(t);var i=r("a720"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},"718f":function(e,t,r){"use strict";r.r(t);var i=r("ac79"),a=r("6e6a");for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);r("9a2e");var o=r("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"354d1c2a",null,!1,i["a"],void 0);t["default"]=s.exports},"787c":function(e,t,r){"use strict";var i=r("c099"),a=r.n(i);a.a},"7cdd":function(e,t,r){"use strict";r.r(t);var i=r("1138"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},"80db":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;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--"+e.elIndex],staticStyle:{color:"#aaaaaa !important"},style:[e.lazyLoadItemStyle]},[r("v-uni-view",{staticClass:"tn-lazy-load__item__content"},[e.error?r("v-uni-image",{staticClass:"tn-lazy-load__item__image tn-lazy-load__item__image--error",style:[e.imageStyle],attrs:{src:e.errorImg,mode:e.imgMode},on:{load:function(t){arguments[0]=t=e.$handleEvent(t),e.handleErrorImgLoaded.apply(void 0,arguments)},click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleImgClick.apply(void 0,arguments)}}}):r("v-uni-image",{staticClass:"tn-lazy-load__item__image",style:[e.imageStyle],attrs:{src:e.show?e.src:e.loadingImg,mode:e.imgMode},on:{load:function(t){arguments[0]=t=e.$handleEvent(t),e.handleImgLoaded.apply(void 0,arguments)},error:function(t){arguments[0]=t=e.$handleEvent(t),e.handleImgError.apply(void 0,arguments)},click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleImgClick.apply(void 0,arguments)}}})],1)],1)],1)},a=[]},"9a2e":function(e,t,r){"use strict";var i=r("375a"),a=r.n(i);a.a},a720:function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("d4b5"),r("4626"),r("5ac7");var a=i(r("dc1f")),n=i(r("dae0")),o=i(r("44ca")),s=i(r("34cae")),d=r("419c"),c=(i(r("8c27")),r("d240")),u=(r("262c"),r("e0a2")),l={props:{data:{type:Array,default:function(){return[]}}},components:{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:"",open_lock_string:""}},methods:{payOrder:function(e){var t=this;this.currentOrderId=e,this.$nextTick((function(){setTimeout((function(){t.showPaySelectModal=!0}),150)}))},cancelPayEvent:function(){},successPayEvent:function(){this.showPaySelectModal=!1,this.$emit("refresh-data")},failPayEvent:function(){this.showPaySelectModal=!1},navStore:function(e,t,r,i){1==r?(0,d.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid=".concat(e)):2==r&&i?(0,d.navPage)("".concat(i)):(0,d.navPage)("/store-page/product-showcase/template-1?sid=".concat(e))},navOrderDetail:function(e){(0,d.navPage)("/order-page/takeout-order-detail/index?id=".concat(e,"&from=list"))},cancelOrderCallback:function(){this.$emit("refresh-data")},openLock:function(e){var t=this;uni.showModal({title:"提示",content:"请确认是否开柜",success:function(r){r.confirm&&(t.loadingShow=!0,(0,c.getChannelApi)(e.id).then((function(r){console.log("res",r),e.lock_result.order_sn=r.data.order_sn,e.lock_result.channel_id=r.data.channel_id,e.lock_result.device_sn=r.data.device_sn,t.openWebSocket(e)})))}})},openWebSocket:function(e){var t=this,r={userClient:"user",type:"unlockChannel",method:"order_sn",order_sn:e.lock_result.order_sn,channel_id:e.lock_result.channel_id,device_sn:e.lock_result.device_sn},i=JSON.stringify(r);t.open_lock_string=i;var a=u.LOCK_WEBSOCKET_URL;uni.connectSocket({url:a}),uni.onSocketOpen((function(e){console.log("WebSocket连接已打开!"),uni.sendSocketMessage({data:i})})),uni.onSocketMessage((function(e){console.log("收到服务器内容:"+JSON.stringify(e)),e.data.includes("open_lock_success")&&(t.loadingShow=!1,uni.showToast({title:"开柜成功",icon:"none",duration:2e3}),uni.showModal({title:"提示",content:"是否开门",cancelText:"重开门",confirmText:"已开门",success:function(e){e.confirm?(console.log("用户点击确定已经开门,关闭连接"),t.open_lock_string="",uni.closeSocket(),setTimeout((function(){t.$emit("refresh-data")}),1e3)):e.cancel&&(console.log("点击重试,重新开锁"),uni.sendSocketMessage({data:t.open_lock_string}))}}))}))},openQrcode:function(e){this.order_qrcode=e,this.qrcode_box_show=!0},expansion_close:function(){this.qrcode_box_show=!1},cancelOrder:function(e,t,r,i,a){var n=this;if(1!=a)if(0!=i)if(1==r){var o="once";t&&(o="one_touch"),uni.showModal({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,success:function(t){t.confirm&&(0,d.navPage)("/order-page/takeout-order-refund/index?id="+e+"&type="+o)}})}else uni.showToast({title:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",icon:"none",duration:2e3});else uni.showModal({title:"提示",content:"订单未支付,是否确认取消订单??",showCancel:!0,success:function(t){t.confirm&&(0,c.cancelOrderApi)({id:e}).then((function(){n.$emit("refresh-data")}))}});else uni.showToast({title:"退款申请中,请耐心等待",icon:"none",duration:2e3})}}};t.default=l},ac79:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return i}));var i={loading:r("8c27").default,tnLazyLoad:r("b461").default},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"theme-takeaway-order order-list"},[e.loadingShow?r("loading"):e._e(),e._l(e.data,(function(t,i){return r("v-uni-view",{key:i,staticClass:"order-item tn-shadow",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navOrderDetail(t.id)}}},[r("v-uni-view",{staticClass:"top-info",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navStore(t.sid,t.pageShowType,t.is_haodian,t.custom_links)}}},[r("v-uni-view",{staticClass:"store-avatar"},[r("v-uni-view",{staticClass:"image"},[r("tn-lazy-load",{attrs:{src:t.storeInfo.image}})],1),t.storeInfo.business?r("v-uni-view",{staticClass:"business-tag theme-business-tag"},[e._v("营业")]):e._e()],1),r("v-uni-view",{staticClass:"top-right"},[r("v-uni-view",{staticClass:"top-right-line"},[r("v-uni-view",{staticClass:"store-title tn-text-ellipsis-1"},[e._v(e._s(t.storeInfo.title))]),1==t.is_clothes&&3==t.orderStatus?r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v("待上门取件")]):1==t.is_clothes&&4==t.orderStatus?r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v(e._s(t.delivery_status_cn))]):t.custom_status_text?r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v(e._s(t.custom_status_text))]):r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v(e._s(e._f("orderStatusValue")(t.orderStatus,t.isPay,t.orderType)))])],1),r("v-uni-view",{staticClass:"top-right-line"},[r("v-uni-view",{staticClass:"order-type theme-orderType"},[e._v(e._s(e._f("orderTypeValue")(t.orderType,t.zitiType)))])],1)],1)],1),r("v-uni-view",{staticClass:"product-list"},[1===t.goodsInfo.length?r("v-uni-view",{staticClass:"single-product tn-flex-row-center"},[r("v-uni-view",{staticClass:"product-image"},[r("v-uni-image",{staticClass:"image",attrs:{src:t.goodsInfo[0].image,mode:"aspectFill"}})],1),r("v-uni-view",{staticClass:"product-info"},[r("v-uni-view",{staticClass:"title tn-text-ellipsis-2"},[e._v(e._s(t.goodsInfo[0].title))]),r("v-uni-view",{staticClass:"num"},[e._v("数量: "+e._s(t.goodsInfo[0].num))])],1)],1):r("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-x":!0}},[r("v-uni-view",{staticClass:"tn-flex-row-center"},e._l(t.goodsInfo,(function(t,i){return r("v-uni-view",{key:i,staticClass:"product-item"},[r("v-uni-view",{staticClass:"item-image"},[r("v-uni-image",{staticClass:"image",attrs:{src:t.image,mode:"aspectFill"}}),r("v-uni-view",{staticClass:"item-num"},[e._v("x "+e._s(t.num))])],1),r("v-uni-view",{staticClass:"item-title tn-text-ellipsis-1"},[e._v(e._s(t.title))])],1)})),1)],1),r("v-uni-view",{staticClass:"order-price-count-info"},[r("v-uni-view",{staticClass:"order-price"},[r("v-uni-view",{staticClass:"unit tn-color-gray--dark"},[e._v(e._s(e.CurrencyUnit))]),r("v-uni-view",{staticClass:"value"},[e._v(e._s(t.orderPrice))])],1),r("v-uni-view",{staticClass:"order-count tn-color-gray--dark"},[e._v("共"+e._s(t.goodsCount)+"件")])],1)],1),r("v-uni-view",{staticClass:"tn-no-margin-top tn-full-width tn-flex-center-between"},[r("v-uni-view",{staticClass:"create-time"},[e._v("下单时间: "+e._s(t.createTime))])],1),r("v-uni-view",{staticClass:"operation-btn tn-flex-center-end"},[1===t.isPay&&5===t.orderStatus&&0==t.isComment?r("v-uni-view",{staticClass:"btn again-order theme-operation-btn",style:[e.themeBtnStyle],on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navAppraiseOrder(t.id)}}},[e._v("去评价")]):e._e(),[5,6].includes(t.orderStatus)?r("v-uni-view",{staticClass:"btn again-order theme-operation-btn",style:[e.themeBtnStyle],on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navAnotherOrder(t.sid,t.id,"",t.storeInfo.custom_links||"")}}},[e._v("再来一单")]):e._e(),0===t.isPay&&t.orderStatus<5?r("v-uni-view",{staticClass:"btn to-pay theme-operation-btn",style:[e.themeBtnStyle],on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.payOrder(t.id)}}},[e._v("立即支付")]):e._e(),1===t.orderStatus?r("v-uni-view",{staticClass:"btn tn-bg-gray theme-operation-btn-out",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.cancelOrder(t.id,t.ontouch_order_id,t.consumer_is_can_applyrefund,t.isPay,t.refund_status)}}},[0==t.isPay?r("v-uni-text",[e._v("取消支付")]):e._e(),1==t.isPay&&1==t.refund_status?r("v-uni-text",[e._v("退款申请中")]):e._e(),1==t.isPay&&0==t.refund_status?r("v-uni-text",[e._v("取消订单")]):e._e()],1):e._e()],1)],1)})),e.qrcode_box_show?r("v-uni-view",{staticClass:"expansion"},[r("v-uni-view",{staticClass:"expansion_box"},[r("v-uni-view",{staticClass:"expansion_box_title"},[e._v("取餐二维码")]),r("v-uni-view",{staticClass:"expansion_box_img"},[r("img",{attrs:{src:e.order_qrcode,mode:"widthFix"}})])],1),r("v-uni-view",{staticClass:"expansion_close"},[r("img",{attrs:{src:"https://qny.wdsp666.com/uploads/images/20230912165851ec7463500.png",alt:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.expansion_close.apply(void 0,arguments)}}})])],1):e._e(),r("pay-select-modal",{attrs:{"order-id":e.currentOrderId,"order-type":"takeout"},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.successPayEvent.apply(void 0,arguments)},fail:function(t){arguments[0]=t=e.$handleEvent(t),e.failPayEvent.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelPayEvent.apply(void 0,arguments)}},model:{value:e.showPaySelectModal,callback:function(t){e.showPaySelectModal=t},expression:"showPaySelectModal"}})],2)},n=[]},af51:function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderCommentPageInfoApi=t.getCutTImeData=t.cutOffSwit=t.confirmOrderApi=t.confirmErranderOrderApi=t.cancelTcOrderApi=t.cancelOrderApi=t.cancelErranderOrderApi=t.addOrderCommentApi=void 0;var a=i(r("7653"));t.getOrderCommentPageInfoApi=function(e){var t=e.id,r=e.order_type;return a.default.get("api/user.order.comment/getPageParams",{id:t,order_type:r})};t.addOrderCommentApi=function(e){var t=e.id,r=e.deliverScore,i=e.goodsQuality,n=e.note,o=e.thumbs,s=e.order_type;return a.default.post("api/user.order.comment/create",{id:t,deliverScore:r||0,goods_quality:i||0,note:n||"",thumbs:o||[],order_type:s||"takeout"})};t.cancelTcOrderApi=function(e){return a.default.post("/api/user.mealRedpacket.meal_redpacket_order/cancelOrder",{order_id:e})};t.cancelOrderApi=function(e){return a.default.post("api/user.order.order/cancel",{id:e})};t.confirmOrderApi=function(e){return a.default.post("api/user.order.order/end",{id:e})};t.cancelErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/cancel",{id:e})};t.confirmErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/confirm",{id:e})};t.cutOffSwit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.default.get("api/user.order.cut_time/getOpen?sid="+e,{})};t.getCutTImeData=function(){return a.default.get("api/user.order.cut_time/list",{})}},b461:function(e,t,r){"use strict";r.r(t);var i=r("80db"),a=r("7cdd");for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);r("787c");var o=r("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"6a8ecf09",null,!1,i["a"],void 0);t["default"]=s.exports},b780:function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitOrderApi=t.getOrderPreInfoApi=t.getOrderListApi=t.getOrderDetailApi=t.getLogisticsApi=t.getJieLongConfigApi=t.confirmOrderApi=t.commentOrderApi=t.cancelOrderApi=t.applyAfterSaleApi=void 0;var a=i(r("7653"));t.getOrderPreInfoApi=function(e){return a.default.post("api/user.order.mall_order_create/indexBefore",e)};t.submitOrderApi=function(e){return a.default.post("api/user.order.mall_order_create/createOrder",e)};t.getOrderListApi=function(e){return a.default.get("api/user.order.mall_order/index?page="+e.page+"&limit=10&status=0")};t.getOrderDetailApi=function(e){return a.default.get("api/user.order.mall_order/orderDetail?id="+e)};t.getLogisticsApi=function(e){return a.default.get("api/user.order.mall_order/logistics?id="+e)};t.cancelOrderApi=function(e){return a.default.post("api/user.order.mall_order/cancelOrder",{id:e})};t.confirmOrderApi=function(e){return a.default.post("api/user.order.mall_order/confirmOrder",{id:e})};t.commentOrderApi=function(e){return a.default.post("api/user.order.mall_order/commentOrder",e)};t.applyAfterSaleApi=function(e){return a.default.post("api/user.order.mall_order/applyAfterSale",e)};t.getJieLongConfigApi=function(e){return a.default.get("api/user.order.mall_order/jielongConfig?id="+e)}},c099:function(e,t,r){var i=r("3fb4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=r("967d").default;a("6bc62776",i,!0,{sourceMap:!1,shadowMode:!1})},d240:function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.searchExpressApi=t.orderStatusListApi=t.orderNoticeApi=t.getVisaOrderListApi=t.getVisaOrderDetailApi=t.getTakeoutOrderListApi=t.getTakeoutOrderDetailApi=t.getSpecialDeliveryStatusApi=t.getRefundReasonApi=t.getPaybillOrderListApi=t.getPaybillOrderDetailApi=t.getOrderwuliuApi=t.getOrderMapPathApi=t.getOrderIdByOutTradeNoApi=t.getErranderOrderListApi=t.getErranderOrderDetailApi=t.getChannelApi=t.getAllOrderListApi=t.getAirportPickupDetail=t.cancelOrderApi=t.applyRefundApi=void 0;var a=i(r("7653"));t.getTakeoutOrderListApi=function(e){var t=e.page,r=e.psize,i=e.status_index;return a.default.get("api/user.order.order/list",{page:t,psize:r,status_index:i})};t.getAllOrderListApi=function(){return a.default.get("api/user.order.order/allOrderList")};t.getTakeoutOrderDetailApi=function(e){var t=e.id,r=e.type;return a.default.get("api/user.order.order/detail",{id:t,type:r})};t.getErranderOrderListApi=function(e){var t=e.page,r=e.psize;return a.default.get("api/user.order.errander.errander/viList",{page:t,psize:r})};t.getErranderOrderDetailApi=function(e){var t=e.id;return a.default.get("api/user.order.errander.errander/detail",{id:t})};t.getVisaOrderListApi=function(e){return a.default.post("api/user.visa.order/list",e)};t.getVisaOrderDetailApi=function(e){return a.default.post("api/user.visa.order/detail",e)};t.getAirportPickupDetail=function(e){return a.default.post("api/user.airportTransfer.order/detail",e)};t.getPaybillOrderListApi=function(e){var t=e.page,r=e.psize;return a.default.get("api/user.order.paybill/list",{page:t,psize:r})};t.getPaybillOrderDetailApi=function(e){var t=e.id;return a.default.get("api/user.order.paybill/detail",{id:t})};t.getOrderMapPathApi=function(e){return a.default.post("api/user.order.order/mapPath",e)};t.getSpecialDeliveryStatusApi=function(e){return a.default.post("api/user.order.order/getSpecialDeliveryStatus",e)};t.getOrderIdByOutTradeNoApi=function(e){return a.default.post("api/user.order.order/getOrderIdByOutTradeNo",e)};t.getOrderwuliuApi=function(e){return a.default.post("api/user.order.order/wuliu",e)};t.getChannelApi=function(e){return a.default.get("api/user.order.order/getChannel?id="+e)};t.getRefundReasonApi=function(){return a.default.get("api/user.order.order/getRefundReason")};t.applyRefundApi=function(e){return a.default.post("api/user.order.order/applyRefund",e)};t.cancelOrderApi=function(e){return a.default.post("api/user.order.order/cancel",e)};t.orderNoticeApi=function(e){return a.default.post("api/user.order.order/orderNotice",e)};t.orderStatusListApi=function(e){return a.default.get("api/user.order.order/orderStatusList?id="+e)};t.searchExpressApi=function(e){return a.default.post("api/user.order.order/searchExpress",e)}},dae0:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{}},filters:{orderStatusValue:function(e,t,r){switch(e){case 1:return 1!==t?"待付款":2===r?"待确认":"待接单";case 2:return"已确认";case 3:return"待配送";case 4:return"配送中";case 5:return"已完成";case 6:return"已取消";default:return""}},orderStatusValueTow:function(e,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return 3==r&&a?6!=e?"商家备货中":"已取消":1==e?1!==t?"待付款":2===r?"待确认":"待接单":2==e?2===r||3===r?"商家备货中":"商家备货中,等待骑手接单":3==e?"待配送":4==e?7==i?"待取货":"配送中":5==e?"已完成":6==e?"已取消":void 0},orderTypeValue:function(e,t){switch(e){case 1:return"外卖";case 2:return 1===t?"自提":"店内";case 3:return"店内";default:return""}}},computed:{orderStatusColorClass:function(){return function(e,t){var r="gray";switch(e){case 1:r=1===t?"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(e,t){var r="gray";if(0===t)r="red";else switch(e){case 0:r="blue";break;case 1:r=1===t?"orangeyellow":"red";break;case 2:r="green--dark";break;case 3:r="red";break}return"tn-color-".concat(r)}},mallOrderStatusColorClass:function(){return function(e){var t="gray";switch(e){case"nopay":t="orangeyellow";break;case"noget":t="orangered";break;case"nosend":t="blue";break;case"refund_finish":t="bluepurple";break;case"refund_ing":t="green--dark";break;case"cancel":t="red";break}return"tn-color-".concat(t)}}}};t.default=i},dff1:function(e,t,r){var i=r("c86c");t=i(!1),t.push([e.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-354d1c2a]{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-354d1c2a]:first-child{margin-top:%?0?%}.order-item .top-info[data-v-354d1c2a]{width:100%;display:flex}.order-item .top-info .store-avatar[data-v-354d1c2a]{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-354d1c2a]{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-354d1c2a]{flex:1;margin-left:%?20?%}.order-item .top-info .top-right .top-right-line[data-v-354d1c2a]{display:flex;align-items:center;justify-content:space-between}.order-item .top-info .top-right .top-right-line + .top-right-line[data-v-354d1c2a]{margin-top:%?8?%}.order-item .top-info .top-right .store-title[data-v-354d1c2a]{flex:1;font-size:%?32?%;font-weight:500}.order-item .top-info .top-right .order-status[data-v-354d1c2a]{font-size:%?34?%;padding-left:%?40?%}.order-item .top-info .top-right .order-type[data-v-354d1c2a]{border-radius:%?4?%;line-height:1;padding:%?4?% %?12?%}.order-item .product-list[data-v-354d1c2a]{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-354d1c2a]{position:relative;width:100%;padding-right:%?140?%}.order-item .product-list .single-product .product-image[data-v-354d1c2a]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .single-product .product-info[data-v-354d1c2a]{width:calc(100% - %?140?%);padding-left:%?20?%;font-size:%?30?%}.order-item .product-list .single-product .product-info .num[data-v-354d1c2a]{margin-top:%?8?%}.order-item .product-list .scroll-view[data-v-354d1c2a]{padding-right:%?140?%}.order-item .product-list .product-item[data-v-354d1c2a]{flex-shrink:0;width:%?160?%}.order-item .product-list .product-item .item-image[data-v-354d1c2a]{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-354d1c2a]{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-354d1c2a]{width:100%;font-size:%?20?%;color:#aaa;margin-top:%?6?%}.order-item .product-list .order-price-count-info[data-v-354d1c2a]{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-354d1c2a]{font-size:%?24?%}.order-item .product-list .order-price-count-info .order-price[data-v-354d1c2a]{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-354d1c2a]{font-size:%?24?%;margin-right:%?4?%}.order-item .create-time[data-v-354d1c2a]{font-size:%?24?%;color:#aaa}.order-item .operation-btn[data-v-354d1c2a]{margin-top:%?26?%}.order-item .operation-btn .btn[data-v-354d1c2a]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background-color:#ffca28;color:#080808}.order-item .operation-btn .btn + .btn[data-v-354d1c2a]{margin-left:%?16?%}\n/* 订单列表item end */\n/* 膨胀红包 */.expansion[data-v-354d1c2a]{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-354d1c2a]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-354d1c2a]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-354d1c2a]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-354d1c2a]{width:100%}.expansion .expansion_box .line4[data-v-354d1c2a]{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-354d1c2a]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-354d1c2a]{width:%?60?%;height:%?60?%}',""]),e.exports=t},f9ce:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkUserIsLogin=void 0,r("bf0f");var i=r("262c");t.checkUserIsLogin=function(){return new Promise((function(e,t){var r=(0,i.getTokenFromCache)();return r?e():t()}))}}}]);