prepaidRecharge-order-detail.9acc819d.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["prepaidRecharge-order-detail"],{"31d9":function(e,t,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPayApi=t.orderDetailPayApi=t.listApi=t.goPayApi=t.getRechargeOrderListApi=t.getPaymentListApi=t.getOperatorListApi=t.getCountryListApi=void 0;var a=i(o("7653"));t.getCountryListApi=function(e){return a.default.post("api/user.product.PhoneRecharge/getCountryList",e)};t.getOperatorListApi=function(e){return a.default.post("api/user.product.PhoneRecharge/getOperatorList",e)};t.listApi=function(e){return a.default.post("api/user.product.PhoneRecharge/list",e)};t.getRechargeOrderListApi=function(e){return a.default.post("api/user.order.phoneRecharge/list",e)};t.getPaymentListApi=function(e){return a.default.post("api/user.dict.pay/list",e)};t.goPayApi=function(e){return a.default.post("api/user.order.PhoneRecharge/goPay",e)};t.submitAndPayApi=function(e){return a.default.post("api/user.order.PhoneRecharge/submitAndPay",e)};t.orderDetailPayApi=function(e){return a.default.post("api/user.order.phoneRecharge/detail",e)}},"4e87":function(e,t,o){var i=o("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.wrapper[data-v-16c7806e]{height:100vh;padding:%?30?%}.wrapper .more-qcm[data-v-16c7806e]{display:flex;flex-wrap:wrap}.wrapper .top-bg[data-v-16c7806e]{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-16c7806e]{display:flex;flex-direction:column;justify-content:space-between}.wrapper .top-bg .tip .size[data-v-16c7806e]{font-size:%?55?%}.wrapper .top-bg .tip .nums[data-v-16c7806e]{padding:%?5?% %?15?%;background-color:#ffc929;border-radius:%?10?%;display:inline-block}.wrapper .top-bg .tip .qrCode-tip[data-v-16c7806e]{display:flex;align-items:center}.wrapper .top-bg .tip-qc[data-v-16c7806e]{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-16c7806e]{width:100%}.customCallout .box[data-v-16c7806e]{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-16c7806e]{width:%?60?%;background-color:#2459ee;color:#fff;height:%?50?%;display:block;text-align:center;line-height:%?50?%}.customCallout .box .from[data-v-16c7806e],\n.customCallout .box .to[data-v-16c7806e]{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-16c7806e]{margin:0 auto;height:6px;width:10px;display:block;margin-bottom:8px}.customCallout .dot[data-v-16c7806e]{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-16c7806e]{border-radius:50%;width:%?22?%;height:%?22?%;background-color:#2459ee;display:block;margin:0 auto}.customCallout .box .status99[data-v-16c7806e]{background-color:#666}.customCallout .dot .dot-child.status99[data-v-16c7806e]{background-color:#666}\n/* 订单状态信息 start */.order-status[data-v-16c7806e]{border-radius:%?15?%;padding:%?30?%;background-color:#fff}.order-status .status-value[data-v-16c7806e]{font-size:%?42?%;font-weight:700;color:#ffca28}.order-status .status-tips[data-v-16c7806e]{margin-top:%?20?%;color:#aaa}.order-status .order-operation-btns[data-v-16c7806e]{margin-top:%?20?%}.order-status .order-operation-btns .btn[data-v-16c7806e]{padding:%?10?% %?16?%;border-radius:%?15?%}.order-status .order-operation-btns .btn + .btn[data-v-16c7806e]{margin-left:%?12?%}\n/* 订单状态信息 end */.lock[data-v-16c7806e]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%;padding:%?30?%;flex-direction:column}.lock .lock_item[data-v-16c7806e]{display:flex;margin-bottom:%?20?%}.lock .lock_item uni-text[data-v-16c7806e]{font-size:%?30?%}.lock .operation[data-v-16c7806e]{display:flex;flex-direction:column;justify-content:space-between}.lock .operation .button[data-v-16c7806e]{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-16c7806e]{color:#aaa;font-size:%?24?%;text-align:center}.lock uni-text[data-v-16c7806e]{font-size:%?30?%}.deliveryer[data-v-16c7806e]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%}.deliveryer uni-image[data-v-16c7806e]{height:%?60?%;width:%?60?%;border-radius:%?10?%;display:block;margin-right:%?20?%}.deliveryer uni-text[data-v-16c7806e]{font-size:%?30?%}\n/* 商品价格信息 start */.product-price-info[data-v-16c7806e]{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-16c7806e]{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-16c7806e]{font-size:%?30?%}.product-price-info .product-info .store-name .store-logo[data-v-16c7806e]{height:%?60?%;width:%?60?%;border-radius:%?6?%}.product-price-info .product-info .product-list .product-item[data-v-16c7806e]{border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .item-image[data-v-16c7806e]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-16c7806e]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-16c7806e]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-16c7806e]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-16c7806e]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-16c7806e]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-16c7806e]{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-16c7806e]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-16c7806e]{font-weight:700}.product-price-info .discount-info[data-v-16c7806e]{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-16c7806e]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .price[data-v-16c7806e]{font-weight:700}.product-price-info .total-price[data-v-16c7806e]{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-16c7806e]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-16c7806e],\n.product-price-info .total-price .data .discount[data-v-16c7806e],\n.product-price-info .total-price .data .paid[data-v-16c7806e]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-16c7806e]{font-size:%?34?%}.product-price-info .call-store[data-v-16c7806e]{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-16c7806e]{border-radius:%?15?%;background-color:#fff;padding:%?30?%;margin-top:%?40?%}.order-info-card .item[data-v-16c7806e]{display:flex}.order-info-card .item .title[data-v-16c7806e]{font-size:%?30?%;font-weight:500}.order-info-card .item .value[data-v-16c7806e]{flex:1;margin-left:%?20?%\n /* 复制按钮 start */\n /* 复制按钮 end */}.order-info-card .item .value .copy-btn[data-v-16c7806e]{padding:%?4?% %?16?%;border-radius:%?12?%}.order-info-card .infoType[data-v-16c7806e]{font-size:%?36?%;margin-bottom:%?30?%}.order-info-card .item + .item[data-v-16c7806e]{margin-top:%?30?%}\n/* 订单信息卡片 end */.expansion[data-v-16c7806e]{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-16c7806e]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-16c7806e]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-16c7806e]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-16c7806e]{width:100%}.expansion .expansion_box .line4[data-v-16c7806e]{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-16c7806e]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-16c7806e]{width:%?60?%;height:%?60?%}.maskCode[data-v-16c7806e]{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-16c7806e]{background-color:#fff;padding:%?30?%;border-radius:%?20?%}.maskCode .cent-mod .min-data[data-v-16c7806e]{min-width:65vw;min-height:60vw}.bottom-btns[data-v-16c7806e]{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-16c7806e]{flex:1}.bottom-btns .btns_right[data-v-16c7806e]{display:flex;flex:2;flex-direction:row}.bottom-btns .btns_right .btn[data-v-16c7806e]{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-16c7806e]{margin-left:%?20?%}.order-log[data-v-16c7806e]{background-color:#fff;border-radius:%?15?%;padding:%?30?%;width:%?700?%}.order-log .log-item[data-v-16c7806e]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item .time[data-v-16c7806e]{font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-16c7806e]{flex:1;margin-left:%?20?%;font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-16c7806e]:before{content:"";display:inline-block;width:%?10?%;height:%?10?%;background-color:#ffca28;border-radius:50%;margin-right:%?10?%}.order-log .log-item2[data-v-16c7806e]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item2 .time[data-v-16c7806e]{font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-16c7806e]{flex:1;margin-left:%?20?%;font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-16c7806e]:before{content:"";display:inline-block;width:%?5?%;height:%?5?%;background-color:#999;border-radius:50%;margin-right:%?10?%}.spell-rice-box[data-v-16c7806e]{display:flex;flex-direction:column;background-color:#fff;text-align:center;justify-content:center}.spell-rice-box .row1[data-v-16c7806e]{font-size:%?20?%}.spell-rice-box .row2[data-v-16c7806e]{font-size:%?30?%;font-weight:700}.spell-rice-box .row3[data-v-16c7806e]{font-size:%?36?%;color:red}.spell-rice-box .persons[data-v-16c7806e]{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-16c7806e]{flex:1;position:relative}.spell-rice-box .persons .leader uni-image[data-v-16c7806e]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .persons .leader uni-text[data-v-16c7806e]{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-16c7806e]{flex:2;font-size:%?30?%;font-weight:bolder;margin:0 %?20?%}.spell-rice-box .persons .members[data-v-16c7806e]{flex:1}.spell-rice-box .persons .members uni-image[data-v-16c7806e]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .share_btn[data-v-16c7806e]{background-color:#ffe9ea;color:#cd3b2b;height:%?80?%;display:flex;text-align:center;align-items:center;justify-content:center;border-radius:%?15?%;margin-top:%?15?%}',""]),e.exports=t},"5c0d":function(e,t,o){var i=o("4e87");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("967d").default;a("a0b61d12",i,!0,{sourceMap:!1,shadowMode:!1})},"69ca":function(e,t,o){"use strict";var i=o("5c0d"),a=o.n(i);a.a},a431:function(e,t,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("bf0f"),o("2797"),o("fd3c"),o("aa9c"),o("d4b5"),o("f7a5"),o("64aa"),o("5c47"),o("2c10");var a=i(o("5de6")),r=i(o("b7c7")),n=i(o("2634")),d=i(o("2fdc")),c=i(o("39d8")),s=i(o("dae0")),l=i(o("44ca")),f=i(o("34cae")),u=i(o("495e")),p=i(o("8c27")),h=o("9d0a"),g=o("419c"),v=o("815c"),m=i(o("fc1b")),b=(i(o("ae59")),o("31d9")),w=i(o("dc1f")),_=(o("262c"),o("3137")),y=o("e0a2"),x=o("e0a2"),k={components:{PaySelectModal:f.default,CenterModal:u.default,loading:p.default,CustomMap:m.default},mixins:[w.default,s.default,l.default],data:function(){var e;return{icon:[x.staticUrl+"api/images/20250618/images_1750217730.png",x.staticUrl+"api/images/20250624/images_1750736666.png"],orderId:0,from:"",order_type:"takeout",orderInfo:(e={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,c.default)(e,"deliveryPrice",0),(0,c.default)(e,"pack_fee",0),(0,c.default)(e,"price",0),(0,c.default)(e,"batch_result",{}),(0,c.default)(e,"lock_status",0),(0,c.default)(e,"lock_result",{}),(0,c.default)(e,"qrcode",""),(0,c.default)(e,"person_num",0),e),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,projectImg:""}},computed:{},onLoad:function(e){var t=this;return(0,d.default)((0,n.default)().mark((function o(){return(0,n.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(t.orderId=(null===e||void 0===e?void 0:e.order_sn)||0,t.orderId){o.next=3;break}return o.abrupt("return",(0,h.showToast)({title:"缺少参数"}));case 3:t.getOrderDetailData();case 4:case"end":return o.stop()}}),o)})))()},onShow:function(){this.getOrderDetailData()},onPullDownRefresh:function(){this.getOrderDetailData()},methods:{goto:function(e){(0,g.navPage)("/SP/informationWP?sn=".concat(e))},orderNotice:function(){orderNoticeApi({order_id:this.orderId}).then((function(e){console.log(e)}))},payPriceDiff:function(e){e.index?(this.orderId=this.priceDiffGoodsTmp.op_id,this.order_type="priceDiff",this.showPaySelectModal=!0,this.priceDifferencePopup=!1):this.priceDifferencePopup=!1},payPriceDiffShow:function(e){this.priceDifferencePopup=!0,this.priceDiffGoodsTmp=e},getQrcode:function(){var e=this;this.showCode=!0;setTimeout((function(){e.showImg=!0}),290)},closeCode:function(e){console.log(e,"ddadad"),this.showImg=!1,this.showCode=!1},codeUpdata:function(e){var t=e,o=t.split(","),i="";if(this.showNum)i+=o[0];else for(var a=0;a<o.length;a++)i+=o[a],(a+1)%3===0?i+=",\n":a+1!=o.length&&(i+=",");return console.log(i),i},numCl:function(e){var t=e.split(",");t.length>1&&(this.showNum=!0)},modalMore:function(e){console.log(e),this.showMore=!1},reconnect:function(){var e=y.LOCK_WEBSOCKET_URL;uni.connectSocket({url:e,success:function(e){console.log("WebSocket连接创建成功!",e)},fail:function(e){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(e){this.helibaoAlipayPayUrl=e,this.showHelibaoAlipayImageModel=!0},getOrderDetailData:function(){var e=this;this.loadingShow=!0,(0,b.orderDetailPayApi)({sn:this.orderId}).then((function(t){e.orderInfo=t})).catch((function(e){console.error("[order-detail]订单详情获取失败",e),(0,h.showToast)({title:e.msg}),(0,g.navBack)()})).finally((function(){e.loadingShow=!1})),console.log("订单信息",this.orderInfo)},handleOrderStatusTipsInfo:function(e,t){1===e.is_spellrice&&(this.orderInfo.statusTips="该订单为拼饭订单"),7!==e.delivery_status&&t&&(this.orderInfo.statusTips=t.note||""),e.status>=2&&e.status<5&&1===e.order_type&&(this.orderInfo.statusTips="配送时间:".concat(e.delivery_time))},callStore:function(){(0,v.callPhone)(this.storeInfo.mobile)},callDeliveryer:function(){(0,v.callPhone)(this.orderInfo.deliveryer.mobile)},handleBeforeNavBack:function(){return!0},getMapPath:function(e){var t=this,o=e.store,i=o.location_x,a=o.location_y,n=e.user,d=n.location_x,c=n.location_y;getOrderMapPathApi(e).then((function(e){var o=null===e||void 0===e?void 0:e.paths[0],n=o.steps,s=void 0===n?[]:n,l=[];s.forEach((function(e){var t=e.polyline,o=t.split(";").map((function(e){var t=e.split(",");return{latitude:(+t[1]).toFixed(5),longitude:(+t[0]).toFixed(5)}}));l.push.apply(l,(0,r.default)(o))})),t.mapInfo={fromCoordinate:{latitude:+i,longitude:+a},toCoordinate:{latitude:+d,longitude:+c},centerCoordinate:l[0],polyline:l,minutes:e.minutes,delivery_status:e.delivery_status},console.log(t.mapInfo)}))},refundOrder:function(){uni.showModal({title:"提示",content:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",showCancel:!1})},previewImage:function(e,t){uni.previewImage({current:t,urls:e})},callPhone:function(e){uni.makePhoneCall({phoneNumber:e})},copyToClipBoard:v.copyToClipBoard,openLock:function(){var e=this;e.loadingShow=!0,e.websocket_is_connected?uni.showModal({title:"提示",content:"请确认是否开柜",success:function(t){t.confirm&&getChannelApi(e.orderInfo.id).then((function(t){console.log("res",t),e.orderInfo.lock_result.order_sn=t.data.order_sn,e.orderInfo.lock_result.channel_id=t.data.channel_id,e.orderInfo.lock_result.device_sn=t.data.device_sn,e.orderInfo.lock_result.lock_id=t.data.lock_id,e.orderInfo.lock_result.channel=t.data.channel,e.orderInfo.lock_result.ccid=t.data.ccid,e.orderInfo.lock_result.panelId=t.data.panelId,e.sendOpenLockCommand()}))}}):uni.showModal({title:"提示",content:"连接已关闭,请退出重新进入",showCancel:!1})},sendOpenLockCommand:function(){var e={userClient:"user",type:"unlockChannel",method:"order_sn",ccid:this.orderInfo.lock_result.ccid,lock_id:this.orderInfo.lock_result.id,channel:this.orderInfo.lock_result.channel,panelId:this.orderInfo.lock_result.panelId,order_sn:this.orderInfo.lock_result.order_sn,channel_id:this.orderInfo.lock_result.channel_id,device_sn:this.orderInfo.lock_result.device_sn},t=JSON.stringify(e);this.open_lock_string=t,uni.sendSocketMessage({data:t})},openQrcode:function(e){this.order_qrcode=e,this.qrcode_box_show=!0},expansion_close:function(){this.qrcode_box_show=!1},cancelOrder:function(e,t,o,i){var a=this;1!=i?0!=this.orderInfo.isPay?1==this.orderInfo.consumer_is_can_applyrefund?uni.showModal({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,success:function(t){t.confirm&&(0,g.navPage)("/order-page/takeout-order-refund/index?id="+e+"&type="+a.type)}}):uni.showToast({title:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",icon:"none",duration:2e3}):uni.showModal({title:"提示",content:"订单未支付,是否确认取消订单?",success:function(o){o.confirm&&cancelOrderApi({id:e}).then((function(e){(0,h.showToast)({title:"取消订单成功"}),t&&t()})).catch((function(e){(0,h.showToast)({title:e.msg})}))}}):uni.showToast({title:"订单退款申请中,请耐心等候",icon:"none",duration:2e3})},toStore:function(e,t){1==this.storeInfo.is_haodian?(0,g.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid="+e):2==this.storeInfo.is_haodian&&this.storeInfo.custom_links?(0,g.navPage)(this.storeInfo.custom_links):(this.storeInfo.pageShowType,(0,g.navPage)("/store-page/product-showcase/template-1?sid="+e+"&table_id="+t+"&is_scan=1"))},getOrderStatusList:function(){var e=this;orderStatusListApi(this.orderId).then((function(t){e.orderStatusList=t,console.log("this.orderStatusList",e.orderStatusList)}))},showBottomPopupShow:function(){this.bottomPopupShow=!0},toRecord:function(e){if(e.is_pickup||e.is_delivery){var t=e.is_pickup?"pickup":"delivery",o=e.express_type,i=e.waybillno;(0,g.navPage)("record?order_id="+this.orderId+"&type="+t+"&express_type="+o+"&waybillno="+i)}else uni.showToast({title:"该状态无法查询物流信息",icon:"none",duration:2e3})},searchSortRecord:function(){this.bottomSortRecordPopupShow=!0},previewSortImage:function(e){var t=e.images.map((function(e){return e}));uni.previewImage({current:0,urls:t})},countDown:function(){var e=this;this.timer=setInterval((function(){e.handleFormatTime()}),1e3)},handleFormatTime:function(){var e=1e3*this.spellRiceInfo.spellrice_end_time,t=(new Date).getTime(),o=e-t;if(o<=0)clearInterval(this.timer);else{var i=Math.floor(o/36e5),a=Math.floor(o%36e5/6e4),r=Math.floor(o%6e4/1e3);this.spellRiceInfo.hour=i<10?"0"+i:i,this.spellRiceInfo.minute=a<10?"0"+a:a,this.spellRiceInfo.second=r<10?"0"+r:r}},shareSpellRice:function(){(0,g.navPage)("/plugin-page/eatmerge/index")},rereminderOrderApi:function(){var e=this,t={order_id:this.orderInfo.id};(0,_.reminderOrderEventApi)(t).then((function(t){t.data?(uni.showToast({icon:"none",title:"已为您催促配送"}),e.getOrderStatusList()):uni.showToast({icon:"none",title:"系统繁忙,请稍后重试"})}))},reminderOrderEvent:function(){var e=this.orderInfo.deliveryTime,t=this.extractFirstTime(e);console.log(t);var o=this.isTimeOutOfRange(t);if(console.log(o),o){for(var i="",a=0;a<this.orderStatusList.length;a++){var r=this.orderStatusList[a].info.slice(-2);if("催单"===r){i=this.orderStatusList[a].time;break}}if(""!=i){var n=this.isIntervalTime(i,10);n?uni.showToast({icon:"none",title:"请勿频繁催单"}):this.rereminderOrderApi()}else this.rereminderOrderApi()}else uni.showToast({icon:"none",title:"正常时效无须催促"})},isTimeOutOfRange:function(e){var t=new Date,o=t.getHours(),i=t.getMinutes(),r=e.split(":").map(Number),n=(0,a.default)(r,2),d=n[0],c=n[1],s=60*o+i,l=60*d+c;return s>l},isIntervalTime:function(e,t){var o=new Date(e),i=new Date,a=new Date(o.getTime()+60*t*1e3);return a>i},extractFirstTime:function(e){var t=e.match(/(\d{1,2}:\d{2})(?:[~-]\d{1,2}:\d{2})?/);return t&&t[1]?t[1]:null}},onShareAppMessage:function(){if(this.shareParams)return this.shareParams}};t.default=k},ad24:function(e,t,o){"use strict";o.r(t);var i=o("a431"),a=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},dd86:function(e,t,o){"use strict";o.r(t);var i=o("f8b8"),a=o("ad24");for(var r in a)["default"].indexOf(r)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(r);o("69ca");var n=o("828b"),d=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,"16c7806e",null,!1,i["a"],void 0);t["default"]=d.exports},f8b8:function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return i}));var i={loading:o("8c27").default},a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("custom-page",{attrs:{kefu:!0,"custom-navbar":!0,"navbar-title":"订单详情","wrapper-bg-color":"#F3F2F7","before-back":e.handleBeforeNavBack}},[e.loadingShow?o("loading"):e._e(),o("v-uni-view",{staticClass:"wrapper"},[o("v-uni-view",{staticClass:"order-status tn-flex-column tn-flex-center"},[o("v-uni-view",{staticClass:"status-value"},[e._v(e._s(e.orderInfo.order_status_text||"-"))])],1),o("v-uni-view",{staticClass:"product-price-info"},[o("v-uni-view",{staticClass:"product-info"},[o("v-uni-view",{staticClass:"product-list"},[o("v-uni-view",{staticClass:"product-item tn-bg-gray--light tn-color-black"},[o("v-uni-view",{staticClass:"item-image"},[o("v-uni-image",{staticClass:"image",attrs:{src:e.icon[0],mode:"aspectFill"}})],1),o("v-uni-view",{staticClass:"item-info"},[o("v-uni-view",{staticClass:"title tn-text-ellipsis-1"},[e._v(e._s(e.orderInfo.product_name||"-"))]),e.orderInfo.pay_amount?o("v-uni-view",{staticClass:"price-num tn-flex-end-between"},[o("v-uni-view",{staticClass:"price tn-color-red"},[e._v(e._s(e.orderInfo.pay_amount.currency)+e._s(e.orderInfo.pay_amount.val))])],1):e._e()],1)],1)],1)],1),o("v-uni-view",{staticClass:"total-price"},[o("v-uni-view",{staticClass:"title"},[e._v("合计")]),o("v-uni-view",{staticClass:"data tn-color-gray"},[e.orderInfo.pay_amount?o("v-uni-view",{staticClass:"sum"},[e._v("共计"+e._s(e.orderInfo.pay_amount.currency)+e._s(e.orderInfo.pay_amount.val))]):e._e(),e.orderInfo.pay_amount?o("v-uni-view",{staticClass:"paid tn-color-black"},[e._v("实付"),o("v-uni-text",{staticClass:"tn-color-red",staticStyle:{"margin-left":"5rpx"}},[e._v(e._s(e.orderInfo.pay_amount.currency)+e._s(e.orderInfo.pay_amount.val))])],1):e._e()],1)],1)],1),e.orderInfo.phoneRecharge?o("v-uni-view",{staticClass:"order-info-card"},[o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("充值号码")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.phoneRecharge.phone_area+" "+e.orderInfo.phoneRecharge.phone))])],1),o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("运营商")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.phoneRecharge.operator_name))])],1),o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("号码归属地")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.phoneRecharge.country_name))])],1)],1):e._e(),o("v-uni-view",{staticClass:"order-info-card"},[o("v-uni-view",{staticClass:"item",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.copyToClipBoard(e.orderInfo.order_sn)}}},[o("v-uni-view",{staticClass:"title"},[e._v("订单号")]),o("v-uni-view",{staticClass:"value tn-flex-center-between"},[o("v-uni-view",{staticClass:"order-no"},[e._v(e._s(e.orderInfo.order_sn||"-"))]),o("v-uni-view",{staticClass:"copy-btn",style:[e.themeBtnStyle]},[e._v("复制")])],1)],1),o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("下单时间")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.create_time))])],1),o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("支付时间")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.pay_time))])],1),o("v-uni-view",{staticClass:"item"},[o("v-uni-view",{staticClass:"title"},[e._v("支付方式")]),o("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.pay_id_text))])],1)],1)],1)],1)},r=[]}}]);