1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order-page-washpet-order-detail-index"],{3697:function(t,e,i){var o=i("c86c");e=o(!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 */.order-price[data-v-24245b2c]{margin-top:%?16?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?46?%;color:#f60;line-height:%?42?%}.order-price .price-icon[data-v-24245b2c]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.order-title[data-v-24245b2c]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#000;margin-bottom:%?28?%}.order-info[data-v-24245b2c]{display:flex}.order-image[data-v-24245b2c]{width:%?110?%;height:%?110?%;border-radius:%?10?%;margin-right:%?27?%}.wrapper[data-v-24245b2c]{padding:%?30?% %?30?% %?80?% %?30?%;background:linear-gradient(0deg,#efeff4 80%,#ffca28)}.wrapper .more-qcm[data-v-24245b2c]{display:flex;flex-wrap:wrap}.wrapper .top-bg[data-v-24245b2c]{background-image:url(https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/take-2.png);background-repeat:no-repeat;background-size:100% 100%;padding:%?30?%;margin-bottom:%?20?%;border-radius:%?20?%;min-height:%?240?%;background-color:#fff}.wrapper .top-bg .tip[data-v-24245b2c]{display:flex;flex-direction:column;justify-content:space-between}.wrapper .top-bg .tip .size[data-v-24245b2c]{font-size:%?55?%}.wrapper .top-bg .tip .nums[data-v-24245b2c]{padding:%?5?% %?15?%;background-color:#ffc929;border-radius:%?10?%;display:inline-block}.wrapper .top-bg .tip .qrCode-tip[data-v-24245b2c]{display:flex;align-items:center}.wrapper .top-bg .tip-qc[data-v-24245b2c]{margin-left:%?12?%;margin-bottom:%?10?%;background-color:#d70107;display:inline-block;color:#fff;width:%?92?%;text-align:center;line-height:%?42?%;height:%?45?%;font-size:%?22?%;border-radius:%?40?% %?40?% %?40?% 0}.custom-map[data-v-24245b2c]{width:100%}.customCallout .box[data-v-24245b2c]{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-24245b2c]{width:%?60?%;background-color:#2459ee;color:#fff;height:%?50?%;display:block;text-align:center;line-height:%?50?%}.customCallout .box .from[data-v-24245b2c],\n.customCallout .box .to[data-v-24245b2c]{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-24245b2c]{margin:0 auto;height:6px;width:10px;display:block;margin-bottom:8px}.customCallout .dot[data-v-24245b2c]{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-24245b2c]{border-radius:50%;width:%?22?%;height:%?22?%;background-color:#2459ee;display:block;margin:0 auto}.customCallout .box .status99[data-v-24245b2c]{background-color:#666}.customCallout .dot .dot-child.status99[data-v-24245b2c]{background-color:#666}\n/* 订单状态信息 start */.order-status[data-v-24245b2c]{border-radius:%?15?%;padding:%?30?%;background-color:#fff}.order-status .status-value[data-v-24245b2c]{font-size:%?42?%;font-weight:700;color:#ffca28}.order-status .status-tips[data-v-24245b2c]{margin-top:%?20?%;color:#aaa}.order-status .order-operation-btns[data-v-24245b2c]{margin-top:%?20?%}.order-status .order-operation-btns .btn[data-v-24245b2c]{padding:%?10?% %?16?%;border-radius:%?15?%}.order-status .order-operation-btns .btn + .btn[data-v-24245b2c]{margin-left:%?12?%}\n/* 订单状态信息 end */.lock[data-v-24245b2c]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%;padding:%?30?%;flex-direction:column}.lock .lock_item[data-v-24245b2c]{display:flex;margin-bottom:%?20?%}.lock .lock_item uni-text[data-v-24245b2c]{font-size:%?30?%}.lock .operation[data-v-24245b2c]{display:flex;flex-direction:column;justify-content:space-between}.lock .operation .button[data-v-24245b2c]{background:#ffca28;border-radius:%?15?%;color:#000;font-size:%?30?%;text-align:center;margin-bottom:%?20?%;font-weight:600;height:%?80?%;line-height:%?80?%}.lock .operation .description[data-v-24245b2c]{color:#aaa;font-size:%?24?%;text-align:center}.lock uni-text[data-v-24245b2c]{font-size:%?30?%}.deliveryer[data-v-24245b2c]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%}.deliveryer uni-image[data-v-24245b2c]{height:%?60?%;width:%?60?%;border-radius:%?10?%;display:block;margin-right:%?20?%}.deliveryer uni-text[data-v-24245b2c]{font-size:%?30?%}\n/* 商品价格信息 start */.product-price-info[data-v-24245b2c]{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-24245b2c]{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-24245b2c]{font-size:%?30?%}.product-price-info .product-info .store-name .store-logo[data-v-24245b2c]{height:%?60?%;width:%?60?%;border-radius:%?6?%}.product-price-info .product-info .product-list .product-item[data-v-24245b2c]{border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .item-image[data-v-24245b2c]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-24245b2c]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-24245b2c]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-24245b2c]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-24245b2c]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-24245b2c]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-24245b2c]{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-24245b2c]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-24245b2c]{font-weight:700}.product-price-info .discount-info[data-v-24245b2c]{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-24245b2c]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .price[data-v-24245b2c]{font-weight:700}.product-price-info .total-price[data-v-24245b2c]{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-24245b2c]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-24245b2c],\n.product-price-info .total-price .data .discount[data-v-24245b2c],\n.product-price-info .total-price .data .paid[data-v-24245b2c]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-24245b2c]{font-size:%?34?%}.product-price-info .call-store[data-v-24245b2c]{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-24245b2c]{border-radius:%?15?%;background-color:#fff;padding:%?30?%;margin-top:%?40?%}.order-info-card .infoType[data-v-24245b2c]{font-size:%?36?%;margin-bottom:%?30?%}.order-info-card .item[data-v-24245b2c]{display:flex;justify-content:space-between}.order-info-card .item .title[data-v-24245b2c]{font-size:%?26?%;font-weight:500;color:#767676}.order-info-card .item + .item[data-v-24245b2c]{margin-top:%?30?%}\n/* 复制按钮 start */.copy-btn[data-v-24245b2c]{padding:%?4?% %?16?%;border-radius:%?12?%}\n/* 复制按钮 end */.value[data-v-24245b2c]{margin-left:%?20?%;font-size:%?26?%;font-weight:500;color:#000}.btn[data-v-24245b2c]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background-color:#ffca28;color:#080808}.btn + .btn[data-v-24245b2c]{margin-left:%?16?%}\n/* 订单信息卡片 end */.expansion[data-v-24245b2c]{display:flex;position:fixed;top:0;left:0;height:100%;width:100%;justify-content:center;align-items:center;background-color:rgba(0,0,0,.5);flex-direction:column;z-index:999999}.expansion .expansion_box[data-v-24245b2c]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-24245b2c]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-24245b2c]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-24245b2c]{width:100%}.expansion .expansion_box .line4[data-v-24245b2c]{height:40px;width:100%;text-align:center;line-height:40px;font-size:15px;color:#fff;border-radius:10px;background:linear-gradient(90deg,#fc8c09,#fc29b4)}.expansion .expansion_close[data-v-24245b2c]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-24245b2c]{width:%?60?%;height:%?60?%}.maskCode[data-v-24245b2c]{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:999;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.maskCode .cent-mod[data-v-24245b2c]{background-color:#fff;padding:%?30?%;border-radius:%?20?%}.maskCode .cent-mod .min-data[data-v-24245b2c]{min-width:65vw;min-height:60vw}.bottom-btns[data-v-24245b2c]{position:fixed;height:%?110?%;display:flex;justify-content:space-between;align-items:center;width:100%;bottom:0;background-color:#fff;padding:0 %?30?%;box-shadow:0 %?-2?% %?10?% 0 rgba(0,0,0,.1)}.bottom-btns .btns_left[data-v-24245b2c]{flex:1}.bottom-btns .btns_right[data-v-24245b2c]{display:flex;flex:2;flex-direction:row}.bottom-btns .btns_right .btn[data-v-24245b2c]{flex:1;display:flex;justify-content:center;align-items:center;font-size:%?30?%;font-weight:500;width:%?200?%;height:%?80?%;border-radius:%?20?%;background-color:#bae7ff;color:#000}.bottom-btns .btns_right .btn + .btn[data-v-24245b2c]{margin-left:%?20?%}.order-log[data-v-24245b2c]{background-color:#fff;border-radius:%?15?%;padding:%?30?%;width:%?700?%}.order-log .log-item[data-v-24245b2c]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item .time[data-v-24245b2c]{font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-24245b2c]{flex:1;margin-left:%?20?%;font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-24245b2c]:before{content:"";display:inline-block;width:%?10?%;height:%?10?%;background-color:#ffca28;border-radius:50%;margin-right:%?10?%}.order-log .log-item2[data-v-24245b2c]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item2 .time[data-v-24245b2c]{font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-24245b2c]{flex:1;margin-left:%?20?%;font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-24245b2c]:before{content:"";display:inline-block;width:%?5?%;height:%?5?%;background-color:#999;border-radius:50%;margin-right:%?10?%}.spell-rice-box[data-v-24245b2c]{display:flex;flex-direction:column;background-color:#fff;text-align:center;justify-content:center}.spell-rice-box .row1[data-v-24245b2c]{font-size:%?20?%}.spell-rice-box .row2[data-v-24245b2c]{font-size:%?30?%;font-weight:700}.spell-rice-box .row3[data-v-24245b2c]{font-size:%?36?%;color:red}.spell-rice-box .persons[data-v-24245b2c]{display:flex;flex-direction:row;text-align:center;justify-self:center;align-items:center;padding:0 %?100?% 0 %?100?%;margin-top:%?20?%}.spell-rice-box .persons .leader[data-v-24245b2c]{flex:1;position:relative}.spell-rice-box .persons .leader uni-image[data-v-24245b2c]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .persons .leader uni-text[data-v-24245b2c]{position:absolute;color:#fff;background-color:red;text-align:center;border-radius:%?15?%;width:%?100?%;font-size:%?24?%;top:-20%;left:0}.spell-rice-box .persons .mid[data-v-24245b2c]{flex:2;font-size:%?30?%;font-weight:bolder;margin:0 %?20?%}.spell-rice-box .persons .members[data-v-24245b2c]{flex:1}.spell-rice-box .persons .members uni-image[data-v-24245b2c]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .share_btn[data-v-24245b2c]{background-color:#ffe9ea;color:#cd3b2b;height:%?80?%;display:flex;text-align:center;align-items:center;justify-content:center;border-radius:%?15?%;margin-top:%?15?%}',""]),t.exports=e},"7d95":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("bf0f"),i("2797"),i("fd3c"),i("aa9c"),i("f7a5"),i("64aa"),i("5c47"),i("2c10");var a=o(i("5de6")),r=o(i("b7c7")),n=o(i("2634")),d=o(i("2fdc")),s=o(i("39d8")),c=o(i("dae0")),l=o(i("44ca")),f=o(i("34cae")),u=o(i("495e")),p=o(i("8c27")),v=i("9d0a"),b=i("419c"),g=i("815c"),h=o(i("fc1b")),m=(o(i("ae59")),i("a9e5")),w=o(i("dc1f")),_=(i("262c"),i("3137")),x=i("e0a2"),y={components:{PaySelectModal:f.default,CenterModal:u.default,loading:p.default,CustomMap:h.default},mixins:[w.default,c.default,l.default],data:function(){var t;return{orderId:0,from:"",order_type:"takeout",orderInfo:(t={ordersn:"",serialSn:"",status:0,isPay:0,isComment:0,statusTips:"",products:[],totalFee:0,finalFee:0,discountFee:0,boxPrice:0,deliveryPrice:0,packingPirce:0,orderType:0,zitiType:0,deliveryDay:"",deliveryTime:"",username:"",sex:"",mobile:"",address:"",payTypeCn:"",spellrice_serial_sn:"",is_spellrice:0,note:""},(0,s.default)(t,"deliveryPrice",0),(0,s.default)(t,"pack_fee",0),(0,s.default)(t,"price",0),(0,s.default)(t,"batch_result",{}),(0,s.default)(t,"lock_status",0),(0,s.default)(t,"lock_result",{}),(0,s.default)(t,"qrcode",""),(0,s.default)(t,"person_num",0),t),storeInfo:{logo:"",id:"",title:"",address:"",mobile:"",cn:{},pageShowType:2,is_haodian:0},special_delivery_status:"",activityed:[],showPaySelectModal:!1,loadingShow:!1,mapInfo:{fromCoordinate:{},toCoordinate:{},centerCoordinate:{},polyline:[],minutes:0,delivery_status:!1},order_images:[],priceDiffGoodsTmp:{},qrcode_box_show:!1,order_qrcode:"",open_lock_string:"",priceDifferencePopup:!1,showHelibaoAlipayImageModel:!1,helibaoAlipayPayUrl:"",is_need_websocket_connect:!1,websocket_is_connected:!1,type:"once",send_platform:"",showNum:!1,showMore:!1,button:[{text:"取消",backgroundColor:"#E6E6E6",fontColor:"#000",plain:!0,shape:"round"},{text:"确定",backgroundColor:"#ffca28",fontColor:"#000"}],showCode:!1,showImg:!1,serial_sn_text:"取餐码",is_finishMeal:0,delivery_title:"配送",orderStatusList:[],bottomPopupShow:!1,imageSet:[],bottomSortRecordPopupShow:!1,sortRecordList:[],showSpellRiceBox:!1,spellRiceInfo:[],shareParams:null,vehicleData:"",loadings:!1}},computed:{},onLoad:function(t){var e=this;return(0,d.default)((0,n.default)().mark((function i(){return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.orderId=(null===t||void 0===t?void 0:t.order_sn)||0,e.getOrderDetailData();case 2:case"end":return i.stop()}}),i)})))()},onShow:function(){this.getOrderDetailData()},onPullDownRefresh:function(){this.getOrderDetailData()},methods:{cancelCatOrder:function(){var t=this;if(this.loadings)return!1;this.loadings=!0,this.loadingShow=!0,(0,m.cancelCatOrderApi)({sn:this.orderInfo.order_sn}).then((function(e){uni.showModal({title:"提示",content:"取消成功",showCancel:!1}),t.getOrderDetailData()})).catch((function(t){console.error("[order-detail]订单详情获取失败",t),(0,v.showToast)({title:t.msg}),(0,b.navBack)()})).finally((function(){t.loadingShow=!1,t.loadings=!1})),console.log("订单信息",this.orderInfo)},goto:function(t){(0,b.navPage)("/SP/informationWP?sn=".concat(t))},orderNotice:function(){orderNoticeApi({order_id:this.orderId}).then((function(t){console.log(t)}))},payPriceDiff:function(t){t.index?(this.orderId=this.priceDiffGoodsTmp.op_id,this.order_type="priceDiff",this.showPaySelectModal=!0,this.priceDifferencePopup=!1):this.priceDifferencePopup=!1},payPriceDiffShow:function(t){this.priceDifferencePopup=!0,this.priceDiffGoodsTmp=t},getQrcode:function(){var t=this;this.showCode=!0;setTimeout((function(){t.showImg=!0}),290)},closeCode:function(t){console.log(t,"ddadad"),this.showImg=!1,this.showCode=!1},codeUpdata:function(t){var e=t,i=e.split(","),o="";if(this.showNum)o+=i[0];else for(var a=0;a<i.length;a++)o+=i[a],(a+1)%3===0?o+=",\n":a+1!=i.length&&(o+=",");return console.log(o),o},numCl:function(t){var e=t.split(",");e.length>1&&(this.showNum=!0)},modalMore:function(t){console.log(t),this.showMore=!1},reconnect:function(){var t=x.LOCK_WEBSOCKET_URL;uni.connectSocket({url:t,success:function(t){console.log("WebSocket连接创建成功!",t)},fail:function(t){uni.showModal({title:"提示",content:"连接失败,请退出重新进入",showCancel:!1})}})},payOrderEvent:function(){this.showPaySelectModal=!0},handlePaySuccessEvent:function(){this.orderId=this.orderInfo.id,this.showPaySelectModal=!1,this.getOrderDetailData()},handlePayFailEvent:function(){this.orderId=this.orderInfo.id,this.showPaySelectModal=!1},handlePayCancelEvent:function(){this.orderId=this.orderInfo.id},confirmHelibaoAlipayEvent:function(t){this.helibaoAlipayPayUrl=t,this.showHelibaoAlipayImageModel=!0},getOrderDetailData:function(){var t=this;this.loadingShow=!0,(0,m.getCatOrderDetailApi)({sn:this.orderId}).then((function(e){t.orderInfo=e})).catch((function(t){console.error("[order-detail]订单详情获取失败",t),(0,v.showToast)({title:t.msg}),(0,b.navBack)()})).finally((function(){t.loadingShow=!1})),console.log("订单信息",this.orderInfo)},call:function(){(0,g.callPhone)(this.orderInfo.vehicle.driver_phone)},callDeliveryer:function(){(0,g.callPhone)(this.orderInfo.deliveryer.mobile)},handleBeforeNavBack:function(){return!0},getMapPath:function(t){var e=this,i=t.store,o=i.location_x,a=i.location_y,n=t.user,d=n.location_x,s=n.location_y;getOrderMapPathApi(t).then((function(t){var i=null===t||void 0===t?void 0:t.paths[0],n=i.steps,c=void 0===n?[]:n,l=[];c.forEach((function(t){var e=t.polyline,i=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,r.default)(i))})),e.mapInfo={fromCoordinate:{latitude:+o,longitude:+a},toCoordinate:{latitude:+d,longitude:+s},centerCoordinate:l[0],polyline:l,minutes:t.minutes,delivery_status:t.delivery_status},console.log(e.mapInfo)}))},refundOrder:function(){uni.showModal({title:"提示",content:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",showCancel:!1})},previewImage:function(t,e){uni.previewImage({current:e,urls:t})},callPhone:function(t){uni.makePhoneCall({phoneNumber:t})},copyToClipBoard:g.copyToClipBoard,expansion_close:function(){this.qrcode_box_show=!1},cancelOrder:function(t,e,i,o){var a=this;1!=o?0!=this.orderInfo.isPay?1==this.orderInfo.consumer_is_can_applyrefund?uni.showModal({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,success:function(e){e.confirm&&(0,b.navPage)("/order-page/takeout-order-refund/index?id="+t+"&type="+a.type)}}):uni.showToast({title:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",icon:"none",duration:2e3}):uni.showModal({title:"提示",content:"订单未支付,是否确认取消订单?",success:function(i){i.confirm&&cancelOrderApi({id:t}).then((function(t){(0,v.showToast)({title:"取消订单成功"}),e&&e()})).catch((function(t){(0,v.showToast)({title:t.msg})}))}}):uni.showToast({title:"订单退款申请中,请耐心等候",icon:"none",duration:2e3})},toStore:function(t,e){1==this.storeInfo.is_haodian?(0,b.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid="+t):2==this.storeInfo.is_haodian&&this.storeInfo.custom_links?(0,b.navPage)(this.storeInfo.custom_links):(this.storeInfo.pageShowType,(0,b.navPage)("/store-page/product-showcase/template-1?sid="+t+"&table_id="+e+"&is_scan=1"))},getOrderStatusList:function(){var t=this;orderStatusListApi(this.orderId).then((function(e){t.orderStatusList=e,console.log("this.orderStatusList",t.orderStatusList)}))},showBottomPopupShow:function(){this.bottomPopupShow=!0},toRecord:function(t){if(t.is_pickup||t.is_delivery){var e=t.is_pickup?"pickup":"delivery",i=t.express_type,o=t.waybillno;(0,b.navPage)("record?order_id="+this.orderId+"&type="+e+"&express_type="+i+"&waybillno="+o)}else uni.showToast({title:"该状态无法查询物流信息",icon:"none",duration:2e3})},searchSortRecord:function(){this.bottomSortRecordPopupShow=!0},previewSortImage:function(t){var e=t.images.map((function(t){return t}));uni.previewImage({current:0,urls:e})},countDown:function(){var t=this;this.timer=setInterval((function(){t.handleFormatTime()}),1e3)},handleFormatTime:function(){var t=1e3*this.spellRiceInfo.spellrice_end_time,e=(new Date).getTime(),i=t-e;if(i<=0)clearInterval(this.timer);else{var o=Math.floor(i/36e5),a=Math.floor(i%36e5/6e4),r=Math.floor(i%6e4/1e3);this.spellRiceInfo.hour=o<10?"0"+o:o,this.spellRiceInfo.minute=a<10?"0"+a:a,this.spellRiceInfo.second=r<10?"0"+r:r}},shareSpellRice:function(){(0,b.navPage)("/plugin-page/eatmerge/index")},rereminderOrderApi:function(){var t=this,e={order_id:this.orderInfo.id};(0,_.reminderOrderEventApi)(e).then((function(e){e.data?(uni.showToast({icon:"none",title:"已为您催促配送"}),t.getOrderStatusList()):uni.showToast({icon:"none",title:"系统繁忙,请稍后重试"})}))},reminderOrderEvent:function(){var t=this.orderInfo.deliveryTime,e=this.extractFirstTime(t);console.log(e);var i=this.isTimeOutOfRange(e);if(console.log(i),i){for(var o="",a=0;a<this.orderStatusList.length;a++){var r=this.orderStatusList[a].info.slice(-2);if("催单"===r){o=this.orderStatusList[a].time;break}}if(""!=o){var n=this.isIntervalTime(o,10);n?uni.showToast({icon:"none",title:"请勿频繁催单"}):this.rereminderOrderApi()}else this.rereminderOrderApi()}else uni.showToast({icon:"none",title:"正常时效无须催促"})},isTimeOutOfRange:function(t){var e=new Date,i=e.getHours(),o=e.getMinutes(),r=t.split(":").map(Number),n=(0,a.default)(r,2),d=n[0],s=n[1],c=60*i+o,l=60*d+s;return c>l},isIntervalTime:function(t,e){var i=new Date(t),o=new Date,a=new Date(i.getTime()+60*e*1e3);return a>o},extractFirstTime:function(t){var e=t.match(/(\d{1,2}:\d{2})(?:[~-]\d{1,2}:\d{2})?/);return e&&e[1]?e[1]:null}},onShareAppMessage:function(){if(this.shareParams)return this.shareParams}};e.default=y},"98db":function(t,e,i){var o=i("3697");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("784aa8e8",o,!0,{sourceMap:!1,shadowMode:!1})},"9c6f":function(t,e,i){"use strict";i.r(e);var o=i("e79b"),a=i("b118");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("d4df");var n=i("828b"),d=Object(n["a"])(a["default"],o["b"],o["c"],!1,null,"24245b2c",null,!1,o["a"],void 0);e["default"]=d.exports},a9e5:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.submitAndPay=e.projectList=e.getSPDetail=e.getPayType=e.getCatOrderListApi=e.getCatOrderDetailApi=e.cancelCatOrderApi=void 0;var a=o(i("7653"));e.getSPDetail=function(t){return a.default.post("api/user.product.washPet/detail",t)};e.getPayType=function(t){return a.default.post("api/user.dict.pay/list",t)};e.submitAndPay=function(t){return a.default.post("api/user.order.washPet/submitAndPay",t)};e.projectList=function(t){return a.default.post("api/user.product.washPet/list",t)};e.getCatOrderListApi=function(t){return a.default.post("api/user.order.washPet/list",t)};e.getCatOrderDetailApi=function(t){return a.default.post("api/user.order.washPet/detail",t)};e.cancelCatOrderApi=function(t){return a.default.post("api/user.order.washPet/cancel",t)}},b118:function(t,e,i){"use strict";i.r(e);var o=i("7d95"),a=i.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},d4df:function(t,e,i){"use strict";var o=i("98db"),a=i.n(o);a.a},e79b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return o}));var o={loading:i("8c27").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{kefu:!0,"custom-navbar":!0,"navbar-title":"订单详情","wrapper-bg-color":"#F3F2F7","before-back":t.handleBeforeNavBack}},[t.loadingShow?i("loading"):t._e(),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"flex space alcenter"},[i("v-uni-view",{staticClass:"ftw500",staticStyle:{"font-size":"38rpx"}},[t._v(t._s(t.orderInfo.order_status_text||"-"))])],1),t.orderInfo.address?i("v-uni-view",{staticClass:"order-status tn-flex-column mt20"},[i("v-uni-view",{staticClass:"flex alcenter"},[i("v-uni-view",{staticClass:"value",staticStyle:{flex:"1","margin-left":"0","font-size":"34rpx"}},[t._v(t._s(t.orderInfo.address.address||""))])],1),i("v-uni-view",{staticClass:"ft13 mt12",staticStyle:{color:"#767676"}},[t._v(t._s((t.orderInfo.address.realname||"")+"/"+(t.orderInfo.address.phone_area||"")+" "+(t.orderInfo.address.mobile||"")))])],1):t._e(),i("v-uni-view",{staticClass:"order-info-card"},[i("v-uni-view",{staticClass:"infoType"},[t._v("订单信息")]),i("v-uni-view",{staticClass:"order-info flex space"},[i("v-uni-view",{staticClass:"flex"},[t.orderInfo.product?i("v-uni-image",{staticClass:"order-image",attrs:{src:t.orderInfo.product.product_img,mode:"scaleToFill"}}):t._e(),i("v-uni-view",{staticClass:"order-details"},[i("v-uni-text",{staticClass:"order-title"},[t._v(t._s(t.orderInfo.product_name||"-"))])],1)],1),t.orderInfo.product_price?i("v-uni-view",{staticClass:"order-price",staticStyle:{"margin-top":"0"}},[i("span",{staticClass:"price-icon"},[t._v(t._s(t.orderInfo.product_price.unit))]),t._v(t._s(t.orderInfo.product_price.value||"0"))]):t._e()],1),i("v-uni-view",{staticClass:"com-line",staticStyle:{background:"#EFEFF4"}}),t.orderInfo.address?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("联系人称呼")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.address.realname||""))])],1):t._e(),t.orderInfo.washPet?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("宠物名字")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.washPet.pet_name||""))])],1):t._e(),t.orderInfo.washPet?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("是否咬人")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(2==t.orderInfo.washPet.is_bite_people?"否":"是"))])],1):t._e(),t.orderInfo.washPet?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("是否皮肤敏感")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(2==t.orderInfo.washPet.is_skin_sensitive?"否":"是"))])],1):t._e(),t.orderInfo.washPet?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("是否有跳蚤")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(2==t.orderInfo.washPet.is_has_flea?"否":"是"))])],1):t._e(),t.orderInfo.washPet?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("是否严重打结")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(2==t.orderInfo.washPet.is_knotting?"否":"是"))])],1):t._e(),i("v-uni-view",{staticClass:"com-line",staticStyle:{background:"#EFEFF4"}}),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("下单时间")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.create_time||"-"))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("订单编号")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.order_sn||"-"))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("支付方式")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.pay_id_text||"-"))])],1),t.orderInfo.order_amount&&t.orderInfo.visit_fee&&t.orderInfo.tax?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("小计")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.order_amount.unit)+"\n\t\t\t\t\t"+t._s((t.orderInfo.order_amount.value||0)-(t.orderInfo.visit_fee.value||0)-(t.orderInfo.tax.value||0)<=0?t.orderInfo.product_price?t.orderInfo.product_price.value:"":(t.orderInfo.order_amount.value||0)-(t.orderInfo.visit_fee.value||0)-(t.orderInfo.tax.value||0)))])],1):t._e(),t.orderInfo.visit_fee?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("上门费")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.visit_fee.unit||"")+t._s(t.orderInfo.visit_fee.value||""))])],1):t._e(),t.orderInfo.tax?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("税")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.tax.unit||"")+t._s(t.orderInfo.tax.value||""))])],1):t._e(),t.orderInfo.order_amount?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[t._v("实付金额")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.orderInfo.order_amount.unit||"")+t._s(t.orderInfo.order_amount.value||"-"))])],1):t._e()],1)],1)],1)},r=[]}}]);
|