SIM-order-detail.6425f9cc.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SIM-order-detail"],{"1e4c":function(e,t,a){"use strict";a.r(t);var i=a("dbe2"),o=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},2506:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPayApi=t.projectList=t.packageListApi=t.getSPDetail=t.getPayType=t.getPackageListApi=t.getOrderDetailApi=void 0;var o=i(a("7653"));t.projectList=function(e){return o.default.post("api/user.product.phoneRecharge.sim/list",e)};t.getSPDetail=function(e){return o.default.post("api/user.product.phoneRecharge.sim/detail",e)};t.packageListApi=function(e){return o.default.post("api/user.product.phoneRecharge.sim/packageList",e)};t.getPayType=function(e){return o.default.post("api/user.visa.product/dict",e)};t.submitAndPayApi=function(e){return o.default.post("api/user.order.phoneRecharge.sim/submitAndPay",e)};t.getOrderDetailApi=function(e){return o.default.post("api/user.order.phoneRecharge.sim/detail",e)};t.getPackageListApi=function(e){return o.default.post("api/user.product.phoneRecharge.sim/packageList",e)}},6648:function(e,t,a){"use strict";var i=a("9857"),o=a.n(i);o.a},"67c9":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i}));var i={loading:a("8c27").default},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("custom-page",{attrs:{kefu:!0,"custom-navbar":!0,"navbar-title":"订单详情","wrapper-bg-color":"#EFEFF4","before-back":e.handleBeforeNavBack}},[e.loadingShow?a("loading"):e._e(),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"flex space alcenter"},[a("v-uni-view",{staticClass:"ftw500",staticStyle:{"font-size":"38rpx"}},[e._v(e._s(e.orderInfo.order_status_text||"-"))])],1),e.orderInfo.simCard&&e.orderInfo.simCard.qrcode_url?a("v-uni-view",{staticClass:"order-status tn-flex-column mt20"},[a("v-uni-view",{staticClass:"flex alcenter center"},[a("v-uni-view",{staticClass:"value",staticStyle:{"margin-left":"0","font-size":"34rpx"}},[e._v("扫描二维码激活"+e._s(e.orderInfo.simCard.sim_card_type))])],1),a("v-uni-view",{staticClass:"flex alcenter center mt10"},[a("v-uni-image",{staticStyle:{width:"300rpx",height:"300rpx"},attrs:{src:e.orderInfo.simCard.qrcode_url,mode:""}})],1)],1):e._e(),e.orderInfo.address?a("v-uni-view",{staticClass:"order-status tn-flex-column mt20"},[a("v-uni-view",{staticClass:"flex alcenter"},[a("v-uni-view",{staticClass:"value",staticStyle:{flex:"1","margin-left":"0","font-size":"34rpx"}},[e._v(e._s(e.orderInfo.address.address||""))])],1),a("v-uni-view",{staticClass:"ft13 mt12",staticStyle:{color:"#767676"}},[e._v(e._s((e.orderInfo.address.realname||"")+"/"+(e.orderInfo.address.phone_area||"")+" "+(e.orderInfo.address.mobile||"")))])],1):e._e(),a("v-uni-view",{staticClass:"order-info-card"},[a("v-uni-view",{staticClass:"infoType"},[e._v("订单信息")]),a("v-uni-view",{staticClass:"order-info flex space"},[a("v-uni-view",{staticClass:"flex"},[e.orderInfo.product_img?a("v-uni-image",{staticClass:"order-image",attrs:{src:e.orderInfo.product_img,mode:"scaleToFill"}}):e._e(),a("v-uni-view",{staticClass:"order-details flex column",staticStyle:{flex:"4"}},[a("v-uni-text",{staticClass:"order-title"},[e._v(e._s(e.orderInfo.product_name||"-"))]),e.orderInfo.simCard?a("v-uni-view",{staticClass:"ft12 ftw500",staticStyle:{"margin-top":"16rpx",color:"#A4A4A4"}},[a("v-uni-text",[e._v("卡类型:"+e._s(e.orderInfo.simCard.sim_card_type))])],1):e._e(),e.orderInfo.simCard?a("v-uni-view",{staticClass:"ft12 ftw500",staticStyle:{"margin-top":"16rpx",color:"#A4A4A4"}},[a("v-uni-text",[e._v(e._s((e.orderInfo.simCard.flow?e.orderInfo.simCard.flow:"-")+" x "+(e.orderInfo.simCard.day?e.orderInfo.simCard.day+"天":"-")))])],1):e._e()],1)],1),e.orderInfo.order_amount?a("v-uni-view",{staticClass:"order-price ml30",staticStyle:{"margin-top":"0"}},[a("span",{staticClass:"price-icon"},[e._v(e._s(e.orderInfo.order_amount.unit))]),e._v(e._s(e.orderInfo.order_amount.value||"0"))]):e._e()],1),a("v-uni-view",{staticClass:"com-line",staticStyle:{background:"#EFEFF4"}}),e.orderInfo.simCard&&e.orderInfo.simCard.sim_no?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("卡号")]),a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.simCard.sim_no||"-"))]),a("v-uni-text",{staticClass:"copy-btn ml15 ft13",staticStyle:{"margin-bottom":"4rpx"},style:[e.themeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.copyToClipBoard(e.orderInfo.simCard.sim_no)}}},[e._v("复制")])],1)],1):e._e(),e.orderInfo.simCard?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("国家")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.simCard.region||"-"))])],1):e._e(),e.orderInfo.simCard?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("流量类型")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.simCard.data_limit||"-"))])],1):e._e(),e.orderInfo.simCard?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("流量档位")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.simCard.flow||"-"))])],1):e._e(),e.orderInfo.simCard?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("流量天数")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.simCard.day?String(e.orderInfo.simCard.day).includes("天")?e.orderInfo.simCard.day:e.orderInfo.simCard.day+"天":"-"))])],1):e._e(),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("下单时间")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.create_time||"-"))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("订单编号")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.order_sn||"-"))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("支付方式")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.pay_id_text||"-"))])],1),e.orderInfo.pay_amount?a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[e._v("实付金额")]),a("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.pay_amount.currency)+e._s(e.orderInfo.pay_amount.val||"0"))])],1):e._e()],1)],1)],1)},r=[]},9857:function(e,t,a){var i=a("b95b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=a("967d").default;o("f5eb835e",i,!0,{sourceMap:!1,shadowMode:!1})},aaa9:function(e,t,a){"use strict";a.r(t);var i=a("67c9"),o=a("1e4c");for(var r in o)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(r);a("6648");var n=a("828b"),c=Object(n["a"])(o["default"],i["b"],i["c"],!1,null,"c14e0a8c",null,!1,i["a"],void 0);t["default"]=c.exports},b95b:function(e,t,a){var i=a("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 */.order-price[data-v-c14e0a8c]{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-c14e0a8c]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.order-title[data-v-c14e0a8c]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#000}.order-info[data-v-c14e0a8c]{display:flex}.order-image[data-v-c14e0a8c]{width:%?110?%;height:%?110?%;border-radius:%?10?%;margin-right:%?27?%}.wrapper[data-v-c14e0a8c]{min-height:100vh;padding:%?30?% %?30?% %?80?% %?30?%;background:linear-gradient(0deg,#efeff4 80%,#ffca28)}.wrapper .more-qcm[data-v-c14e0a8c]{display:flex;flex-wrap:wrap}.wrapper .top-bg[data-v-c14e0a8c]{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-c14e0a8c]{display:flex;flex-direction:column;justify-content:space-between}.wrapper .top-bg .tip .size[data-v-c14e0a8c]{font-size:%?55?%}.wrapper .top-bg .tip .nums[data-v-c14e0a8c]{padding:%?5?% %?15?%;background-color:#ffc929;border-radius:%?10?%;display:inline-block}.wrapper .top-bg .tip .qrCode-tip[data-v-c14e0a8c]{display:flex;align-items:center}.wrapper .top-bg .tip-qc[data-v-c14e0a8c]{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-c14e0a8c]{width:100%}.customCallout .box[data-v-c14e0a8c]{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-c14e0a8c]{width:%?60?%;background-color:#2459ee;color:#fff;height:%?50?%;display:block;text-align:center;line-height:%?50?%}.customCallout .box .from[data-v-c14e0a8c],\n.customCallout .box .to[data-v-c14e0a8c]{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-c14e0a8c]{margin:0 auto;height:6px;width:10px;display:block;margin-bottom:8px}.customCallout .dot[data-v-c14e0a8c]{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-c14e0a8c]{border-radius:50%;width:%?22?%;height:%?22?%;background-color:#2459ee;display:block;margin:0 auto}.customCallout .box .status99[data-v-c14e0a8c]{background-color:#666}.customCallout .dot .dot-child.status99[data-v-c14e0a8c]{background-color:#666}\n/* 订单状态信息 start */.order-status[data-v-c14e0a8c]{border-radius:%?15?%;padding:%?30?%;background-color:#fff}.order-status .status-value[data-v-c14e0a8c]{font-size:%?42?%;font-weight:700;color:#ffca28}.order-status .status-tips[data-v-c14e0a8c]{margin-top:%?20?%;color:#aaa}.order-status .order-operation-btns[data-v-c14e0a8c]{margin-top:%?20?%}.order-status .order-operation-btns .btn[data-v-c14e0a8c]{padding:%?10?% %?16?%;border-radius:%?15?%}.order-status .order-operation-btns .btn + .btn[data-v-c14e0a8c]{margin-left:%?12?%}\n/* 订单状态信息 end */.lock[data-v-c14e0a8c]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%;padding:%?30?%;flex-direction:column}.lock .lock_item[data-v-c14e0a8c]{display:flex;margin-bottom:%?20?%}.lock .lock_item uni-text[data-v-c14e0a8c]{font-size:%?30?%}.lock .operation[data-v-c14e0a8c]{display:flex;flex-direction:column;justify-content:space-between}.lock .operation .button[data-v-c14e0a8c]{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-c14e0a8c]{color:#aaa;font-size:%?24?%;text-align:center}.lock uni-text[data-v-c14e0a8c]{font-size:%?30?%}.deliveryer[data-v-c14e0a8c]{background:#fff;border-radius:%?15?%;padding:%?16?%;margin-top:%?30?%;width:100%}.deliveryer uni-image[data-v-c14e0a8c]{height:%?60?%;width:%?60?%;border-radius:%?10?%;display:block;margin-right:%?20?%}.deliveryer uni-text[data-v-c14e0a8c]{font-size:%?30?%}\n/* 商品价格信息 start */.product-price-info[data-v-c14e0a8c]{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-c14e0a8c]{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-c14e0a8c]{font-size:%?30?%}.product-price-info .product-info .store-name .store-logo[data-v-c14e0a8c]{height:%?60?%;width:%?60?%;border-radius:%?6?%}.product-price-info .product-info .product-list .product-item[data-v-c14e0a8c]{border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .item-image[data-v-c14e0a8c]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-c14e0a8c]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-c14e0a8c]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-c14e0a8c]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-c14e0a8c]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-c14e0a8c]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-c14e0a8c]{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-c14e0a8c]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-c14e0a8c]{font-weight:700}.product-price-info .discount-info[data-v-c14e0a8c]{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-c14e0a8c]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .price[data-v-c14e0a8c]{font-weight:700}.product-price-info .total-price[data-v-c14e0a8c]{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-c14e0a8c]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-c14e0a8c],\n.product-price-info .total-price .data .discount[data-v-c14e0a8c],\n.product-price-info .total-price .data .paid[data-v-c14e0a8c]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-c14e0a8c]{font-size:%?34?%}.product-price-info .call-store[data-v-c14e0a8c]{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-c14e0a8c]{border-radius:%?15?%;background-color:#fff;padding:%?30?%;margin-top:%?40?%}.order-info-card .infoType[data-v-c14e0a8c]{font-size:%?36?%;font-weight:700;margin-bottom:%?30?%}.order-info-card .item[data-v-c14e0a8c]{display:flex;justify-content:space-between}.order-info-card .item .title[data-v-c14e0a8c]{font-size:%?28?%;font-weight:500;color:#767676}.order-info-card .item + .item[data-v-c14e0a8c]{margin-top:%?30?%}\n/* 复制按钮 start */.copy-btn[data-v-c14e0a8c]{padding:%?4?% %?16?%;border-radius:%?12?%}\n/* 复制按钮 end */.value[data-v-c14e0a8c]{margin-left:%?20?%;font-size:%?26?%;font-weight:500;color:#000}.btn[data-v-c14e0a8c]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background-color:#ffca28;color:#080808}.btn + .btn[data-v-c14e0a8c]{margin-left:%?16?%}\n/* 订单信息卡片 end */.expansion[data-v-c14e0a8c]{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-c14e0a8c]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-c14e0a8c]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-c14e0a8c]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-c14e0a8c]{width:100%}.expansion .expansion_box .line4[data-v-c14e0a8c]{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-c14e0a8c]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-c14e0a8c]{width:%?60?%;height:%?60?%}.maskCode[data-v-c14e0a8c]{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-c14e0a8c]{background-color:#fff;padding:%?30?%;border-radius:%?20?%}.maskCode .cent-mod .min-data[data-v-c14e0a8c]{min-width:65vw;min-height:60vw}.bottom-btns[data-v-c14e0a8c]{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-c14e0a8c]{flex:1}.bottom-btns .btns_right[data-v-c14e0a8c]{display:flex;flex:2;flex-direction:row}.bottom-btns .btns_right .btn[data-v-c14e0a8c]{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-c14e0a8c]{margin-left:%?20?%}.order-log[data-v-c14e0a8c]{background-color:#fff;border-radius:%?15?%;padding:%?30?%;width:%?700?%}.order-log .log-item[data-v-c14e0a8c]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item .time[data-v-c14e0a8c]{font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-c14e0a8c]{flex:1;margin-left:%?20?%;font-size:%?30?%;color:#000;font-weight:bolder}.order-log .log-item .content[data-v-c14e0a8c]:before{content:"";display:inline-block;width:%?10?%;height:%?10?%;background-color:#ffca28;border-radius:50%;margin-right:%?10?%}.order-log .log-item2[data-v-c14e0a8c]{display:flex;margin-bottom:%?20?%;justify-content:space-between}.order-log .log-item2 .time[data-v-c14e0a8c]{font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-c14e0a8c]{flex:1;margin-left:%?20?%;font-size:%?24?%;color:#999}.order-log .log-item2 .content[data-v-c14e0a8c]:before{content:"";display:inline-block;width:%?5?%;height:%?5?%;background-color:#999;border-radius:50%;margin-right:%?10?%}.spell-rice-box[data-v-c14e0a8c]{display:flex;flex-direction:column;background-color:#fff;text-align:center;justify-content:center}.spell-rice-box .row1[data-v-c14e0a8c]{font-size:%?20?%}.spell-rice-box .row2[data-v-c14e0a8c]{font-size:%?30?%;font-weight:700}.spell-rice-box .row3[data-v-c14e0a8c]{font-size:%?36?%;color:red}.spell-rice-box .persons[data-v-c14e0a8c]{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-c14e0a8c]{flex:1;position:relative}.spell-rice-box .persons .leader uni-image[data-v-c14e0a8c]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .persons .leader uni-text[data-v-c14e0a8c]{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-c14e0a8c]{flex:2;font-size:%?30?%;font-weight:bolder;margin:0 %?20?%}.spell-rice-box .persons .members[data-v-c14e0a8c]{flex:1}.spell-rice-box .persons .members uni-image[data-v-c14e0a8c]{width:%?100?%;height:%?100?%;background-color:#ccc;border-radius:50%}.spell-rice-box .share_btn[data-v-c14e0a8c]{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},dbe2:function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("bf0f"),a("2797"),a("fd3c"),a("aa9c"),a("f7a5"),a("64aa"),a("5c47"),a("2c10");var o=i(a("5de6")),r=i(a("b7c7")),n=i(a("2634")),c=i(a("2fdc")),d=i(a("39d8")),s=i(a("dae0")),l=i(a("44ca")),f=i(a("34cae")),u=i(a("495e")),p=i(a("8c27")),g=a("9d0a"),h=a("419c"),v=a("815c"),m=i(a("fc1b")),b=(i(a("ae59")),a("2506")),w=i(a("dc1f")),x=(a("262c"),a("3137")),_=a("e0a2"),y={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{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,d.default)(e,"deliveryPrice",0),(0,d.default)(e,"pack_fee",0),(0,d.default)(e,"price",0),(0,d.default)(e,"batch_result",{}),(0,d.default)(e,"lock_status",0),(0,d.default)(e,"lock_result",{}),(0,d.default)(e,"qrcode",""),(0,d.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,vehicleData:"",loadings:!1}},computed:{},onLoad:function(e){var t=this;return(0,c.default)((0,n.default)().mark((function a(){return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.orderId=(null===e||void 0===e?void 0:e.order_sn)||0,t.getOrderDetailData();case 2:case"end":return a.stop()}}),a)})))()},onShow:function(){this.getOrderDetailData()},onPullDownRefresh:function(){this.getOrderDetailData()},methods:{cancelCatOrder:function(){var e=this;if(this.loadings)return!1;this.loadings=!0,this.loadingShow=!0,cancelCatOrderApi({sn:this.orderInfo.order_sn}).then((function(t){uni.showModal({title:"提示",content:"取消成功",showCancel:!1}),e.getOrderDetailData()})).catch((function(e){console.error("[order-detail]订单详情获取失败",e),(0,g.showToast)({title:e.msg}),(0,h.navBack)()})).finally((function(){e.loadingShow=!1,e.loadings=!1})),console.log("订单信息",this.orderInfo)},goto:function(e){(0,h.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,a=t.split(","),i="";if(this.showNum)i+=a[0];else for(var o=0;o<a.length;o++)i+=a[o],(o+1)%3===0?i+=",\n":o+1!=a.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=_.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.getOrderDetailApi)({sn:this.orderId}).then((function(t){e.orderInfo=t})).catch((function(e){console.error("[order-detail]订单详情获取失败",e),(0,g.showToast)({title:e.msg}),(0,h.navBack)()})).finally((function(){e.loadingShow=!1})),console.log("订单信息",this.orderInfo)},call:function(){(0,v.callPhone)(this.orderInfo.vehicle.driver_phone)},callDeliveryer:function(){(0,v.callPhone)(this.orderInfo.deliveryer.mobile)},handleBeforeNavBack:function(){return!0},getMapPath:function(e){var t=this,a=e.store,i=a.location_x,o=a.location_y,n=e.user,c=n.location_x,d=n.location_y;getOrderMapPathApi(e).then((function(e){var a=null===e||void 0===e?void 0:e.paths[0],n=a.steps,s=void 0===n?[]:n,l=[];s.forEach((function(e){var t=e.polyline,a=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)(a))})),t.mapInfo={fromCoordinate:{latitude:+i,longitude:+o},toCoordinate:{latitude:+c,longitude:+d},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,expansion_close:function(){this.qrcode_box_show=!1},cancelOrder:function(e,t,a,i){var o=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,h.navPage)("/order-page/takeout-order-refund/index?id="+e+"&type="+o.type)}}):uni.showToast({title:"由于下单后商户已开始做餐,请电话联系商家取消订单!如沟通不成,请联系平台客服。",icon:"none",duration:2e3}):uni.showModal({title:"提示",content:"订单未支付,是否确认取消订单?",success:function(a){a.confirm&&cancelOrderApi({id:e}).then((function(e){(0,g.showToast)({title:"取消订单成功"}),t&&t()})).catch((function(e){(0,g.showToast)({title:e.msg})}))}}):uni.showToast({title:"订单退款申请中,请耐心等候",icon:"none",duration:2e3})},toStore:function(e,t){1==this.storeInfo.is_haodian?(0,h.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid="+e):2==this.storeInfo.is_haodian&&this.storeInfo.custom_links?(0,h.navPage)(this.storeInfo.custom_links):(this.storeInfo.pageShowType,(0,h.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",a=e.express_type,i=e.waybillno;(0,h.navPage)("record?order_id="+this.orderId+"&type="+t+"&express_type="+a+"&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(),a=e-t;if(a<=0)clearInterval(this.timer);else{var i=Math.floor(a/36e5),o=Math.floor(a%36e5/6e4),r=Math.floor(a%6e4/1e3);this.spellRiceInfo.hour=i<10?"0"+i:i,this.spellRiceInfo.minute=o<10?"0"+o:o,this.spellRiceInfo.second=r<10?"0"+r:r}},shareSpellRice:function(){(0,h.navPage)("/plugin-page/eatmerge/index")},rereminderOrderApi:function(){var e=this,t={order_id:this.orderInfo.id};(0,x.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 a=this.isTimeOutOfRange(t);if(console.log(a),a){for(var i="",o=0;o<this.orderStatusList.length;o++){var r=this.orderStatusList[o].info.slice(-2);if("催单"===r){i=this.orderStatusList[o].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,a=t.getHours(),i=t.getMinutes(),r=e.split(":").map(Number),n=(0,o.default)(r,2),c=n[0],d=n[1],s=60*a+i,l=60*c+d;return s>l},isIntervalTime:function(e,t){var a=new Date(e),i=new Date,o=new Date(a.getTime()+60*t*1e3);return o>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=y}}]);