(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order-page-express-order-detail-index"],{2695:function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r("b7c7"));r("fd3c"),r("bf0f"),r("2797"),r("aa9c"),r("e966");var o=i(r("dc1f")),n=i(r("dae0")),d=i(r("44ca")),s=i(r("34cae")),c=i(r("8c27")),l=r("9d0a"),u=r("419c"),f=r("815c"),p=i(r("fc1b")),v=(i(r("ae59")),r("d240")),g=r("b780"),m={components:{PaySelectModal:s.default,loading:c.default,CustomMap:p.default},mixins:[o.default,n.default,d.default],data:function(){return{orderId:0,from:"",orderInfo:{},btns:[],storeInfo:{},activityed:[],showPaySelectModal:!1,loadingShow:!1,mapInfo:{}}},computed:{orderProductTotalPrice:function(){return(0,f.formatPrice)(0)},itemNum:function(){var t=0;return this.orderInfo.mallOrderItem.map((function(e){t+=e.goods_num})),t}},onLoad:function(t){if(this.orderId=(null===t||void 0===t?void 0:t.id)||0,!this.orderId)return(0,l.showToast)({title:"缺少参数"});this.from=(null===t||void 0===t?void 0:t.from)||"",this.getOrderDetailData()},onPullDownRefresh:function(){this.getOrderDetailData()},methods:{payOrderEvent:function(){this.showPaySelectModal=!0},handlePaySuccessEvent:function(){this.showPaySelectModal=!1,this.getOrderDetailData()},handlePayFailEvent:function(){this.showPaySelectModal=!1},handlePayCancelEvent:function(){},getOrderDetailData:function(){var t=this,e=this;this.loadingShow=!0,(0,g.getOrderDetailApi)(this.orderId).then((function(t){e.orderInfo=t.data,e.btns=t.data.btns,e.orderInfo.statusTips="快递配送"})).catch((function(t){console.error("[order-detail]订单详情获取失败",t),(0,l.showToast)({title:t.msg}),(0,u.navBack)()})).finally((function(){t.loadingShow=!1}))},callStore:function(){(0,f.callPhone)(this.orderInfo.store.telephone)},handleBeforeNavBack:function(){return!0},getMapPath:function(t){var e=this,r=t.store,i=r.location_x,o=r.location_y,n=t.user,d=n.location_x,s=n.location_y;(0,v.getOrderMapPathApi)(t).then((function(t){var r=null===t||void 0===t?void 0:t.paths[0],n=r.steps,c=void 0===n?[]:n,l=[];c.forEach((function(t){var e=t.polyline,r=e.split(";").map((function(t){var e=t.split(",");return{latitude:(+e[1]).toFixed(5),longitude:(+e[0]).toFixed(5)}}));l.push.apply(l,(0,a.default)(r))})),e.mapInfo={fromCoordinate:{latitude:+i,longitude:+o},toCoordinate:{latitude:+d,longitude:+s},centerCoordinate:l[parseInt(l.length/2)],polyline:l},console.log(e.mapInfo)}))},refundOrder:function(){uni.showModal({title:"提示",content:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",showCancel:!1})},toWuliu:function(){(0,u.navPage)("/order-page/express-order-detail/wuliu?id=".concat(this.orderId))},cancelOrder:function(t){var e=this;uni.showModal({title:"提示",content:"确定取消订单吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(r){r.confirm&&(0,g.cancelOrderApi)(t).then((function(){e.getOrderDetailData(),e.$emit("cancel-order-callback")}))}})},confirmOrder:function(t){var e=this;uni.showModal({title:"提示",content:"确定收货吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(r){r.confirm&&(0,g.confirmOrderApi)(t).then((function(){e.$emit("confirm-order-callback")}))}})},commentOrder:function(t){var e=this;uni.showModal({title:"提示",content:"确定完成订单吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(r){r.confirm&&(0,g.commentOrderApi)({id:t}).then((function(){e.$emit("comment-order-callback")}))}})},applyAfterSale:function(t){var e=this;uni.showModal({title:"提示",content:"确定申请售后吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(r){r.confirm&&(0,g.applyAfterSaleApi)({id:t}).then((function(){e.$emit("apply-after-sale-callback")}))}})},copyToClipBoard:f.copyToClipBoard}};e.default=m},"2ddd":function(t,e,r){"use strict";r.r(e);var i=r("f365"),a=r("6bbe");for(var o in a)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(o);r("c860");var n=r("828b"),d=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,"9202444e",null,!1,i["a"],void 0);e["default"]=d.exports},"42a5":function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(r("9b1b"));r("64aa"),r("c223"),r("aa9c"),r("5ef2");var o={props:{status:Number,info:{type:Object,default:{fromCoordinate:null,toCoordinate:null,centerCoordinate:null,polyline:[],minutes:0,delivery_status:!1}},order_type:{type:String,default:"takeout"}},data:function(){return{markers:[],includePoints:[],padding:["60","60","60","60"],maxScale:16,isShow:!1,polyline:[]}},watch:{info:function(t){t.fromCoordinate&&t.toCoordinate&&t.centerCoordinate?(this.isShow=!0,"errander"==this.order_type?(this.initPolyline2(),this.initMarkers2(),this.resetIncludePoints()):(this.initPolyline(),this.initMarkers(),this.resetIncludePoints()),this.resetIncludePoints()):this.isShow=!1}},methods:{resetIncludePoints:function(){var t=this,e=this.info,r=e.fromCoordinate,i=e.toCoordinate,a=this.getSystem("iOS")?this.padding:["60"];this.includePoints=[].concat(r,i),setTimeout((function(){uni.createMapContext("customMap",t).includePoints({points:t.includePoints,padding:a})}),200)},initMarkers:function(){var t=0,e=this.info,r=e.fromCoordinate,i=e.toCoordinate,o=e.centerCoordinate;this.getSystem("iOS")&&(t=50);var n=(0,a.default)((0,a.default)({},r),{},{id:1,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103322a9c4f0083.png",width:45,height:45,customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}}),d=(0,a.default)((0,a.default)({},i),{},{id:2,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103331d16559887.png",width:45,height:45,customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}});this.markers=[].concat(n,d),4===this.status&&(console.log(o,"centerCoordinatecenterCoordinate"),this.markers.push((0,a.default)((0,a.default)({iconPath:"https://qny.wdsp666.com/uploads/images/20240627103309ea2c43828.png",width:45,height:40,id:3},o),{},{customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}})))},initMarkers2:function(){var t=0,e=this.info,r=e.fromCoordinate,i=e.toCoordinate,o=e.centerCoordinate;this.getSystem("iOS")&&(t=50);var n=(0,a.default)((0,a.default)({},r),{},{id:1,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103322a9c4f0083.png",width:45,height:45,customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}}),d=(0,a.default)((0,a.default)({},i),{},{id:2,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103331d16559887.png",width:45,height:45,customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}});this.markers=[].concat(n,d),2===this.status&&(console.log(o,"centerCoordinatecenterCoordinate"),this.markers.push((0,a.default)((0,a.default)({iconPath:"https://qny.wdsp666.com/uploads/images/20240627103309ea2c43828.png",width:45,height:40,id:3},o),{},{customCallout:{anchorX:0,anchorY:t,display:"ALWAYS"}})))},initPolyline:function(){if(this.info.polyline&&4==this.status){var t=this.info.polyline;this.polyline=[{points:t,color:"#5AA7F5",width:4}]}},initPolyline2:function(){if(this.info.polyline&&2==this.status){var t=this.info.polyline;this.polyline=[{points:t,color:"#5AA7F5",width:4}]}},getSystem:function(t){var e=uni.getSystemInfoSync().system;return e.indexOf(t)>-1}}};e.default=o},"44ca":function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("c223");var i=r("419c"),a=r("9d0a"),o=r("af51"),n={methods:{navAnotherOrder:function(t,e,r,a){a?(0,i.navPage)(a):(0,i.navPage)("/store-page/product-showcase/template-1?sid=".concat(t,"&order_id=").concat(e))},navAppraiseOrder:function(t){(0,i.navPage)("/order-page/appraise-order/index?id=".concat(t))},cancelOrder:function(t,e){(0,a.showModal)({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,callback:function(r){r&&(0,o.cancelOrderApi)(t).then((function(t){e&&e()})).catch((function(t){console.error("[order-cancel]取消订单失败",t),(0,a.showToast)({title:"取消订单失败, 请重试"})}))}})},confitmOrder:function(t,e){(0,a.showModal)({title:"提示",content:"确认需要完成订单吗?",showCancel:!0,callback:function(r){r&&(0,o.confirmOrderApi)(t).then((function(t){e&&e()})).catch((function(t){console.error("[order-confirm]确认订单失败",t),(0,a.showToast)({title:"确认订单失败, 请重试"})}))}})}}};e.default=n},"4f2d":function(t,e,r){var i=r("f348");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("b5a68064",i,!0,{sourceMap:!1,shadowMode:!1})},"61ac":function(t,e,r){var i=r("8d9a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("94c0b50e",i,!0,{sourceMap:!1,shadowMode:!1})},"6bbe":function(t,e,r){"use strict";r.r(e);var i=r("2695"),a=r.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"8d9a":function(t,e,r){var i=r("c86c");e=i(!1),e.push([t.i,".map[data-v-158fed42]{position:relative;margin-bottom:%?30?%}.map .custom-map[data-v-158fed42]{width:100%;height:150px}.map .info[data-v-158fed42]{width:100%;z-index:11;background-color:#fff;overflow:hidden;padding:0 %?34?%;box-sizing:border-box;font-size:%?24?%}.map .info .top[data-v-158fed42]{display:flex;justify-content:space-between;align-items:center;height:%?92?%;border-bottom:1px solid #e0e0e0}.map .status .text[data-v-158fed42]{font-weight:800;font-size:%?38?%;z-index:111;color:#2459ee}.map .status .text6[data-v-158fed42]{color:#f98f33}.map .status .text7[data-v-158fed42]{color:#31afa7}.map .status .text99[data-v-158fed42]{color:#333}.map .order_id[data-v-158fed42]{color:#999;font-size:%?24?%}.map .details[data-v-158fed42]{min-height:%?80?%;display:flex;justify-content:space-between;align-items:center;flex:1;height:%?132?%}.map .details .address[data-v-158fed42]{font-size:%?32?%;font-weight:800;color:#333;display:flex;align-items:center}.map .details .address .icon[data-v-158fed42]{width:%?110?%;height:%?12?%;display:inline-block;margin:0 %?50?%}.map .details .time[data-v-158fed42]{width:%?160?%;text-align:right}.map .details .time .text[data-v-158fed42]{display:block;color:#999;font-weight:500;font-size:%?24?%}.map .details .time7 .text[data-v-158fed42]{color:#31afa7}.customCallout .box[data-v-158fed42]{display:flex;align-items:center;background:#fff;height:50px;font-size:%?24?%;color:#333;font-weight:500;background-color:#fff;position:relative;background-color:initial;border-radius:%?10?%;overflow:hidden}.customCallout .box .type[data-v-158fed42]{width:%?60?%;background-color:#2459ee;color:#fff;height:%?50?%;display:block;text-align:center;line-height:%?50?%}.customCallout .box .from[data-v-158fed42],\n.customCallout .box .to[data-v-158fed42]{height:%?50?%;padding:0 %?10?%;min-width:%?100?%;display:block;text-align:center;line-height:%?50?%;background:#fff;box-sizing:border-box;border-top-right-radius:%?10?%;border-bottom-right-radius:%?10?%;overflow:hidden}.customCallout .triangle[data-v-158fed42]{width:40px;height:50px}.customCallout .dot[data-v-158fed42]{position:absolute;right:%?-128?%;top:%?10?%;border-radius:%?2?%;height:%?60?%;padding-left:%?10?%;padding-right:%?10?%;box-shadow:%?0?% %?3?% %?6?% %?1?% rgba(0,0,0,.16);color:#000;background-color:#fff;display:flex;justify-content:center;align-items:center}.customCallout .dot2[data-v-158fed42]{display:block!important;padding:%?10?%;position:absolute;right:%?-250?%;top:%?10?%;max-width:%?400?%;padding-left:%?10?%;padding-right:%?10?%;box-shadow:%?0?% %?3?% %?6?% %?1?% rgba(0,0,0,.16);color:#000;background-color:#fff;display:flex;justify-content:center;align-items:center;border-radius:%?20?%}",""]),t.exports=e},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,o=t.note,n=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:o||"",thumbs:n||[],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",{})}},b6bf:function(t,e,r){"use strict";r.r(e);var i=r("42a5"),a=r.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},b780:function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.submitOrderApi=e.getOrderPreInfoApi=e.getOrderListApi=e.getOrderDetailApi=e.getLogisticsApi=e.getJieLongConfigApi=e.confirmOrderApi=e.commentOrderApi=e.cancelOrderApi=e.applyAfterSaleApi=void 0;var a=i(r("7653"));e.getOrderPreInfoApi=function(t){return a.default.post("api/user.order.mall_order_create/indexBefore",t)};e.submitOrderApi=function(t){return a.default.post("api/user.order.mall_order_create/createOrder",t)};e.getOrderListApi=function(t){return a.default.get("api/user.order.mall_order/index?page="+t.page+"&limit=10&status=0")};e.getOrderDetailApi=function(t){return a.default.get("api/user.order.mall_order/orderDetail?id="+t)};e.getLogisticsApi=function(t){return a.default.get("api/user.order.mall_order/logistics?id="+t)};e.cancelOrderApi=function(t){return a.default.post("api/user.order.mall_order/cancelOrder",{id:t})};e.confirmOrderApi=function(t){return a.default.post("api/user.order.mall_order/confirmOrder",{id:t})};e.commentOrderApi=function(t){return a.default.post("api/user.order.mall_order/commentOrder",t)};e.applyAfterSaleApi=function(t){return a.default.post("api/user.order.mall_order/applyAfterSale",t)};e.getJieLongConfigApi=function(t){return a.default.get("api/user.order.mall_order/jielongConfig?id="+t)}},c860:function(t,e,r){"use strict";var i=r("4f2d"),a=r.n(i);a.a},c884: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:"map"},[[2,3,4,5].includes(+t.status)&&t.isShow&&"takeout"==t.order_type?r("v-uni-map",{staticClass:"custom-map",style:t.css,attrs:{id:"customMap","max-scale":t.maxScale,longitude:t.info.centerCoordinate.longitude,latitude:t.info.centerCoordinate.latitude,markers:t.markers,polyline:t.polyline}},[r("v-uni-cover-view",{attrs:{slot:"callout"},slot:"callout"},[r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":1}},[[2,3].includes(t.status)?r("v-uni-cover-view",{staticClass:"dot"},[t._v(t._s(2===t.status?"已确认":"取货中"))]):t._e()],1),r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":2}},[[5].includes(t.status)?r("v-uni-cover-view",{staticClass:"dot"},[t._v("已送达")]):t._e()],1),r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":3}},[[4].includes(t.status)?r("v-uni-cover-view",{staticClass:"dot"},[t._v(t._s(4==t.info.delivery_status?"配送中":"取货中")+t._s(4==t.info.delivery_status&&t.info.minutes>0?"(约"+t.info.minutes+"分钟到达)":""))]):t._e()],1)],1)],1):t._e(),t.isShow&&"errander"==t.order_type?r("v-uni-map",{staticClass:"custom-map",style:t.css,attrs:{id:"customMap","max-scale":t.maxScale,longitude:t.info.centerCoordinate.longitude,latitude:t.info.centerCoordinate.latitude,markers:t.markers,polyline:t.polyline}},[r("v-uni-cover-view",{attrs:{slot:"callout"},slot:"callout"},[r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":1}},[1==t.info["status"]&&t.info["expects_accept_order_time"]>0?r("v-uni-cover-view",{staticClass:"dot2"},[t._v("预计"+t._s(t.info["expects_accept_order_time"])+"分钟内有人接单")]):t._e(),2==t.info["status"]&&2==t.info["delivery_status"]?r("v-uni-cover-view",{staticClass:"dot2"},[r("p",[t._v("赶往服务点,距离商家"+t._s(t.info.distance))]),r("p",[t._v("预计"+t._s(t.info.minutes)+"分钟到达")])]):t._e(),2==t.info["status"]&&3==t.info["delivery_status"]?r("v-uni-cover-view",{staticClass:"dot2"},[r("p",[t._v("服务中,距离目的地"+t._s(t.info.distance))]),r("p",[t._v("预计"+t._s(t.info.minutes)+"分钟到达")])]):t._e()],1),r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":2}},[3==t.info["status"]?r("v-uni-cover-view",{staticClass:"dot"},[t._v("已完成")]):t._e()],1),r("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":3}})],1)],1):t._e()],1)},a=[]},d240:function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.searchExpressApi=e.orderStatusListApi=e.orderNoticeApi=e.getVisaOrderListApi=e.getVisaOrderDetailApi=e.getTakeoutOrderListApi=e.getTakeoutOrderDetailApi=e.getSpecialDeliveryStatusApi=e.getRefundReasonApi=e.getPaybillOrderListApi=e.getPaybillOrderDetailApi=e.getOrderwuliuApi=e.getOrderMapPathApi=e.getOrderIdByOutTradeNoApi=e.getErranderOrderListApi=e.getErranderOrderDetailApi=e.getChannelApi=e.getAllOrderListApi=e.getAirportPickupDetail=e.cancelOrderApi=e.applyRefundApi=void 0;var a=i(r("7653"));e.getTakeoutOrderListApi=function(t){var e=t.page,r=t.psize,i=t.status_index;return a.default.get("api/user.order.order/list",{page:e,psize:r,status_index:i})};e.getAllOrderListApi=function(){return a.default.get("api/user.order.order/allOrderList")};e.getTakeoutOrderDetailApi=function(t){var e=t.id,r=t.type;return a.default.get("api/user.order.order/detail",{id:e,type:r})};e.getErranderOrderListApi=function(t){var e=t.page,r=t.psize;return a.default.get("api/user.order.errander.errander/viList",{page:e,psize:r})};e.getErranderOrderDetailApi=function(t){var e=t.id;return a.default.get("api/user.order.errander.errander/detail",{id:e})};e.getVisaOrderListApi=function(t){return a.default.post("api/user.visa.order/list",t)};e.getVisaOrderDetailApi=function(t){return a.default.post("api/user.visa.order/detail",t)};e.getAirportPickupDetail=function(t){return a.default.post("api/user.airportTransfer.order/detail",t)};e.getPaybillOrderListApi=function(t){var e=t.page,r=t.psize;return a.default.get("api/user.order.paybill/list",{page:e,psize:r})};e.getPaybillOrderDetailApi=function(t){var e=t.id;return a.default.get("api/user.order.paybill/detail",{id:e})};e.getOrderMapPathApi=function(t){return a.default.post("api/user.order.order/mapPath",t)};e.getSpecialDeliveryStatusApi=function(t){return a.default.post("api/user.order.order/getSpecialDeliveryStatus",t)};e.getOrderIdByOutTradeNoApi=function(t){return a.default.post("api/user.order.order/getOrderIdByOutTradeNo",t)};e.getOrderwuliuApi=function(t){return a.default.post("api/user.order.order/wuliu",t)};e.getChannelApi=function(t){return a.default.get("api/user.order.order/getChannel?id="+t)};e.getRefundReasonApi=function(){return a.default.get("api/user.order.order/getRefundReason")};e.applyRefundApi=function(t){return a.default.post("api/user.order.order/applyRefund",t)};e.cancelOrderApi=function(t){return a.default.post("api/user.order.order/cancel",t)};e.orderNoticeApi=function(t){return a.default.post("api/user.order.order/orderNotice",t)};e.orderStatusListApi=function(t){return a.default.get("api/user.order.order/orderStatusList?id="+t)};e.searchExpressApi=function(t){return a.default.post("api/user.order.order/searchExpress",t)}},da31:function(t,e,r){"use strict";var i=r("61ac"),a=r.n(i);a.a},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},f348: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 */.wrapper[data-v-9202444e]{padding:%?30?%}.custom-map[data-v-9202444e]{width:100%}.customCallout .box[data-v-9202444e]{display:flex;align-items:center;background:#fff;height:%?50?%;font-size:%?24?%;color:#333;font-weight:500;background-color:#fff;position:relative;background-color:initial;border-radius:%?10?%;overflow:hidden}.customCallout .box .type[data-v-9202444e]{width:%?60?%;background-color:#2459ee;color:#fff;height:%?50?%;display:block;text-align:center;line-height:%?50?%}.customCallout .box .from[data-v-9202444e],\n.customCallout .box .to[data-v-9202444e]{height:%?50?%;padding:0 %?10?%;min-width:%?100?%;display:block;text-align:center;line-height:%?50?%;background:#fff;box-sizing:border-box;border-top-right-radius:%?10?%;border-bottom-right-radius:%?10?%;overflow:hidden}.customCallout .triangle[data-v-9202444e]{margin:0 auto;height:6px;width:10px;display:block;margin-bottom:8px}.customCallout .dot[data-v-9202444e]{border-radius:50%;width:%?36?%;height:%?36?%;background-color:#fff;display:flex;justify-content:center;align-items:center;box-shadow:0 6px 25px 0 rgba(0,0,0,.1);margin:%?10?% auto 0 auto}.customCallout .dot .dot-child[data-v-9202444e]{border-radius:50%;width:%?22?%;height:%?22?%;background-color:#2459ee;display:block;margin:0 auto}.customCallout .box .status99[data-v-9202444e]{background-color:#666}.customCallout .dot .dot-child.status99[data-v-9202444e]{background-color:#666}\n/* 订单状态信息 start */.order-status[data-v-9202444e]{border-radius:%?15?%;padding:%?30?%;background-color:#fff}.order-status .status-value[data-v-9202444e]{font-size:%?42?%;font-weight:700}.order-status .status-tips[data-v-9202444e]{margin-top:%?20?%;color:#aaa}.order-status .order-operation-btns[data-v-9202444e]{margin-top:%?20?%}.order-status .order-operation-btns .btn[data-v-9202444e]{padding:%?10?% %?16?%;border-radius:%?15?%}.order-status .order-operation-btns .btn + .btn[data-v-9202444e]{margin-left:%?12?%}\n/* 订单状态信息 end */.deliveryer[data-v-9202444e]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%}.deliveryer uni-image[data-v-9202444e]{height:%?60?%;width:%?60?%;border-radius:%?10?%;display:block;margin-right:%?20?%}.deliveryer uni-text[data-v-9202444e]{font-size:%?30?%}\n/* 商品价格信息 start */.product-price-info[data-v-9202444e]{margin-top:%?40?%;width:100%;border-radius:%?15?%\n /* 商品信息 start */\n /* 商品信息 end */\n /* 价格信息 start */\n /* 价格信息 end */\n /* 优惠信息 start */\n /* 优惠信息 end */\n /* 总计价格 start */\n /* 总计价格 end */\n /* 致电商家 start */\n /* 致电商家 end */}.product-price-info .product-info[data-v-9202444e]{padding:%?40?% %?30?%;border-radius:%?15?% %?15?% %?0?% %?0?%;background:radial-gradient(circle at left bottom,transparent %?20?%,#fff 0,#fff 100%) 0 0/51% 100% no-repeat,radial-gradient(circle at right bottom,transparent %?20?%,#fff 0,#fff 100%) 100% 0/51% 100% no-repeat;border-bottom:%?1?% dashed #f3f2f7\n /* 商品列表 start */\n /* 商品列表 end */}.product-price-info .product-info .store-name[data-v-9202444e]{font-size:%?30?%}.product-price-info .product-info .store-name .store-logo[data-v-9202444e]{height:%?60?%;width:%?60?%;border-radius:%?6?%}.product-price-info .product-info .product-list .product-item[data-v-9202444e]{margin-top:%?20?%;border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .item-image[data-v-9202444e]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-9202444e]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-9202444e]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-9202444e]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-9202444e]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-9202444e]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-9202444e]{width:100%;padding:%?30?%;background:radial-gradient(circle at top left,transparent %?20?%,#fff 0,#fff 100%) 0 0/51% 51% no-repeat,radial-gradient(circle at top right,transparent %?20?%,#fff 0,#fff 100%) 100% 0/51% 51% no-repeat,radial-gradient(circle at bottom left,transparent %?20?%,#fff 0,#fff 100%) 0 100%/51% 51% no-repeat,radial-gradient(circle at bottom right,transparent %?20?%,#fff 0,#fff 100%) 100% 100%/51% 51% no-repeat;border-bottom:%?1?% dashed #f3f2f7}.product-price-info .price-info .item[data-v-9202444e]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-9202444e]{font-weight:700}.product-price-info .discount-info[data-v-9202444e]{width:100%;padding:%?30?%;background:radial-gradient(circle at top left,transparent %?20?%,#fff 0,#fff 100%) 0 0/51% 51% no-repeat,radial-gradient(circle at top right,transparent %?20?%,#fff 0,#fff 100%) 100% 0/51% 51% no-repeat,radial-gradient(circle at bottom left,transparent %?20?%,#fff 0,#fff 100%) 0 100%/51% 51% no-repeat,radial-gradient(circle at bottom right,transparent %?20?%,#fff 0,#fff 100%) 100% 100%/51% 51% no-repeat;border-bottom:%?1?% dashed #f3f2f7}.product-price-info .discount-info .item[data-v-9202444e]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .price[data-v-9202444e]{font-weight:700}.product-price-info .total-price[data-v-9202444e]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?30?%;background:radial-gradient(circle at top left,transparent %?20?%,#fff 0,#fff 100%) 0 0/51% 51% no-repeat,radial-gradient(circle at top right,transparent %?20?%,#fff 0,#fff 100%) 100% 0/51% 51% no-repeat,radial-gradient(circle at bottom left,transparent %?20?%,#fff 0,#fff 100%) 0 100%/51% 51% no-repeat,radial-gradient(circle at bottom right,transparent %?20?%,#fff 0,#fff 100%) 100% 100%/51% 51% no-repeat;border-bottom:%?1?% dashed #f3f2f7}.product-price-info .total-price .data[data-v-9202444e]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-9202444e],\n.product-price-info .total-price .data .discount[data-v-9202444e],\n.product-price-info .total-price .data .paid[data-v-9202444e]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-9202444e]{font-size:%?34?%}.product-price-info .call-store[data-v-9202444e]{width:100%;display:flex;align-items:center;justify-content:center;padding:%?30?%;border-radius:%?0?% %?0?% %?15?% %?15?%;background:radial-gradient(circle at top left,transparent %?20?%,#fff 0,#fff 100%) 0 0/51% 100% no-repeat,radial-gradient(circle at top right,transparent %?20?%,#fff 0,#fff 100%) 100% 0/51% 100% no-repeat}\n/* 商品价格信息 end */\n/* 订单信息卡片 start */.order-info-card[data-v-9202444e]{border-radius:%?15?%;background-color:#fff;padding:%?30?%;margin-top:%?40?%}.order-info-card .item[data-v-9202444e]{display:flex}.order-info-card .item .title[data-v-9202444e]{font-size:%?30?%;font-weight:500}.order-info-card .item .value[data-v-9202444e]{flex:1;margin-left:%?20?%\n /* 复制按钮 start */\n /* 复制按钮 end */}.order-info-card .item .value .copy-btn[data-v-9202444e]{padding:%?4?% %?16?%;border-radius:%?12?%}.order-info-card .item + .item[data-v-9202444e]{margin-top:%?30?%}\n/* 订单信息卡片 end */',""]),t.exports=e},f365:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return i}));var i={loading:r("8c27").default},a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"订单详情","wrapper-bg-color":"#F3F2F7","before-back":t.handleBeforeNavBack}},[t.loadingShow?r("loading"):t._e(),r("v-uni-view",{staticClass:"wrapper"},[r("v-uni-view",{staticClass:"order-status tn-flex-column tn-flex-center"},[r("v-uni-view",{staticClass:"status-value",class:[t.mallOrderStatusColorClass(t.orderInfo.status_code)]},[t._v(t._s(t.orderInfo.status_name))]),r("v-uni-view",{staticClass:"status-tips"},[t._v(t._s(t.orderInfo.statusTips))]),r("v-uni-view",{staticClass:"order-operation-btns tn-flex-center"},[t.btns.includes("aftersale")?r("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.applyAfterSale.apply(void 0,arguments)}}},[t._v("申请售后")]):t._e(),t.btns.includes("comment")?r("v-uni-view",{staticClass:"btn",style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.navAppraiseOrder(t.orderId)}}},[t._v("去评价")]):t._e(),t.btns.includes("buy_again")?r("v-uni-view",{staticClass:"btn",style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.navAnotherOrder(t.storeInfo.id,t.orderId)}}},[t._v("再来一单")]):t._e(),t.btns.includes("confirm")?r("v-uni-view",{staticClass:"btn",style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.confirmOrder(t.orderId)}}},[t._v("确认收货")]):t._e(),t.btns.includes("pay")?r("v-uni-view",{staticClass:"btn",style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.payOrderEvent.apply(void 0,arguments)}}},[t._v("立即支付")]):t._e(),t.btns.includes("cancel")?r("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.cancelOrder(t.orderId,t.getOrderDetailData)}}},[t._v(t._s(1===t.orderInfo.is_pay?"取消订单":"取消支付"))]):t._e()],1)],1),r("v-uni-view",{staticClass:"product-price-info"},[r("v-uni-view",{staticClass:"product-info"},[r("v-uni-view",{staticClass:"store-name tn-flex tn-flex-row-center"},[r("v-uni-image",{staticClass:"store-logo",attrs:{src:t.orderInfo.store.logo}}),r("v-uni-text",{staticClass:"tn-margin-right-xs"}),t._v(t._s(t.orderInfo.store.title))],1),r("v-uni-view",{staticClass:"product-list"},t._l(t.orderInfo.mallOrderItem,(function(e,i){return r("v-uni-view",{key:i,staticClass:"product-item tn-bg-gray--light tn-color-black"},[r("v-uni-view",{staticClass:"item-image"},[r("v-uni-image",{staticClass:"image",attrs:{src:e.goods_image,mode:"aspectFill"}})],1),r("v-uni-view",{staticClass:"item-info"},[r("v-uni-view",{staticClass:"title tn-text-ellipsis-1"},[t._v(t._s(e.goods_title))]),r("v-uni-view",{staticClass:"spec tn-text-ellipsis-1"},[t._v(t._s(e.goods_sku_text))]),r("v-uni-view",{staticClass:"price-num tn-flex-end-between"},[r("v-uni-view",{staticClass:"price tn-color-red"},[t._v(t._s(t.CurrencyUnit)+t._s(e.goods_price))]),r("v-uni-view",{staticClass:"num"},[t._v("x"+t._s(e.goods_num))])],1)],1)],1)})),1)],1),r("v-uni-view",{staticClass:"price-info"},[r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("商品总价")]),r("v-uni-view",{staticClass:"price"},[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.goods_amount))])],1),r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("快递运费")]),r("v-uni-view",{staticClass:"price"},[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.dispatch_amount))])],1)],1),t.activityed.length>0?r("v-uni-view",{staticClass:"discount-info"},t._l(t.activityed,(function(e,i){return r("v-uni-view",{key:i,staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),r("v-uni-view",{staticClass:"price tn-color-red"},[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.fee))])],1)})),1):t._e(),r("v-uni-view",{staticClass:"total-price"},[r("v-uni-view",{staticClass:"title"},[t._v("合计")]),r("v-uni-view",{staticClass:"data tn-color-gray"},[r("v-uni-view",{staticClass:"sum"},[t._v("共计"+t._s(t.CurrencyUnit)+t._s(t.orderInfo.total_amount))]),r("v-uni-view",{staticClass:"discount"},[t._v("优惠"+t._s(t.CurrencyUnit)+t._s(t.orderInfo.discount_fee))]),r("v-uni-view",{staticClass:"paid tn-color-black"},[t._v("实付"),r("v-uni-text",{staticClass:"tn-color-red",staticStyle:{"margin-left":"5rpx"}},[t._v(t._s(t.CurrencyUnit)+t._s(t.orderInfo.total_fee))])],1)],1)],1),r("v-uni-view",{staticClass:"call-store",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.callStore.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"icon"},[r("v-uni-text",{staticClass:"tn-icon-phone"})],1),r("v-uni-view",{staticClass:"title tn-margin-left-xs"},[t._v("致电商家")])],1)],1),r("v-uni-view",{staticClass:"order-info-card"},[r("v-uni-view",{staticClass:"item",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.copyToClipBoard(t.orderInfo.order_sn)}}},[r("v-uni-view",{staticClass:"title"},[t._v("订单号")]),r("v-uni-view",{staticClass:"value tn-flex-center-between"},[r("v-uni-view",{staticClass:"order-no"},[t._v(t._s(t.orderInfo.order_sn))]),r("v-uni-view",{staticClass:"copy-btn",style:[t.themeBtnStyle]},[t._v("复制")])],1)],1),r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("支付方式")]),r("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.pay_type))])],1),[r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("快递单号")]),r("v-uni-view",{staticClass:"value tn-flex-center-between"},[r("v-uni-view",{staticClass:"order-no"},[t._v(t._s(t.orderInfo.express_no?t.orderInfo.express_no:"暂无物流信息"))]),t.btns.includes("express")?r("v-uni-navigator",{staticClass:"copy-btn",style:[t.themeBtnStyle],attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWuliu.apply(void 0,arguments)}}},[t._v("查看物流")]):t._e()],1)],1),r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("快递公司")]),r("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.express_name?t.orderInfo.express_name:"暂无物流信息"))])],1)],r("v-uni-view",{staticClass:"item"},[r("v-uni-view",{staticClass:"title"},[t._v("备注")]),r("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.remark||"无"))])],1)],2),r("pay-select-modal",{attrs:{"order-id":t.orderId,"order-type":"mall"},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.handlePaySuccessEvent.apply(void 0,arguments)},fail:function(e){arguments[0]=e=t.$handleEvent(e),t.handlePayFailEvent.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.handlePayCancelEvent.apply(void 0,arguments)}},model:{value:t.showPaySelectModal,callback:function(e){t.showPaySelectModal=e},expression:"showPaySelectModal"}})],1)],1)},o=[]},fc1b:function(t,e,r){"use strict";r.r(e);var i=r("c884"),a=r("b6bf");for(var o in a)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(o);r("da31");var n=r("828b"),d=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,"158fed42",null,!1,i["a"],void 0);e["default"]=d.exports}}]);