1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order-page-errander-order-detail-index"],{"0191a":function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(i("b7c7"));i("bf0f"),i("64aa"),i("fd3c"),i("2797"),i("aa9c");var o=r(i("bb7c")),n=r(i("dc1f")),s=r(i("75bf")),d=r(i("34cae")),l=i("815c"),c=r(i("8c27")),u=i("9d0a"),f=i("419c"),v=i("d240"),p=r(i("fc1b")),g={mixins:[o.default,n.default,s.default,s.default],components:{PaySelectModal:d.default,loading:c.default,CustomMap:p.default},data:function(){return{id:"",from:"",orderInfo:{ordersn:"",code:"",payTypeCn:"",isPay:0,status:0,deliveryerId:0,deliveryerAvatar:"",deliveryerTitle:"",deliveryerMobile:"",orderTypeCn:"",order_type:"",goodsName:"",goodsPrice:0,goodsWeight:0,buyAddress:"",buyUsername:"",buyMobile:"",images:[],acceptAddress:"",acceptUsername:"",acceptMobile:"",deliveryTime:"",addTime:"",note:""},showSelectPayWayModal:!1,loadingShow:!1,cancel_fee_info:null,isCanAppeal:!1,mapInfo:{fromCoordinate:{},toCoordinate:{},centerCoordinate:{},polyline:[],minutes:0,delivery_status:!1,status:4}}},onLoad:function(e){if(this.id=(null===e||void 0===e?void 0:e.id)||"",!this.id)return(0,u.showModal)({title:"提示",content:"缺少参数",callback:function(){(0,f.navBack)()}});this.from=(null===e||void 0===e?void 0:e.from)||"",this.getOrderDetail()},methods:{showTips:function(e,t){var i=this;console.log("cancel_fee_info",this.cancel_fee_info),this.cancel_fee_info&&this.cancel_fee_info.cancel_fee&&this.cancel_fee_info.final_cancel_fee>0?uni.showModal({title:"提示",content:"现在取消订单将扣除".concat(this.cancel_fee_info.final_cancel_fee,"元,确定取消吗?"),confirmText:"确定",cancelText:"取消",confirmColor:this.themeBgColor,success:function(r){r.confirm&&i.cancelOrder(e,t)}}):this.cancelOrder(e,t)},getOrderDetail:function(){var e=this;this.loadingShow=!0,(0,v.getErranderOrderDetailApi)({id:this.id}).then((function(t){console.log(t);var i=t.order,r=t.deliveryer,o=t.cancel_fee_info,n=t.mapInfo;if(e.cancel_fee_info=o,e.orderInfo.ordersn=i.order_sn,e.orderInfo.code=i.code,e.orderInfo.payTypeCn=i.pay_type_cn,e.orderInfo.isPay=i.is_pay,e.orderInfo.status=i.status,e.orderInfo.deliveryerId=(null===r||void 0===r?void 0:r.id)||0,e.orderInfo.deliveryerAvatar=(null===r||void 0===r?void 0:r.avatar)||"",e.orderInfo.deliveryerTitle=(null===r||void 0===r?void 0:r.title)||"",e.orderInfo.deliveryerMobile=(null===r||void 0===r?void 0:r.mobile)||"",e.orderInfo.delivery_tips=i.delivery_tips||0,e.orderInfo.tipsTitle=i.tipsTitle||"",e.orderInfo.orderTypeCn=i.order_type_cn,e.orderInfo.order_type=i.order_type,e.orderInfo.goodsName=i.goods_name,e.orderInfo.goodsPrice=Number(i.goods_price),e.orderInfo.goodsWeight=Number(i.goods_weight),e.orderInfo.buyAddress=i.buy_address,e.orderInfo.buyUsername=i.buy_username,e.orderInfo.buyMobile=i.buy_mobile,e.orderInfo.acceptAddress=i.accept_address,e.orderInfo.acceptUsername=i.accept_username,e.orderInfo.acceptMobile=i.accept_mobile,e.orderInfo.images=(null===i||void 0===i?void 0:i.img_list)||[],e.orderInfo.deliveryTime=i.delivery_time,e.orderInfo.addTime=i.addtime_cn,e.orderInfo.note=i.note,e.orderInfo.options=null===i||void 0===i?void 0:i.options,e.orderInfo.options_fee=null===i||void 0===i?void 0:i.options_fee,e.orderInfo.packings=null===i||void 0===i?void 0:i.packings,e.orderInfo.packings_fee=null===i||void 0===i?void 0:i.packings_fee,e.orderInfo.weight_fee=null===i||void 0===i?void 0:i.weight_fee,e.orderInfo.logistics_sn=null===i||void 0===i?void 0:i.logistics_sn,e.isCanAppeal=!!i.isCanAppeal,i.pickup_code_arr){var s=JSON.parse(i.pickup_code_arr),d=s.map((function(e){return e.note})).join(" + ");e.orderInfo.goodsName=d,e.orderInfo.note=d}console.log("mapInfo",n);var l=null===n||void 0===n?void 0:n.paths[0],c=l.steps,u=void 0===c?[]:c,f=[];u.forEach((function(e){var t=e.polyline,i=t.split(";").map((function(e){var t=e.split(",");return{latitude:(+t[1]).toFixed(5),longitude:(+t[0]).toFixed(5)}}));f.push.apply(f,(0,a.default)(i))})),console.log("arr",f),e.mapInfo={fromCoordinate:n.fromCoordinate,toCoordinate:n.toCoordinate,centerCoordinate:f[0],polyline:f,minutes:n.minutes,distance:n.distance,order_type:"errander",status:n.status,delivery_status:n.delivery_status,expects_accept_order_time:n.expects_accept_order_time},console.log("this.mapInfo",e.mapInfo)})).catch((function(e){console.error("[errander-detail]获取跑腿订单详细信息失败",e),(0,u.showToast)({title:"获取订单信息失败",callback:function(){}})})).finally((function(){e.loadingShow=!1}))},openPayModal:function(){this.showSelectPayWayModal=!0},successPayEvent:function(){this.getOrderDetail()},failPayEvent:function(){this.getOrderDetail()},cancelPayEvent:function(){this.getOrderDetail()},previewImage:function(e){uni.previewImage({urls:this.orderInfo.images,current:e})},copyToClipBoard:l.copyToClipBoard,appeal:function(e){console.log("appeal",e),uni.navigateTo({url:"/order-page/appraise-order/errander-order-appeal?id=".concat(e)})}}};t.default=g},"241d":function(e,t,i){"use strict";i.r(t);var r=i("0191a"),a=i.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},"42a5":function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(i("9b1b"));i("64aa"),i("c223"),i("aa9c"),i("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(e){e.fromCoordinate&&e.toCoordinate&&e.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 e=this,t=this.info,i=t.fromCoordinate,r=t.toCoordinate,a=this.getSystem("iOS")?this.padding:["60"];this.includePoints=[].concat(i,r),setTimeout((function(){uni.createMapContext("customMap",e).includePoints({points:e.includePoints,padding:a})}),200)},initMarkers:function(){var e=0,t=this.info,i=t.fromCoordinate,r=t.toCoordinate,o=t.centerCoordinate;this.getSystem("iOS")&&(e=50);var n=(0,a.default)((0,a.default)({},i),{},{id:1,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103322a9c4f0083.png",width:45,height:45,customCallout:{anchorX:0,anchorY:e,display:"ALWAYS"}}),s=(0,a.default)((0,a.default)({},r),{},{id:2,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103331d16559887.png",width:45,height:45,customCallout:{anchorX:0,anchorY:e,display:"ALWAYS"}});this.markers=[].concat(n,s),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:e,display:"ALWAYS"}})))},initMarkers2:function(){var e=0,t=this.info,i=t.fromCoordinate,r=t.toCoordinate,o=t.centerCoordinate;this.getSystem("iOS")&&(e=50);var n=(0,a.default)((0,a.default)({},i),{},{id:1,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103322a9c4f0083.png",width:45,height:45,customCallout:{anchorX:0,anchorY:e,display:"ALWAYS"}}),s=(0,a.default)((0,a.default)({},r),{},{id:2,iconPath:"https://qny.wdsp666.com/uploads/images/20240627103331d16559887.png",width:45,height:45,customCallout:{anchorX:0,anchorY:e,display:"ALWAYS"}});this.markers=[].concat(n,s),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:e,display:"ALWAYS"}})))},initPolyline:function(){if(this.info.polyline&&4==this.status){var e=this.info.polyline;this.polyline=[{points:e,color:"#5AA7F5",width:4}]}},initPolyline2:function(){if(this.info.polyline&&2==this.status){var e=this.info.polyline;this.polyline=[{points:e,color:"#5AA7F5",width:4}]}},getSystem:function(e){var t=uni.getSystemInfoSync().system;return t.indexOf(e)>-1}}};t.default=o},"61ac":function(e,t,i){var r=i("8d9a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("94c0b50e",r,!0,{sourceMap:!1,shadowMode:!1})},"75bf":function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i("9d0a"),a=i("af51"),o={methods:{cancelOrder:function(e,t){(0,r.showModal)({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,callback:function(i){i&&(0,a.cancelErranderOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-cancel]取消订单失败",e),(0,r.showToast)({title:"取消订单失败, 请重试"})}))}})},confitmErranderOrder:function(e,t){(0,r.showModal)({title:"提示",content:"确认需要完成订单吗?",showCancel:!0,callback:function(i){i&&(0,a.confirmErranderOrderApi)(e).then((function(e){t&&t()})).catch((function(e){(0,r.showToast)({title:"确认订单失败, 请重试"})}))}})}}};t.default=o},"8d9a":function(e,t,i){var r=i("c86c");t=r(!1),t.push([e.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?%}",""]),e.exports=t},"92cf":function(e,t,i){var r=i("dbba");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("5ec33042",r,!0,{sourceMap:!1,shadowMode:!1})},af51:function(e,t,i){"use strict";i("6a54");var r=i("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=r(i("7653"));t.getOrderCommentPageInfoApi=function(e){var t=e.id,i=e.order_type;return a.default.get("api/user.order.comment/getPageParams",{id:t,order_type:i})};t.addOrderCommentApi=function(e){var t=e.id,i=e.deliverScore,r=e.goodsQuality,o=e.note,n=e.thumbs,s=e.order_type;return a.default.post("api/user.order.comment/create",{id:t,deliverScore:i||0,goods_quality:r||0,note:o||"",thumbs:n||[],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",{})}},b6bf:function(e,t,i){"use strict";i.r(t);var r=i("42a5"),a=i.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},bb7c:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={data:function(){return{}},filters:{orderStatusValue:function(e,t){switch(e){case 1:return 1===t?"待接单":"待付款";case 2:return"进行中";case 3:return"已完成";case 4:return"已取消";default:return""}}},computed:{orderStatusColorClass:function(){return function(e,t){var i="gray";switch(e){case 1:i=1===t?"orangeyellow":"red";break;case 2:i="blue";break;case 3:i="green--dark";break;case 4:i="gray";break}return"tn-color-".concat(i)}}}}},c462:function(e,t,i){"use strict";var r=i("92cf"),a=i.n(r);a.a},c514:function(e,t,i){"use strict";i.r(t);var r=i("e9ce"),a=i("241d");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("c462");var n=i("828b"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"0f9cd0f2",null,!1,r["a"],void 0);t["default"]=s.exports},c884:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"map"},[[2,3,4,5].includes(+e.status)&&e.isShow&&"takeout"==e.order_type?i("v-uni-map",{staticClass:"custom-map",style:e.css,attrs:{id:"customMap","max-scale":e.maxScale,longitude:e.info.centerCoordinate.longitude,latitude:e.info.centerCoordinate.latitude,markers:e.markers,polyline:e.polyline}},[i("v-uni-cover-view",{attrs:{slot:"callout"},slot:"callout"},[i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":1}},[[2,3].includes(e.status)?i("v-uni-cover-view",{staticClass:"dot"},[e._v(e._s(2===e.status?"已确认":"取货中"))]):e._e()],1),i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":2}},[[5].includes(e.status)?i("v-uni-cover-view",{staticClass:"dot"},[e._v("已送达")]):e._e()],1),i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":3}},[[4].includes(e.status)?i("v-uni-cover-view",{staticClass:"dot"},[e._v(e._s(4==e.info.delivery_status?"配送中":"取货中")+e._s(4==e.info.delivery_status&&e.info.minutes>0?"(约"+e.info.minutes+"分钟到达)":""))]):e._e()],1)],1)],1):e._e(),e.isShow&&"errander"==e.order_type?i("v-uni-map",{staticClass:"custom-map",style:e.css,attrs:{id:"customMap","max-scale":e.maxScale,longitude:e.info.centerCoordinate.longitude,latitude:e.info.centerCoordinate.latitude,markers:e.markers,polyline:e.polyline}},[i("v-uni-cover-view",{attrs:{slot:"callout"},slot:"callout"},[i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":1}},[1==e.info["status"]&&e.info["expects_accept_order_time"]>0?i("v-uni-cover-view",{staticClass:"dot2"},[e._v("预计"+e._s(e.info["expects_accept_order_time"])+"分钟内有人接单")]):e._e(),2==e.info["status"]&&2==e.info["delivery_status"]?i("v-uni-cover-view",{staticClass:"dot2"},[i("p",[e._v("赶往服务点,距离商家"+e._s(e.info.distance))]),i("p",[e._v("预计"+e._s(e.info.minutes)+"分钟到达")])]):e._e(),2==e.info["status"]&&3==e.info["delivery_status"]?i("v-uni-cover-view",{staticClass:"dot2"},[i("p",[e._v("服务中,距离目的地"+e._s(e.info.distance))]),i("p",[e._v("预计"+e._s(e.info.minutes)+"分钟到达")])]):e._e()],1),i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":2}},[3==e.info["status"]?i("v-uni-cover-view",{staticClass:"dot"},[e._v("已完成")]):e._e()],1),i("v-uni-cover-view",{staticClass:"customCallout",attrs:{"marker-id":3}})],1)],1):e._e()],1)},a=[]},d240:function(e,t,i){"use strict";i("6a54");var r=i("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=r(i("7653"));t.getTakeoutOrderListApi=function(e){var t=e.page,i=e.psize,r=e.status_index;return a.default.get("api/user.order.order/list",{page:t,psize:i,status_index:r})};t.getAllOrderListApi=function(){return a.default.get("api/user.order.order/allOrderList")};t.getTakeoutOrderDetailApi=function(e){var t=e.id,i=e.type;return a.default.get("api/user.order.order/detail",{id:t,type:i})};t.getErranderOrderListApi=function(e){var t=e.page,i=e.psize;return a.default.get("api/user.order.errander.errander/viList",{page:t,psize:i})};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,i=e.psize;return a.default.get("api/user.order.paybill/list",{page:t,psize:i})};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)}},da31:function(e,t,i){"use strict";var r=i("61ac"),a=i.n(r);a.a},dbba:function(e,t,i){var r=i("c86c");t=r(!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 */.wrapper[data-v-0f9cd0f2]{position:relative;width:100%;padding:%?30?%}\n/* 订单状态信息 start */.order-status[data-v-0f9cd0f2]{border-radius:%?15?%;padding:%?30?%;background-color:#fff}.order-status .status-value[data-v-0f9cd0f2]{font-size:%?42?%;font-weight:700}.order-status .order-operation-btns[data-v-0f9cd0f2]{margin-top:%?20?%}.order-status .order-operation-btns .btn[data-v-0f9cd0f2]{padding:%?10?% %?16?%;border-radius:%?15?%}.order-status .order-operation-btns .btn + .btn[data-v-0f9cd0f2]{margin-left:%?12?%}\n/* 订单状态信息 end */\n/* 取货码 start */.pick-up-code[data-v-0f9cd0f2]{position:relative;width:100%;padding:%?30?%;border-radius:%?15?%;margin-top:%?40?%}.pick-up-code .code[data-v-0f9cd0f2]{font-size:%?60?%;font-weight:600}.pick-up-code .operation-text[data-v-0f9cd0f2]{margin-top:%?8?%}\n/* 取货码 end */\n/* 配送信息 start */.delivery-info[data-v-0f9cd0f2]{position:relative;width:100%;padding:%?30?%;margin-top:%?40?%;border-radius:%?15?%}.delivery-info .deliveryer-avatar[data-v-0f9cd0f2]{width:%?80?%;height:%?80?%;border-radius:50%}.delivery-info .deliveryer-info[data-v-0f9cd0f2]{margin-left:%?20?%}\n/* 配送信息 end */\n/* 订单信息卡片 start */.order-info-card[data-v-0f9cd0f2]{border-radius:%?15?%;background-color:#fff;padding:%?30?%;margin-top:%?40?%}.order-info-card .item[data-v-0f9cd0f2]{display:flex}.order-info-card .item .title[data-v-0f9cd0f2]{font-size:%?30?%;font-weight:500}.order-info-card .item .value[data-v-0f9cd0f2]{flex:1;margin-left:%?20?%\n /* 复制按钮 start */\n /* 复制按钮 end */\n /* 图片组 start */\n /* 图片组 end */}.order-info-card .item .value .copy-btn[data-v-0f9cd0f2]{padding:%?4?% %?16?%;border-radius:%?12?%}.order-info-card .item .value .image-container[data-v-0f9cd0f2]{position:relative;width:100%;display:flex;flex-wrap:wrap}.order-info-card .item .value .image-container .image-value[data-v-0f9cd0f2]{width:%?140?%;height:%?140?%;margin-right:%?20?%;margin-bottom:%?20?%;border-radius:%?15?%}.order-info-card .item + .item[data-v-0f9cd0f2]{margin-top:%?30?%}\n/* 订单信息卡片 end */',""]),e.exports=t},e9ce:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}));var r={loading:i("8c27").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"订单详情",kefu:!0}},[e.loadingShow?i("loading"):e._e(),i("v-uni-view",{staticClass:"wrapper"},[i("custom-map",{attrs:{info:e.mapInfo,status:e.mapInfo.status,order_type:e.mapInfo.order_type}}),i("v-uni-view",{staticClass:"order-status tn-bg-white tn-shadow tn-flex-column tn-flex-center"},[i("v-uni-view",{staticClass:"status-value",class:[e.orderStatusColorClass(e.orderInfo.status,e.orderInfo.isPay)]},[e._v(e._s(e._f("orderStatusValue")(e.orderInfo.status,e.orderInfo.isPay)))]),i("v-uni-view",{staticClass:"order-operation-btns tn-flex-center"},[0===e.orderInfo.isPay&&4!=e.orderInfo.status?i("v-uni-view",{staticClass:"btn",style:[e.themeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.openPayModal.apply(void 0,arguments)}}},[e._v("立即支付")]):e._e(),0==e.orderInfo.isPay?i("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.cancelOrder(e.id,e.getOrderDetail)}}},[e._v("取消支付")]):e._e(),2===e.orderInfo.status?i("v-uni-view",{staticClass:"btn",style:[e.themeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.confitmErranderOrder(e.id,e.getOrderDetail)}}},[e._v("确认收货")]):e._e(),3!=e.orderInfo.status&&1===e.orderInfo.isPay?i("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.showTips(e.id,e.getOrderDetail)}}},[e._v("取消订单")]):e._e(),e.isCanAppeal?i("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.appeal(e.id)}}},[e._v("订单申诉")]):e._e()],1)],1),e.orderInfo.isPay&&e.orderInfo.code?i("v-uni-view",{staticClass:"pick-up-code tn-bg-white tn-shadow tn-flex-column tn-flex-center",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.copyToClipBoard(e.orderInfo.code)}}},[i("v-uni-view",{staticClass:"code tn-color-red"},[e._v(e._s(e.orderInfo.code))]),i("v-uni-view",{staticClass:"operation-text"},[e._v("取货码"),i("v-uni-text",{staticClass:"tn-icon-copy tn-margin-left-xs",style:[{color:e.themeBgColor}]})],1)],1):e._e(),e.orderInfo.deliveryerId?i("v-uni-view",{staticClass:"delivery-info tn-bg-white tn-shadow"},[i("v-uni-view",{staticClass:"deliveryer tn-flex"},[i("v-uni-view",{staticClass:"deliveryer-avatar"},[i("v-uni-image",{staticClass:"image",attrs:{src:e.orderInfo.deliveryerAvatar,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"deliveryer-info"},[i("v-uni-view",{staticClass:"deliveryer-name"},[e._v(e._s(e.orderInfo.deliveryerTitle))]),i("v-uni-view",{staticClass:"deliveryer-mobile"},[i("v-uni-text",{staticClass:"tn-color-gray"},[e._v(e._s(e.orderInfo.deliveryerMobile))]),i("v-uni-text",{staticClass:"tn-icon-phone tn-margin-left-xs",style:[{color:e.themeBgColor}]})],1)],1)],1),i("v-uni-view",{staticClass:"delivery-time tn-flex tn-margin-top"},[i("v-uni-view",{staticClass:"title tn-text-bold"},["delivery"==e.orderInfo.order_type?[e._v("服务时间")]:e._e(),"takeExpress"==e.orderInfo.order_type?[e._v("配送时间")]:e._e()],2),i("v-uni-view",{staticClass:"value tn-margin-left-sm"},[e._v(e._s(e.orderInfo.deliveryTime))])],1)],1):e._e(),e.orderInfo.buyAddress||e.orderInfo.buyUsername||e.orderInfo.buyMobile?i("v-uni-view",{staticClass:"order-info-card tn-bg-white tn-shadow"},[e.orderInfo.buyAddress?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("取货地址")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.buyAddress))])],1):e._e(),e.orderInfo.buyUsername||e.orderInfo.buyMobile?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("取货联系方式")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.buyUsername)),e.orderInfo.buyMobile?[e._v("("+e._s(e.orderInfo.buyMobile)+")")]:e._e()],2)],1):e._e()],1):e._e(),e.orderInfo.acceptAddress||e.orderInfo.acceptUsername||e.orderInfo.acceptMobile?i("v-uni-view",{staticClass:"order-info-card tn-bg-white tn-shadow"},[e.orderInfo.acceptAddress?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("收件地址")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.acceptAddress))])],1):e._e(),e.orderInfo.acceptUsername||e.orderInfo.acceptMobile?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("收件联系方式")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.acceptUsername)),e.orderInfo.acceptMobile?[e._v("("+e._s(e.orderInfo.acceptMobile)+")")]:e._e()],2)],1):e._e()],1):e._e(),i("v-uni-view",{staticClass:"order-info-card tn-bg-white tn-shadow"},[i("v-uni-view",{staticClass:"item",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.copyToClipBoard(e.orderInfo.ordersn)}}},[i("v-uni-view",{staticClass:"title"},[e._v("订单号")]),i("v-uni-view",{staticClass:"value tn-flex-center-between"},[i("v-uni-view",{staticClass:"order-no"},[e._v(e._s(e.orderInfo.ordersn))]),i("v-uni-view",{staticClass:"copy-btn",style:[e.themeBtnStyle]},[e._v("复制")])],1)],1),"express_delivery"==e.orderInfo.order_type?i("v-uni-view",{staticClass:"item",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.copyToClipBoard(e.orderInfo.logistics_sn)}}},[i("v-uni-view",{staticClass:"title"},[e._v("快递单号")]),i("v-uni-view",{staticClass:"value tn-flex-center-between"},[i("v-uni-view",{staticClass:"order-no"},[e._v(e._s(e.orderInfo.logistics_sn))]),i("v-uni-view",{staticClass:"copy-btn",style:[e.themeBtnStyle]},[e._v("复制")])],1)],1):e._e(),e.orderInfo.isPay?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("支付方式")]),i("v-uni-view",{staticClass:"value"},[e._v("#"+e._s(e.orderInfo.payTypeCn))])],1):e._e(),"express_delivery"==e.orderInfo.order_type?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("规格")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.options))]),i("v-uni-view",{staticClass:"value"},[e._v("("+e._s(e.orderInfo.options_fee)+")")])],1):i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("订单类型")]),i("v-uni-view",{staticClass:"value"},[e._v("#"+e._s(e.orderInfo.orderTypeCn))])],1),"express_delivery"==e.orderInfo.order_type?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("包装")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.packings))]),i("v-uni-view",{staticClass:"value"},[e._v("("+e._s(e.orderInfo.packings_fee)+")")])],1):e._e(),"express_delivery"==e.orderInfo.order_type?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("重量费用")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.weight_fee))])],1):e._e(),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("物品信息")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.goodsName))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(e.orderInfo.tipsTitle||"小费"))]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.delivery_tips)+"元")])],1),e.orderInfo.images.length>0?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("物品图片")]),i("v-uni-view",{staticClass:"value"},[i("v-uni-view",{staticClass:"image-container"},e._l(e.orderInfo.images,(function(t,r){return i("v-uni-view",{key:r,staticClass:"image-value",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.previewImage(r)}}},[i("v-uni-image",{staticClass:"image",attrs:{src:t,mode:"aspectFill"}})],1)})),1)],1)],1):e._e(),e.orderInfo.goodsPrice?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("物品价值")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.goodsPrice))])],1):e._e(),!e.orderInfo.goodsWeight||"delivery"!=e.orderInfo.order_type&&"social_errands"!=e.orderInfo.order_type?e._e():i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("物品重量")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.goodsWeight)+"kg")])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("下单时间")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.addTime))])],1),"delivery"!=e.orderInfo.order_type&&"takeExpress"!=e.orderInfo.order_type?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("备注")]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.note)+e._s(e.orderInfo.order_type))])],1):e._e()],1)],1),i("pay-select-modal",{attrs:{"order-id":e.id,"order-type":"errander"},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.showSelectPayWayModal,callback:function(t){e.showSelectPayWayModal=t},expression:"showSelectPayWayModal"}})],1)},o=[]},fc1b:function(e,t,i){"use strict";i.r(t);var r=i("c884"),a=i("b6bf");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("da31");var n=i("828b"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"158fed42",null,!1,r["a"],void 0);t["default"]=s.exports}}]);
|