1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-order"],{"0cb7":function(e,t,r){"use strict";r.r(t);var a=r("510a"),n=r("7e17");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("d9d3");var o=r("828b"),d=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"ed5bf604",null,!1,a["a"],void 0);t["default"]=d.exports},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 a={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=a},"371b":function(e,t,r){"use strict";r("6a54");var a=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("64aa"),r("bf0f"),r("c223"),r("fd3c"),r("2797"),r("8f71"),r("dc8a"),r("aa9c");var n=a(r("6fbe")),i=a(r("dc1f")),o=a(r("a71b")),d=a(r("718f")),s=r("815c"),c=(r("419c"),a(r("8c27"))),u=r("9d0a"),l=r("d240"),f=r("f9ce"),p=r("b780"),g={props:{typeIndex:{type:[String,Number],default:0}},components:{Empty:o.default,TakeoutOrderList:d.default,loading:c.default},mixins:[n.default,i.default],data:function(){return{orderData:[],orderTypes:[{id:1,name:"外卖订单"}],currentSelectOrderTypeIndex:0,currentPage:1,pageSize:10,isLoadAll:!1,isLogin:!0,loadingShow:!1}},watch:{typeIndex:{handler:function(e){this.currentSelectOrderTypeIndex=Number(e||0),this.getOrderListData()},immediate:!0}},created:function(){this.initCustomNavBarInfo()},methods:{getOrderListData:function(){0===this.currentSelectOrderTypeIndex?this.getTakeoutOrderData():2===this.currentSelectOrderTypeIndex?this.getPaybillOrderData():3==this.currentSelectOrderTypeIndex&&this.getMallOrderData(),uni.stopPullDownRefresh()},getTakeoutOrderData:function(){var e=this;this.loadingShow=!0,(0,l.getTakeoutOrderListApi)({page:this.currentPage,psize:this.pageSize}).then((function(t){e.isLogin=!0;var r=(null===t||void 0===t?void 0:t.orders)||[];e.orderData=e.orderData.concat(r.map((function(e){var t,r,a=[],n=0,i=e.goods.length;e.goods.filter((function(e){return 88888!=e.goods_id})).forEach((function(e){var t=e.options[Object.keys(e.options)[0]];t.num&&(n+=t.num,a.push({title:t.title,image:t.thumb,num:t.num}))}));var o=(null===(t=e.store)||void 0===t?void 0:t.is_rest)||0,d=(null===(r=e.store)||void 0===r?void 0:r.is_in_business)||0;return{id:e.id||e.aid,sid:e.sid,storeInfo:{title:e.title||"",image:e.logo||"",business:0==o||1==d?1:0},isPay:(null===e||void 0===e?void 0:e.is_pay)||0,isComment:(null===e||void 0===e?void 0:e.is_comment)||0,orderType:e.order_type,zitiType:(null===e||void 0===e?void 0:e.ziti_type)||0,orderStatus:e.status,createTime:e.addtime||"",orderPrice:e.total_fee,goodsInfo:a,productCount:i,goodsCount:n}}))),r.length<e.pageSize&&(e.isLoadAll=!0)})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1}))},getErranderOrderData:function(){var e=this;this.loadingShow=!0,(0,l.getErranderOrderListApi)({page:this.currentPage,psize:this.pageSize}).then((function(t){var r=(null===t||void 0===t?void 0:t.orders)||[];e.orderData=e.orderData.concat(r.map((function(e){return{id:e.id,title:e.title,isPay:e.is_pay,status:e.status,buyAddress:e.buy_address,buyUsername:e.buy_username,buyMobile:e.buy_mobile,acceptAddress:e.accept_address,acceptUsername:e.accept_username,acceptMobile:e.accept_mobile,addTime:e.addtime,price:Number(e.final_fee)}}))),r.length<e.pageSize&&(e.isLoadAll=!0)})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1}))},getPaybillOrderData:function(){var e=this;this.loadingShow=!0,(0,l.getPaybillOrderListApi)({page:this.currentPage,psize:this.pageSize}).then((function(t){var r=(null===t||void 0===t?void 0:t.orders)||[];e.isLogin=!0,e.orderData=e.orderData.concat(r.map((function(e){return{id:e.id,image:e.logo,title:e.title,addtime:e.addtime,is_pay:e.is_pay,price:Number(e.total_fee)}}))),r.length<e.pageSize&&(e.isLoadAll=!0)})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1}))},getMallOrderData:function(){var e=this;this.loadingShow=!0,(0,p.getOrderListApi)({page:this.currentPage}).then((function(t){console.log(t);var r=t||[];e.orderData=e.orderData.concat(r.map((function(e){return e})))})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1}))},orderTypeChangeEvent:function(e){this.currentSelectOrderTypeIndex=e,this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getOrderListData()},reLoadOrderData:function(){var e=this;(0,f.checkUserIsLogin)().then((function(){e.isLogin||(e.currentSelectOrderTypeIndex=0,e.currentPage=1,e.isLoadAll=!1,e.orderData=[],e.getOrderListData())})).catch((function(){(0,u.showToast)({title:"请先登录"})}))},loadMoreOrder:function(){this.isLoadAll||(this.currentPage++,this.getOrderListData())},handleRefreshDataEvent:function(){this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getOrderListData()},formatPrice:s.formatPrice}};t.default=g},"3fb4":function(e,t,r){var a=r("c86c");t=a(!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 a=r("419c"),n=r("9d0a"),i=r("af51"),o={methods:{navAnotherOrder:function(e,t,r,n){n?(0,a.navPage)(n):(0,a.navPage)("/store-page/product-showcase/template-1?sid=".concat(e,"&order_id=").concat(t))},navAppraiseOrder:function(e){(0,a.navPage)("/order-page/appraise-order/index?id=".concat(e))},cancelOrder:function(e,t){(0,n.showModal)({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,callback:function(r){r&&(0,i.cancelOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-cancel]取消订单失败",e),(0,n.showToast)({title:"取消订单失败, 请重试"})}))}})},confitmOrder:function(e,t){(0,n.showModal)({title:"提示",content:"确认需要完成订单吗?",showCancel:!0,callback:function(r){r&&(0,i.confirmOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-confirm]确认订单失败",e),(0,n.showToast)({title:"确认订单失败, 请重试"})}))}})}}};t.default=o},"510a":function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return a}));var a={loading:r("8c27").default,tnTabs:r("37fc").default},n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"order-page component-page-padding-bottom"},[e.loadingShow?r("loading"):e._e(),r("v-uni-view",{staticClass:"navbar tn-shadow",style:[e.navBarStyle]},[r("v-uni-view",{staticClass:"navbar__title tn-flex-center",style:[e.navbarContentStyle]},[e._v("订单")])],1),r("v-uni-view",{staticClass:"order-type-select tn-shadow",style:[{top:e.navBarInfo.height+"px"}]},[r("tn-tabs",{attrs:{list:e.orderTypes,current:e.currentSelectOrderTypeIndex,"active-color":"var(--theme-general-color)","is-scroll":!1},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.orderTypeChangeEvent.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"order-page__wrapper component-page-padding-bottom",style:[{paddingTop:e.navBarInfo.height+50+"px"}]},[e.orderData.length>0?[0===e.currentSelectOrderTypeIndex?r("takeout-order-list",{attrs:{data:e.orderData},on:{"refresh-data":function(t){arguments[0]=t=e.$handleEvent(t),e.handleRefreshDataEvent.apply(void 0,arguments)}}}):e._e()]:e._e(),e.isLoadAll&&0===e.orderData.length?[r("empty",{attrs:{icon:"empty-data",tips:"订单为空"}})]:e._e()],2),r("v-uni-view",{staticClass:"refresh-btn tn-shadow tn-flex-center",style:[e.themeBtnStyle],attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleRefreshDataEvent.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"tn-icon-circle-arrow"})],1)],1)},i=[]},"5c2e":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("4626"),r("5ac7");var a={options:{virtualHost:!0},props:{icon:{type:String,default:""},tips:{type:String,default:""}},computed:{isImage:function(){return!!this.icon&&this.icon.includes("http")}}};t.default=a},"699b":function(e,t,r){var a=r("84b4");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("967d").default;n("1c9ca067",a,!0,{sourceMap:!1,shadowMode:!1})},"74ff":function(e,t,r){r("64aa"),e.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.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"787c":function(e,t,r){"use strict";var a=r("c099"),n=r.n(a);n.a},"7cdd":function(e,t,r){"use strict";r.r(t);var a=r("1138"),n=r.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},"7e17":function(e,t,r){"use strict";r.r(t);var a=r("371b"),n=r.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},"80db":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(){}));var a=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)},n=[]},"84b4":function(e,t,r){var a=r("c86c");t=a(!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/**\n * 组件页面公用css\n */.component-page-padding-bottom[data-v-ed5bf604]{padding-bottom:%?130?%;padding-bottom:calc(%?130?% + constant(safe-area-inset-bottom));padding-bottom:calc(%?130?% + env(safe-area-inset-bottom))}.order-page[data-v-ed5bf604]{position:relative;width:100%\n /* 自定义顶部导航 start */\n /* 自定义顶部导航 end */\n /* 订单类型选择 start */\n /* 订单类型选择 end */}.order-page__wrapper[data-v-ed5bf604]{position:relative;width:100%;padding:%?30?%}.order-page .navbar[data-v-ed5bf604]{position:fixed;left:0;top:0;width:100%;background-color:#fff;z-index:19999\n /* 标题 start */\n /* 标题 end */}.order-page .navbar__title[data-v-ed5bf604]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);line-height:1;font-size:%?32?%;font-weight:500}.order-page .order-type-select[data-v-ed5bf604]{position:fixed;left:0;width:100%;background-color:#fff;z-index:9999}\n/* 刷新按钮 start */.refresh-btn[data-v-ed5bf604]{position:fixed;right:%?20?%;bottom:%?260?%;width:%?80?%;height:%?80?%;border-radius:50%;font-size:%?50?%;z-index:1099}\n/* 刷新按钮 end */',""]),e.exports=t},"9cae":function(e,t,r){var a=r("cc53");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("967d").default;n("74ddcd86",a,!0,{sourceMap:!1,shadowMode:!1})},a71b:function(e,t,r){"use strict";r.r(t);var a=r("ec01"),n=r("dc1c");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("de1c");var o=r("828b"),d=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6cf0f295",null,!1,a["a"],void 0);t["default"]=d.exports},af51:function(e,t,r){"use strict";r("6a54");var a=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 n=a(r("7653"));t.getOrderCommentPageInfoApi=function(e){var t=e.id,r=e.order_type;return n.default.get("api/user.order.comment/getPageParams",{id:t,order_type:r})};t.addOrderCommentApi=function(e){var t=e.id,r=e.deliverScore,a=e.goodsQuality,i=e.note,o=e.thumbs,d=e.order_type;return n.default.post("api/user.order.comment/create",{id:t,deliverScore:r||0,goods_quality:a||0,note:i||"",thumbs:o||[],order_type:d||"takeout"})};t.cancelTcOrderApi=function(e){return n.default.post("/api/user.mealRedpacket.meal_redpacket_order/cancelOrder",{order_id:e})};t.cancelOrderApi=function(e){return n.default.post("api/user.order.order/cancel",{id:e})};t.confirmOrderApi=function(e){return n.default.post("api/user.order.order/end",{id:e})};t.cancelErranderOrderApi=function(e){return n.default.post("api/user.order.errander.errander/cancel",{id:e})};t.confirmErranderOrderApi=function(e){return n.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 n.default.get("api/user.order.cut_time/getOpen?sid="+e,{})};t.getCutTImeData=function(){return n.default.get("api/user.order.cut_time/list",{})}},b461:function(e,t,r){"use strict";r.r(t);var a=r("80db"),n=r("7cdd");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);r("787c");var o=r("828b"),d=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6a8ecf09",null,!1,a["a"],void 0);t["default"]=d.exports},c099:function(e,t,r){var a=r("3fb4");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=r("967d").default;n("6bc62776",a,!0,{sourceMap:!1,shadowMode:!1})},cc53:function(e,t,r){var a=r("c86c");t=a(!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 */.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?%}',""]),e.exports=t},d240:function(e,t,r){"use strict";r("6a54");var a=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 n=a(r("7653"));t.getTakeoutOrderListApi=function(e){var t=e.page,r=e.psize,a=e.status_index;return n.default.get("api/user.order.order/list",{page:t,psize:r,status_index:a})};t.getAllOrderListApi=function(){return n.default.get("api/user.order.order/allOrderList")};t.getTakeoutOrderDetailApi=function(e){var t=e.id,r=e.type;return n.default.get("api/user.order.order/detail",{id:t,type:r})};t.getErranderOrderListApi=function(e){var t=e.page,r=e.psize;return n.default.get("api/user.order.errander.errander/viList",{page:t,psize:r})};t.getErranderOrderDetailApi=function(e){var t=e.id;return n.default.get("api/user.order.errander.errander/detail",{id:t})};t.getVisaOrderListApi=function(e){return n.default.post("api/user.visa.order/list",e)};t.getVisaOrderDetailApi=function(e){return n.default.post("api/user.visa.order/detail",e)};t.getAirportPickupDetail=function(e){return n.default.post("api/user.airportTransfer.order/detail",e)};t.getPaybillOrderListApi=function(e){var t=e.page,r=e.psize;return n.default.get("api/user.order.paybill/list",{page:t,psize:r})};t.getPaybillOrderDetailApi=function(e){var t=e.id;return n.default.get("api/user.order.paybill/detail",{id:t})};t.getOrderMapPathApi=function(e){return n.default.post("api/user.order.order/mapPath",e)};t.getSpecialDeliveryStatusApi=function(e){return n.default.post("api/user.order.order/getSpecialDeliveryStatus",e)};t.getOrderIdByOutTradeNoApi=function(e){return n.default.post("api/user.order.order/getOrderIdByOutTradeNo",e)};t.getOrderwuliuApi=function(e){return n.default.post("api/user.order.order/wuliu",e)};t.getChannelApi=function(e){return n.default.get("api/user.order.order/getChannel?id="+e)};t.getRefundReasonApi=function(){return n.default.get("api/user.order.order/getRefundReason")};t.applyRefundApi=function(e){return n.default.post("api/user.order.order/applyRefund",e)};t.cancelOrderApi=function(e){return n.default.post("api/user.order.order/cancel",e)};t.orderNoticeApi=function(e){return n.default.post("api/user.order.order/orderNotice",e)};t.orderStatusListApi=function(e){return n.default.get("api/user.order.order/orderStatusList?id="+e)};t.searchExpressApi=function(e){return n.default.post("api/user.order.order/searchExpress",e)}},d9d3:function(e,t,r){"use strict";var a=r("699b"),n=r.n(a);n.a},dae0:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={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,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return 3==r&&n?6!=e?"商家备货中":"已取消":1==e?1!==t?"待付款":2===r?"待确认":"待接单":2==e?2===r||3===r?"商家备货中":"商家备货中,等待骑手接单":3==e?"待配送":4==e?7==a?"待取货":"配送中":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=a},dc1c:function(e,t,r){"use strict";r.r(t);var a=r("5c2e"),n=r.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},de1c:function(e,t,r){"use strict";var a=r("9cae"),n=r.n(a);n.a},ec01: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(){}));var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"empty"},[r("v-uni-view",{staticClass:"empty__icon"},[e.isImage?r("v-uni-view",{staticClass:"icon-image"},[r("v-uni-image",{staticClass:"image",attrs:{src:e.icon,mode:"aspectFill"}})],1):e._e(),r("v-uni-view",{staticClass:"icon-icon"},[r("v-uni-text",{class:["tn-icon-"+e.icon]})],1)],1),e.tips?r("v-uni-view",{staticClass:"empty__tips"},[e._v(e._s(e.tips))]):e._e(),r("v-uni-view",{staticClass:"empty__custom"},[e._t("default")],2)],1)},n=[]},f9ce:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkUserIsLogin=void 0,r("bf0f");var a=r("262c");t.checkUserIsLogin=function(){return new Promise((function(e,t){var r=(0,a.getTokenFromCache)();return r?e():t()}))}}}]);
|