(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order-page-one-touch-submit-order-index"],{"28e6":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"wrapper",staticStyle:{"padding-bottom":"0","min-height":"auto"}},[i("v-uni-view",{staticClass:"product-price-info"},[i("v-uni-view",{staticClass:"product-info"},[i("v-uni-view",{staticClass:"store-name"},[i("v-uni-text",{staticClass:"tn-icon-shop tn-margin-right-xs"}),e._v(e._s(e.orderInfo.store.title))],1),i("v-uni-view",{staticClass:"product-list"},e._l(e.orderInfo.goods_list,(function(t,r){return i("v-uni-view",{key:r,staticClass:"product-item tn-bg-gray--light tn-color-black"},[i("v-uni-view",{staticClass:"item-image"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.goods_image,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item-info"},[i("v-uni-view",{staticClass:"title tn-text-ellipsis-1"},[t.bragin_num>0?i("v-uni-text",{staticClass:"red-box"},[e._v("含特价")]):e._e(),e._v(e._s(t.goods_title))],1),i("v-uni-view",{staticClass:"spec tn-text-ellipsis-1"},[e._v(e._s(t.goods_sku_text))]),i("v-uni-view",{staticClass:"price-num tn-flex-end-between"},[i("v-uni-view",{staticClass:"price tn-color-red"},[t.bragin_num>0?[i("v-uni-text",[e._v(e._s(e.CurrencyUnit)+e._s(t.goods_price))])]:i("v-uni-text",[e._v(e._s(e.CurrencyUnit)+e._s(t.goods_price))])],2),i("v-uni-view",{staticClass:"num"},[e._v("x"+e._s(t.goods_num))])],1)],1)],1)})),1)],1),i("v-uni-view",{staticClass:"price-info"},[e.orderInfo.extra_fee?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("平台服务费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.extra_fee))])],1):e._e(),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("商品总价")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.price))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("快递运费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.total_delivery_price))])],1)],1),i("v-uni-view",{staticClass:"total-price"},[i("v-uni-view",{staticClass:"title"},[e._v("合计")]),i("v-uni-view",{staticClass:"data tn-color-gray"},[i("v-uni-view",{staticClass:"sum"},[e._v("共计"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.orderInfo.total_price)))]),i("v-uni-view",{staticClass:"discount"},[e._v("优惠"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.orderInfo.discount_fee)))]),i("v-uni-view",{staticClass:"paid tn-color-black"},[e._v("实付"),i("v-uni-text",{staticClass:"tn-color-red",staticStyle:{"margin-left":"5rpx"}},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.total_price))])],1)],1)],1)],1),i("v-uni-view",{staticClass:"note"},[e.optionsData.jielong_id?i("v-uni-view",{staticClass:"title"},[e._v("买家留言")]):i("v-uni-view",{staticClass:"title"},[e._v("备注")]),i("v-uni-view",{staticClass:"data"},[e.remarkInput?i("v-uni-textarea",{staticClass:"textarea",attrs:{focus:e.remarkFocus,placeholder:e.jielong.buyer_message_text?e.jielong.buyer_message_text:"请输入备注","placeholder-class":"tn-color-gray"},model:{value:e.orderInfo.note,callback:function(t){e.$set(e.orderInfo,"note",t)},expression:"orderInfo.note"}}):i("v-uni-view",{staticClass:"show-data",class:[{"tn-color-gray":!0}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.startInputRemarkData.apply(void 0,arguments)}}},[e._v(e._s(e.jielong.buyer_message_text?e.jielong.buyer_message_text:e.orderInfo.note||"请输入备注"))])],1)],1),i("v-uni-view",{staticClass:"settle-bar tn-safe-area-inset-bottom"},[i("v-uni-view",{staticClass:"price-info"},[i("v-uni-view",{staticClass:"price tn-color-red"},[i("v-uni-view",{staticClass:"unit"},[e._v(e._s(e.CurrencyUnit))]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.orderInfo.total_price))])],1),i("v-uni-view",{staticClass:"discount tn-color-gray"},[e._v("已优惠"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.orderInfo.discount_fee)))])],1),i("v-uni-view",{staticClass:"submit-btn",class:[{"tn-bg-gray":!e.isSubmitOrder}],style:[e.themeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.submitOrder.apply(void 0,arguments)}}},[e._v("提交订单")])],1),i("time-select-modal",{attrs:{data:e.timeRange,"default-value":e.defaultSelectTime},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.handleChooseTimeModalConfirmEvent.apply(void 0,arguments)}},model:{value:e.showSelectTimeModal,callback:function(t){e.showSelectTimeModal=t},expression:"showSelectTimeModal"}}),i("pay-select-modal",{attrs:{"order-id":e.orderId,"order-type":"mall"},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.successPayEvent.apply(void 0,arguments)},fail:function(t){arguments[0]=t=e.$handleEvent(t),e.failPayEvent.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelPayEvent.apply(void 0,arguments)}},model:{value:e.showSelectPayWayModal,callback:function(t){e.showSelectPayWayModal=t},expression:"showSelectPayWayModal"}}),i("address-select-modal",{attrs:{data:e.addressList,"default-address-id":e.currentSelectAddressId},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleAddressClickEvent.apply(void 0,arguments)},edit:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)},add:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)}},model:{value:e.showChooseAddressModal,callback:function(t){e.showChooseAddressModal=t},expression:"showChooseAddressModal"}})],1)],1)},a=[]},"3c93":function(e,t,i){var r=i("c86c");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 顶部背景 start */.top-bg[data-v-273eff67]{position:absolute;left:0;top:0;width:100%;height:%?600?%;background:linear-gradient(180deg,#ffca28,#ffca28 50%,rgba(255,202,40,0));z-index:1}\n/* 顶部背景 end */.wrapper[data-v-273eff67]{position:relative;margin-top:%?30?%;min-height:calc(100vh - %?50?%);padding:%?0?% %?30?%;padding-bottom:%?180?%;z-index:2}.redEnvelopeBox[data-v-273eff67]{width:100%;height:auto;display:flex;justify-content:flex-start;flex-wrap:nowrap;padding-left:%?10?%;padding-right:%?10?%;overflow-x:scroll;margin-top:%?20?%}.redEnvelopeBox .redEnvelopeItem[data-v-273eff67]{width:calc(100% / 3);height:auto;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin:%?15?%}.redEnvelopeBox .redEnvelopeItem_Bg[data-v-273eff67]{width:%?200?%;height:%?116?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/redEnvelopeBg1.png);display:flex;justify-content:center;align-items:center}.redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center[data-v-273eff67]{width:100%;height:%?83?%}.redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center_price[data-v-273eff67]{width:100%;height:%?50?%;font-size:%?48?%;text-align:center;line-height:%?50?%;color:#f74c37}.redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center_title[data-v-273eff67]{width:100%;height:%?33?%;font-size:%?26?%;text-align:center;line-height:%?33?%;color:#a77821}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar[data-v-273eff67]{width:100%;height:%?154?%;display:flex;align-items:center;justify-content:center}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg[data-v-273eff67]{width:%?201?%;height:%?154?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/redEnvelopeBg2.png)}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter[data-v-273eff67]{width:100%;height:%?98?%;color:#f74c37;display:flex;align-items:center;justify-content:center}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_price[data-v-273eff67]{font-size:%?38?%}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_ride[data-v-273eff67]{font-size:%?21?%;padding-right:%?7?%;padding-left:%?7?%}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_number[data-v-273eff67]{font-size:%?28?%}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemTitle[data-v-273eff67]{width:100%;height:%?57?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice[data-v-273eff67]{width:100%;height:%?34?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice .currentPrice[data-v-273eff67]{font-size:%?32?%;color:#f74c37}.redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice .originalPrice[data-v-273eff67]{font-size:%?26?%;padding-left:%?9?%;text-decoration:line-through;color:#707070}.redEnvelopeBox .redEnvelopeItem .activity[data-v-273eff67]{width:100%;height:%?60?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.redEnvelopeBox .redEnvelopeItem .activity .activityBg[data-v-273eff67]{width:auto;height:%?40?%;background-color:rgba(255,121,26,.2);display:flex;align-items:center;justify-content:center;padding-left:%?10?%;padding-right:%?10?%;color:#ff791a;border-radius:%?8?%;font-size:%?22?%}\n/* 订单类型 start */.order-type[data-v-273eff67]{position:relative;width:100%;z-index:2\n /* 骑手配送\\到店自取 start */\n /* 骑手配送\\到店自取 end */}.order-type__delivery[data-v-273eff67], .order-type__in-store[data-v-273eff67]{\n /* 地址 start */\n /* 地址 end */\n /* 配送时间 start */\n /* 配送时间 end */}.order-type__delivery .address-info[data-v-273eff67], .order-type__in-store .address-info[data-v-273eff67]{width:100%;padding-bottom:%?20?%;border-bottom:%?1?% solid #f3f2f7}.order-type__delivery .address-info .icon[data-v-273eff67], .order-type__in-store .address-info .icon[data-v-273eff67]{width:%?50?%;height:%?50?%;font-size:%?42?%;border-radius:50%;margin:%?0?% %?20?%}.order-type__delivery .address-info .info[data-v-273eff67], .order-type__in-store .address-info .info[data-v-273eff67]{width:calc(100% - %?60?% - %?20?%)}.order-type__delivery .address-info .info .address[data-v-273eff67], .order-type__in-store .address-info .info .address[data-v-273eff67]{font-weight:700;font-size:%?30?%}.order-type__delivery .address-info .info .customer[data-v-273eff67], .order-type__in-store .address-info .info .customer[data-v-273eff67]{margin-top:%?10?%;font-size:%?26?%}.order-type__delivery .delivery-time[data-v-273eff67], .order-type__in-store .delivery-time[data-v-273eff67]{padding-top:%?30?%}.order-type__delivery .delivery-time .title[data-v-273eff67], .order-type__in-store .delivery-time .title[data-v-273eff67]{font-weight:500}.order-type__in-store[data-v-273eff67]{\n /* 预留电话 start */\n /* 预留电话 end */}.order-type__in-store .address-info[data-v-273eff67]{border-bottom:none;padding-bottom:%?20?%}.order-type__in-store .delivery-time[data-v-273eff67]{padding-top:%?0?%;padding-bottom:%?20?%;border-bottom:%?1?% solid #f3f2f7}.order-type__in-store .mobile-info[data-v-273eff67]{padding:%?14?%;border-radius:%?6?%;margin-top:%?20?%}.order-type__in-store .mobile-info .value[data-v-273eff67]{flex:1;padding-left:%?24?%}.order-type__in-store .mobile-info .value .input[data-v-273eff67]{width:100%;background-color:initial;padding:%?0?%;color:inherit}\n/* 订单类型 end */\n/* 到店自取类型 start */.in-store-type[data-v-273eff67]{margin-top:%?50?%;width:100%;display:flex;align-items:center;justify-content:space-between}.in-store-type .btn[data-v-273eff67]{width:calc(100% / 2 - %?10?%);padding:%?20?%;border-radius:%?15?%;background-color:#fff;border-width:%?1?%;border-style:solid}.in-store-type .btn.select[data-v-273eff67]{border-width:%?0?%;border-style:none}.in-store-type .btn.noselect[data-v-273eff67]{background-color:#b0b0b0!important;color:#fff!important;border:1px solid #b0b0b0!important}\n/* 到店自取类型 end */\n/* 商品价格信息 start */.product-price-info[data-v-273eff67]{margin-top:%?20?%;width:100%;border-radius:%?15?%\n /* 商品信息 start */\n /* 商品信息 end */\n /* 价格信息 start */\n /* 价格信息 end */\n /* 优惠信息 start */\n /* 优惠信息 end */\n /* 总计价格 start */\n /* 总计价格 end */}.product-price-info .red-box[data-v-273eff67]{display:inline-block;background-color:red;color:#fff;font-size:%?28?%;padding:%?4?%}.product-price-info .product-info[data-v-273eff67]{margin-top:%?10?%;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-273eff67]{font-size:%?30?%}.product-price-info .product-info .product-list .product-item[data-v-273eff67]{margin-top:%?20?%;border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .through[data-v-273eff67]{text-decoration:line-through}.product-price-info .product-info .product-list .product-item .item-image[data-v-273eff67]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-273eff67]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-273eff67]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-273eff67]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-273eff67]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-273eff67]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-273eff67]{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-273eff67]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-273eff67]{font-weight:700}.product-price-info .discount-info[data-v-273eff67]{width:100%;padding:%?30?%;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;margin-top:7.5px}.product-price-info .discount-info .item[data-v-273eff67]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .data .icon[data-v-273eff67]{color:#080808}.product-price-info .total-price[data-v-273eff67]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?0?% %?30?% %?30?% %?30?%;border-radius:%?0?% %?0?% %?15?% %?15?%;background-color:#fff}.product-price-info .total-price .data[data-v-273eff67]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-273eff67],\n.product-price-info .total-price .data .discount[data-v-273eff67],\n.product-price-info .total-price .data .paid[data-v-273eff67]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-273eff67]{font-size:%?34?%}\n/* 商品价格信息 end */\n/* 附加费用 start */.surcharge-fee[data-v-273eff67]{width:100%;margin-top:%?30?%;padding:%?30?%;background-color:#fff;border-radius:%?15?%}.surcharge-fee .item[data-v-273eff67]{width:100%;padding:%?20?% %?0?%;display:flex;align-items:center;justify-content:space-between}.surcharge-fee .item .data[data-v-273eff67]{display:flex;align-items:center}.surcharge-fee .item .data .select[data-v-273eff67]{margin-left:%?10?%;width:%?40?%;height:%?40?%;border-radius:50%}.surcharge-fee .item .data .select .icon[data-v-273eff67]{margin-top:%?2?%}\n/* 附加费用 end */\n/* 备注 start */.note[data-v-273eff67]{width:100%;margin-top:%?30?%}.note .title[data-v-273eff67]{font-weight:700;font-size:%?32?%}.note .data[data-v-273eff67]{width:100%;height:%?200?%;margin-top:%?10?%;background-color:#fff;border-radius:%?15?%;padding:%?20?%}.note .data .textarea[data-v-273eff67],\n.note .data .show-data[data-v-273eff67]{width:100%;height:100%;padding:%?0?%}\n/* 备注 end */\n/* 结算/提交订单操作栏 start */.settle-bar[data-v-273eff67]{position:fixed;left:%?0?%;bottom:%?0?%;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;z-index:999;transition:bottom ease .25s}.settle-bar.hidden[data-v-273eff67]{bottom:%?-140?%}.settle-bar .price-info[data-v-273eff67]{padding-left:%?30?%}.settle-bar .price-info .price[data-v-273eff67]{display:flex;align-items:flex-end;font-size:%?42?%;font-weight:700}.settle-bar .price-info .price .unit[data-v-273eff67]{font-size:%?28?%;margin-right:%?6?%;-webkit-transform:translateY(%?-2?%);transform:translateY(%?-2?%)}.settle-bar .price-info .discount[data-v-273eff67]{font-size:%?24?%}.settle-bar .submit-btn[data-v-273eff67]{padding:%?40?%;font-size:%?32?%}\n/* 结算/提交订单操作栏 end */.redstyle[data-v-273eff67]{color:red!important}\n/* 选中规格属性加料弹框 start */.spec-choose-modal[data-v-273eff67]{width:100%;padding-top:%?24?%\n /* 商品操作 start */\n /* 商品操作 end */\n /* 选择区域 start */\n /* 选择区域 end */\n /* 已选择规格 start */\n /* 已选择规格 end */\n /* 价格、数量信息 start */\n /* 价格、数量信息 end */}.spec-choose-modal.disabled .operation__add .icon[data-v-273eff67]{background-color:#aaa;color:#fff}.spec-choose-modal .operation__spec[data-v-273eff67]{padding:%?6?% %?20?%;border-radius:%?15?%;position:relative;background-color:var(--theme_bg_color);color:var(--theme_font_color)}.spec-choose-modal .operation__spec .num[data-v-273eff67]{position:absolute;top:0;right:0;-webkit-transform:translate(10%,-50%);transform:translate(10%,-50%);line-height:1;padding:%?4?% %?10?%;border-radius:%?200?%}.spec-choose-modal .operation__spec .num .input[data-v-273eff67]{color:#000}.spec-choose-modal .operation__add[data-v-273eff67]{height:%?46?%}.spec-choose-modal .operation__add .icon[data-v-273eff67]{width:%?46?%;height:%?46?%;font-size:%?30?%;line-height:1;border-radius:50%;background-color:var(--theme_bg_color);color:var(--theme_font_color)}.spec-choose-modal .operation__add .num[data-v-273eff67]{width:%?50?%;height:100%;margin:%?0?% %?5?%}.spec-choose-modal .operation__add .num .input[data-v-273eff67]{width:100%;height:100%;padding:%?0?%;background-color:initial;color:#000;text-align:center}.spec-choose-modal .small-box[data-v-273eff67]{display:flex;align-items:center;padding-left:%?30?%}.spec-choose-modal .goods-image[data-v-273eff67]{width:100%;border-top-left-radius:%?15?%;border-top-right-radius:%?15?%;margin-top:%?-25?%;max-height:%?750?%}.spec-choose-modal .goods-name-small[data-v-273eff67]{height:1rem;display:flex;flex-direction:column;justify-content:space-around}.spec-choose-modal .goods-image-small[data-v-273eff67]{width:%?100?%;height:%?100?%;border-radius:%?10?%}.spec-choose-modal .good-title[data-v-273eff67]{font-size:%?34?%;font-weight:500;padding:%?0?% %?30?%}.spec-choose-modal .desc[data-v-273eff67]{padding:%?0?% %?30?%;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1}.spec-choose-modal .content-wrapper[data-v-273eff67]{padding:%?30?%;width:100%;height:%?500?%}.spec-choose-modal .content-wrapper .content-data[data-v-273eff67]{width:100%\n /* 可选项 start */\n /* 可选项 end */}.spec-choose-modal .content-wrapper .content-data .content-title[data-v-273eff67]{font-size:%?24?%}.spec-choose-modal .content-wrapper .content-data .content-select[data-v-273eff67]{display:flex;flex-wrap:wrap}.spec-choose-modal .content-wrapper .content-data .content-select .select-item[data-v-273eff67]{display:flex;align-items:center;border-radius:%?15?%;margin-right:%?12?%;margin-top:%?20?%}.spec-choose-modal .content-wrapper .content-data .content-select .select-item .item-title[data-v-273eff67],\n.spec-choose-modal .content-wrapper .content-data .content-select .select-item .item-price[data-v-273eff67]{line-height:1;padding:%?12?% %?20?%}.spec-choose-modal .content-wrapper .content-data .content-select .select-item .item-title[data-v-273eff67]{padding-right:%?24?%}.spec-choose-modal .content-wrapper .content-data .content-select .select-item .item-price[data-v-273eff67]{border-radius:%?0?%;border-left-width:%?1?%;border-left-style:solid;border-color:inherit}.spec-choose-modal .content-wrapper .content-data .content-select .select-item.select[data-v-273eff67]{border-color:var(--theme-color)!important;color:var(--theme-color)}.spec-choose-modal .content-wrapper .content-data + .content-data[data-v-273eff67]{margin-top:%?24?%}.spec-choose-modal .select-attr-value[data-v-273eff67]{width:100%;padding:%?10?% %?30?%;display:flex}.spec-choose-modal .select-attr-value .value[data-v-273eff67]{flex:1;padding-left:%?20?%}.spec-choose-modal .price-num-wrapper[data-v-273eff67]{width:100%;padding:%?30?%;display:flex;justify-content:space-between}.spec-choose-modal .price-num-wrapper .price-value .title[data-v-273eff67]{font-size:%?32?%}.spec-choose-modal .price-num-wrapper .price-value .price[data-v-273eff67]{margin-left:%?12?%;display:flex;align-items:flex-end}.spec-choose-modal .price-num-wrapper .price-value .price .unit[data-v-273eff67]{font-size:%?32?%;line-height:1;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.spec-choose-modal .price-num-wrapper .price-value .price .value[data-v-273eff67]{font-size:%?46?%;line-height:1;font-weight:700;margin-left:%?4?%}\n/* 选中规格属性加料弹框 end */',""]),e.exports=t},4226:function(e,t,i){var r=i("4dd1");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("21bec7a9",r,!0,{sourceMap:!1,shadowMode:!1})},4372:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.openModal?i("v-uni-view",{staticClass:"center-modal",style:[e.modalStyle]},[i("v-uni-view",{staticClass:"center-modal__mask",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)},click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"center-modal__wrapper",class:[{"no-padding":e.contentNoPadding}],style:[e.wrapperStyle]},[e.closeBtn?i("v-uni-view",{staticClass:"center-modal__close-btn",style:[e.closeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.closeModal.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tn-icon-close"})],1):e._e(),e.showTitle?i("v-uni-view",{staticClass:"center-modal__title"},[e._v(e._s(e.title))]):e._e(),i("v-uni-view",{staticClass:"center-modal__content",class:[{"no-top":e.contentNoTop}]},[e._t("default")],2),e.showCancel||e.showConfirm?i("v-uni-view",{staticClass:"center-modal__operation-btn"},[e.showCancel?i("v-uni-view",{staticClass:"cancel-btn",attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.cancelEvent.apply(void 0,arguments)}}},[e._v(e._s(e.cancelText))]):e._e(),e.showConfirm?i("v-uni-view",{staticClass:"confirm-btn",style:[e.themeBtnStyle],attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.confirmEvent.apply(void 0,arguments)}}},[e._v(e._s(e.confirmText))]):e._e()],1):e._e()],1)],1):e._e()},a=[]},"495e":function(e,t,i){"use strict";i.r(t);var r=i("4372"),a=i("7d42");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("ff5b");var n=i("828b"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"e21e205a",null,!1,r["a"],void 0);t["default"]=s.exports},"4dd1":function(e,t,i){var r=i("c86c");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.center-modal[data-v-e21e205a]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:99998\n /* mask */\n /* wrapper */\n /* close-btn */\n /* 标题 */\n /* 内容区域 */\n /* 操作按钮 */}.center-modal__mask[data-v-e21e205a]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;-webkit-animation:showMask-data-v-e21e205a .25s ease .1s forwards;animation:showMask-data-v-e21e205a .25s ease .1s forwards}.center-modal__wrapper[data-v-e21e205a]{position:absolute;left:50%;top:50%;width:80%;background-color:#fff;border-radius:%?15?%;padding:%?40?%;-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-animation:showWrapper-data-v-e21e205a .25s ease .1s forwards;animation:showWrapper-data-v-e21e205a .25s ease .1s forwards;z-index:99999}.center-modal__wrapper.no-padding[data-v-e21e205a]{padding:%?0?%}.center-modal__close-btn[data-v-e21e205a]{position:absolute;top:%?30?%;right:%?30?%;z-index:99999}.center-modal__title[data-v-e21e205a]{position:absolute;top:%?30?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:%?38?%}.center-modal__content[data-v-e21e205a]{position:relative;width:100%;margin-top:%?60?%}.center-modal__content.no-top[data-v-e21e205a]{margin-top:%?0?%}.center-modal__operation-btn[data-v-e21e205a]{margin-top:%?40?%;display:flex;align-items:center}.center-modal__operation-btn .cancel-btn[data-v-e21e205a], .center-modal__operation-btn .confirm-btn[data-v-e21e205a]{flex:1;padding:%?20?%;border-radius:%?15?%;display:flex;align-items:center;justify-content:center}.center-modal__operation-btn .cancel-btn[data-v-e21e205a]{margin-right:%?20?%;background-color:#f3f2f7}@-webkit-keyframes showMask-data-v-e21e205a{0%{opacity:0}100%{opacity:1}}@keyframes showMask-data-v-e21e205a{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes showWrapper-data-v-e21e205a{0%{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}100%{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}@keyframes showWrapper-data-v-e21e205a{0%{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}100%{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}',""]),e.exports=t},6439:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("473f"),i("bf0f"),i("bd06"),i("64aa"),i("8f71"),i("2797"),i("aa9c"),i("c223"),i("f7a5"),i("4626"),i("fd3c"),i("aa77"),i("dc8a"),i("d4b5"),i("5c47"),i("0506"),i("5ef2");var a=r(i("dc1f")),o=r(i("7341")),n=r(i("34cae")),s=r(i("bbf7")),d=r(i("6819")),c=r(i("e9ee")),l=r(i("95b1")),p=i("af51"),u=i("ba1f"),f=i("cf41"),v=i("815c"),h=i("f9ce"),m=r(i("8c27")),g=i("9d0a"),_=i("419c"),y=r(i("cb6a")),b=r(i("ae59")),w=r(i("495e")),I=i("ade3"),x=i("262c"),C=i("a69d"),k=i("26bf"),S=(i("9897"),i("d240")),E={components:{CardSwitch:o.default,CenterModal:w.default,TimeSelectModal:d.default,PaySelectModal:n.default,RedpacketTicketSelect:s.default,AddressSelectModal:c.default,loading:m.default,SubmitExpressOrder:l.default},mixins:[a.default],data:function(){return{showConcat:!1,showChooseOptionsModal:!1,options:[],attrs:[],materials:[],showStoreRedPacket:!1,showStoreCounpon:!1,list:[],optionsData:{sids:[],from:"",fromzhitong:0,spellrice:"",spellrice_oid:0,spellrice_id:0,cart_ids:0,jielong_id:0},isLogin:!0,isLoadData:!1,orderTypeIndex:0,inStoreOrderTypeIndex:1,remarkInput:!1,remarkFocus:!1,deliveryInfo:{delivery:{address:"",username:"",mobile:"",deliveryTime:""},inStore:{mobile:"",deliveryTime:""},pinfan:{time:"",spellrice_time:""}},stores:[{delivery_type:0,redpacket_index:-1,coupon_index:-1,redpacket_id:"",tuangouquan_id:""}],orderInfo:{boxPrice:0,packingPrice:0,deliveryFee:0,packFee:0,totalPrice:0,discountPrice:0,paidPrice:0,sysextra_fee:0,note:"",deliveryTimes:{}},discountPrice:0,totalPrice:0,orderSubmitInfo:{redpacketId:0,couponId:0,memberChoice:[],predictDayCn:"",predictIndex:0},activityList:[],redpacketData:[],couponData:[],surchargeFee:[],timeRange:[],isShowMemberChoice:!1,showSelectTimeModal:!1,defaultSelectTime:"",selectTimeType:"",showSelectPayWayModal:!1,showSelectRedpacketModal:!1,showSelectCouponModal:!1,currentSelectAddressId:"",addressList:[],showChooseAddressModal:!1,orderId:0,isSubmit:!1,loadingShow:!1,isShowSub:!1,spellrice:{},isShowAddress:!0,redStyle:!1,virtuallyRedEnvelope:"",selectJlIndex:-1,selectTcIndex:-1,pre_mealredpacket_:"",buy_mealredpacket:0,pre_add_mealredpacket_:"",buy_add_mealredpacket:0,purchaseRedEnvelopePrice:0,tuangouquan_id:0,store_extra_fee_detail:[],huangou_discount_price:0,huangou_goods:[],huangou_goods_item:{},is_express:0,cartData:null,selectStoreIndex:-1,max_delivery_fee_sid:0,special_delivery_status:""}},computed:{inStoreOrderTypeBtnStyle:function(){var e=this;return function(t){var i={};return i.color=e.themeFontColor,t===e.inStoreOrderTypeIndex?i.backgroundColor=e.themeBgColor:i.borderColor=e.themeBgColor,i}},redPacketDiscount:function(){var e;return e=this.stores.reduce((function(e,t){if(t.redpacket_id){var i=t.redPackets.findIndex((function(e){return e.id==t.redpacket_id})),r=Number(t.redPackets[i].discount);return console.log(t.redpacket_id,r,i,"sss"),e+r}return e}),0),(0,v.formatPrice)(e)},couponDiscount:function(){var e;return e=this.stores.reduce((function(e,t){if(t.tuangouquan_id){var i=t.coupons.findIndex((function(e){return e.id==t.tuangouquan_id})),r=t.coupons[i].discount;return e+r}return e}),0),(0,v.formatPrice)(e)},orderTypeModeData:function(){var e=[];if(0!=this.stores[0].delivery_type)switch(this.stores[0].delivery_type){case 2:e=[4===this.stores[0].goods_type?"到店消费":"到店自取"];break;case 3:e=1===this.stores[0].delivery_mode?["商家自送","到店自取"]:["骑手配送","到店自取"];break;default:e=[1===this.stores[0].delivery_mode?"商家自送":"骑手配送"];break}return e},orderTypeModeSelectCn:function(){return this.orderTypeModeData[this.orderTypeIndex]},paidPrice:function(){var e=Number(this.orderInfo.totalPrice),t=Number(this.orderInfo.discountPrice),i=this.orderInfo.paidPrice;if(this.surchargeFee.length>0){var r=this.surchargeFee.filter((function(e){return e.select})).reduce((function(e,t){return e+t.price}),0);i+=r}return(2===this.stores[0].delivery_type||2!==this.stores[0].delivery_type&&1===this.orderTypeIndex)&&(i-=this.orderInfo.deliveryFee,e-=this.orderInfo.deliveryFee,1===this.inStoreOrderTypeIndex&&(i-=this.orderInfo.boxPrice+this.orderInfo.packFee+this.orderInfo.packingPrice,e-=this.orderInfo.boxPrice+this.orderInfo.packFee+this.orderInfo.packingPrice)),this.totalPrice=e,i=i-this.redPacketDiscount-this.couponDiscount,this.discountPrice=t+this.redPacketDiscount+this.couponDiscount,console.log(this.redPacketDiscount,"this.redPacketDiscount",this.couponDiscount,"this.couponDiscount"),(0,v.formatPrice)(i+this.purchaseRedEnvelopePrice)},isSubmitOrder:function(){console.log(1);var e=!0;return 2!==this.stores[0].delivery_type&&0===this.orderTypeIndex&&(this.currentSelectAddressId||(e=!1)),console.log(e),this.orderSubmitInfo.predictDayCn||(e=!1),"到店自取"!==this.orderTypeModeSelectCn||this.deliveryInfo.inStore.mobile||(e=!1),this.isShowSub&&(e=!1),"骑手配送"===this.orderTypeModeSelectCn&&0==this.timeRange.length?(e=!1,this.deliveryInfo.delivery.deliveryTime="暂无可配送时间段",this.redStyle=!0):this.redStyle=!1,console.log(e),e},specPrice:function(){var e=0;return this.options.length>0?this.options.filter((function(e){return!0===e.select})).forEach((function(t){e+=t.price})):this.materials.length>0&&this.materials.filter((function(e){return!0===e.select})).forEach((function(t){!0===t.select&&(optionCn.push(t.title),e+=t.price)})),e},specOptionId:function(){var e="";if(this.options.length){var t=this.options.findIndex((function(e){return!0===e.select}));e+=-1===t?"0":"".concat(this.options[t].id)}return this.attrs.length>0&&(e.length>0&&(e+="_"),this.attrs.forEach((function(t,i){var r=t.label.findIndex((function(e){return!0===e.select}));e+="".concat(i,"s").concat(r,"v")})),e=e.slice(0,e.length-1)),this.materials.length>0&&(e.length>0&&(e+="_"),this.materials.forEach((function(t){!0===t.select&&(e+="".concat(t.id,"m1n"))})),e=e.slice(0,e.length-1)),0===this.options.length&&e.length>0&&(e="0_"+e),e}},onLoad:function(e){var t=this;this.optionsData.sids=(null===e||void 0===e?void 0:e.sids.split(","))||"",1===+e.orderType&&(this.orderTypeIndex=1),this.optionsData.from=(null===e||void 0===e?void 0:e.from)||"",this.optionsData.fromzhitong=(null===e||void 0===e?void 0:e.fromzhitong)||0,this.optionsData.spellrice=(null===e||void 0===e?void 0:e.spellrice)||0,this.optionsData.spellrice_oid=(null===e||void 0===e?void 0:e.spellrice_oid)||0,this.optionsData.spellrice_id=(null===e||void 0===e?void 0:e.spellrice_id)||0,this.optionsData.jielong_id=(null===e||void 0===e?void 0:e.jielong_id)||0,console.log(this.optionsData.jielong_id,"this.optionsData.jielong_id");var i=(0,x.getSubmitOrderChooseAddressId)();i&&(this.currentSelectAddressId=i),(0,S.getSpecialDeliveryStatusApi)({sid:this.optionsData.sids[0]}).then((function(e){t.special_delivery_status=e.data})),this.getAddressList(),this.getRedEnvelope()},onShow:function(){var e=this;(0,h.checkUserIsLogin)().then((function(){e.isLogin&&!e.isLoadData||(e.getRedEnvelope(),e.getAddressList())})).catch((function(){(0,g.showToast)({title:"请先登录"})}))},methods:{setTcIndex:function(e,t,i){var r=t;this.selectTcIndex=e;for(var a=[],o=0;o0||Object.keys(r).length>0)&&(e.setDefaultAddressInfo({id:r.id,address:r.address,username:r.realname,mobile:r.mobile}),e.currentSelectAddressId=r.id);if(e.deliveryInfo.inStore.mobile=(null===t||void 0===t?void 0:t.mobile)||"",e.orderInfo.boxPrice=Number(o.box_price)||0,e.orderInfo.packingPrice=Number(o.packing_price)||0,e.orderInfo.deliveryFee=Number(o.delivery_fee)||0,e.orderInfo.packFee=Number(o.pack_fee)||0,e.orderInfo.totalPrice=Number(o.total_fee_show)||0,e.orderInfo.discountPrice=Number(o.discount_fee)||0,e.orderInfo.paidPrice=Number(o.final_fee_show)||0,e.orderInfo.orderPrice=Number(o.price)||0,e.orderInfo.sysextra_fee=Number(o.sysextra_fee)||0,e.orderInfo.note=o.note,e.orderInfo.extra_fee=Number(o.extra_fee)||0,e.orderInfo.deliveryTimes=o.deliveryTimes,null!==o&&void 0!==o&&null!==(i=o.activityed)&&void 0!==i&&i.list){var c=o.activityed.list;b.default.object(c)?(console.log(b.default.object(c),"testUtil.object(activityedListData)"),console.log(c,"activityedListData"),console.log(Object.keys(c),"Object.keys(activityedListData)"),e.activityList=Object.keys(c).map((function(e){var t=c[e];return{type:t.type,title:t.name,text:t.text}}))):(console.log(o.activityed.list,"order.activityed.list"),e.activityList=o.activityed.list.map((function(e){return{type:e.type,title:e.name,text:e.text}})))}e.timeRange=Object.keys(o.deliveryTimes.times).map((function(e){var t=o.deliveryTimes.times[e];return{date:"".concat(t.days),times:t.times.map((function(e){return{time:e.time_cn,price:Number(e.total_delivery_price)}}))}})),e.deliveryInfo.delivery.deliveryTime="".concat(o.deliveryTimes.predict_year_day," ").concat(o.deliveryTimes.predict_time_cn),e.deliveryInfo.inStore.deliveryTime="".concat(o.deliveryTimes.predict_year_day," ").concat(o.deliveryTimes.predict_time_cn),e.orderSubmitInfo.predictDayCn=o.deliveryTimes.predict_year_day,e.orderSubmitInfo.predictIndex=0,console.log(o,e.orderSubmitInfo,e.deliveryInfo),e.isShowMemberChoice=(null===t||void 0===t?void 0:t.isShowMemberChoice)||!1,e.surchargeFee=o.member_choice.map((function(e){return{title:e.name,price:Number(e.fee),select:!1}})),e.orderInfo.extra_fee_detail=o.extra_fee_detail,e.store_extra_fee_detail=o.store_extra_fee_detail,Number(t.tuangouquan_id)>0&&e.handleCouponClickEvent(0),e.huangou_goods=t.huangou_goods,e.huangou_discount_price=t.huangou_discount_price,e.loadingShow=!1})).catch((function(t){e.isLoadData=!1,console.error("[submit-order]获取订单预信息失败",t),e.loadingShow=!1,(0,x.clearSubmitOrderChooseAddressId)(),(0,g.showModal)({title:"提示",content:t.msg||"获取订单预信息失败",callback:function(){(0,_.navBack)()}})}))},getAddressList:function(){var e=this;this.isSubmit||(0,C.getUserAddressListApi)().then((function(t){e.isLogin=!0;var i=t.addresses;i&&(e.addressList=i.map((function(e){return{id:e.id,username:e.realname,mobile:e.mobile,sex:e.sex,address:e.address+e.number,number:e.number}}))),e.getPageData()})).catch((function(t){console.error("[submit-order]获取地址列表失败",t),e.addressList=[],"请重新登录"==t.msg?e.isLogin=!1:(0,g.showModal)({title:"提示",content:t.msg||"获取商品信息失败",callback:function(){(0,_.navBack)()}})}))},setDefaultAddressInfo:function(e){this.currentSelectAddressId=e.id,this.deliveryInfo.delivery.address=e.address,this.deliveryInfo.delivery.username=e.username,this.deliveryInfo.delivery.mobile=e.mobile},switchInStoreModeEvent:function(e){2==this.stores[0].selfpickup_type&&0==e||1==this.stores[0].selfpickup_type&&1==e?console.log("不能切换"):e!==this.inStoreOrderTypeIndex&&(this.inStoreOrderTypeIndex=e,console.log(this.inStoreOrderTypeIndex),this.getPageData())},switchSurchargeFeeStatus:function(e){this.surchargeFee[e].select=!this.surchargeFee[e].select,this.orderSubmitInfo.memberChoice=this.surchargeFee.map((function(e){return{status:e.select}}))},chooseTime:function(e){switch(this.selectTimeType=e,e){case"delivery":this.defaultSelectTime=this.deliveryInfo.delivery.deliveryTime;break;case"inStore":this.defaultSelectTime=this.deliveryInfo.inStore.deliveryTime;break}this.showSelectTimeModal=!0},handleChooseTimeModalConfirmEvent:function(e){var t=e.value,i=e.date,r=e.timeIndex;switch(console.log(t,i,r),this.selectTimeType){case"delivery":this.deliveryInfo.delivery.deliveryTime=t;break;case"inStore":this.deliveryInfo.inStore.deliveryTime=t;break}if(this.orderSubmitInfo.predictDayCn=i,this.orderSubmitInfo.predictIndex=r,this.deliveryInfo.pinfan.time=t,0==this.optionsData.spellrice_oid&&1==this.optionsData.spellrice)for(var a=0;a0?"tn-color-red":"tn-color-gray"]},[e._v(e._s(0===t.coupon_count?"暂无可用代金劵":"有"+t.coupon_count+"张代金劵")),i("v-uni-text",{staticClass:"icon tn-icon-right tn-margin-left-xs"})],1):i("v-uni-view",{staticClass:"data tn-color-red"},[e._v("-"+e._s(e.CurrencyUnit)+e._s(t.coupons[t.coupon_index].discount)),i("v-uni-text",{staticClass:"icon tn-icon-right tn-margin-left-xs"})],1)],1),i("v-uni-view",{staticClass:"item",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectRedpacket(r)}}},[i("v-uni-view",{staticClass:"title"},[e._v("平台红包")]),-1===t.redpacket_index?i("v-uni-view",{staticClass:"data",class:[t.redpacket_count>0?"tn-color-red":"tn-color-gray"]},[e._v(e._s(0===t.redpacket_count?"暂无可用红包":"有"+t.redpacket_count+"个红包")),i("v-uni-text",{staticClass:"icon tn-icon-right tn-margin-left-xs"})],1):i("v-uni-view",{staticClass:"data tn-color-red"},[e._v("-"+e._s(e.CurrencyUnit)+e._s(t.redPackets[t.redpacket_index].discount)),i("v-uni-text",{staticClass:"icon tn-icon-right tn-margin-left-xs"})],1)],1)],1)],1)})),i("v-uni-view",{staticClass:"price-info"},[e._l(e.orderInfo.extra_fee_detail,(function(t,r){return i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(t.name))]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(t.fee))])],1)})),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("商品总价"),e.cartData.discount_by_num_id>0&&e.cartData.discount_by_num_price>0?i("span",[e._v("(活动立减 "+e._s(e.cartData.discount_by_num_price)+"元)")]):e._e()]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.orderPrice))])],1),0!==e.inStoreOrderTypeIndex&&0!==e.orderTypeIndex||!e.orderInfo.boxPrice?e._e():i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("餐盒费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.boxPrice))])],1),0!==e.inStoreOrderTypeIndex&&0!==e.orderTypeIndex||!e.orderInfo.packingPrice?e._e():i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("打包费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.packingPrice))])],1),0!==e.inStoreOrderTypeIndex&&0!==e.orderTypeIndex||!e.orderInfo.packFee?e._e():i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("包装费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.packFee))])],1),e.orderInfo.deliveryFee&&0===e.orderTypeIndex?i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("配送费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.deliveryFee))])],1):e._e(),0!==e.inStoreOrderTypeIndex&&0!==e.orderTypeIndex||!e.orderInfo.sysextra_fee?e._e():i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v("平台附加费")]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(e.orderInfo.sysextra_fee))])],1),e._l(e.store_extra_fee_detail,(function(t,r){return[i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(t.name))]),i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(t.fee))])],1)]})),e._l(e.activityList,(function(t,r){return["couponCollect"!==t.type&&"redPacket"!==t.type?i("v-uni-view",{key:r+"_0",staticClass:"item"},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(t.title))]),i("v-uni-view",{staticClass:"price tn-color-red"},[e._v(e._s(t.text))])],1):e._e()]}))],2),i("v-uni-view",{staticClass:"total-price"},[i("v-uni-view",{staticClass:"title"},[e._v("合计")]),i("v-uni-view",{staticClass:"data tn-color-gray"},[i("v-uni-view",{staticClass:"sum"},[e._v("共计"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.totalPrice)))]),i("v-uni-view",{staticClass:"discount"},[e._v("优惠"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.discountPrice)))]),i("v-uni-view",{staticClass:"paid tn-color-black"},[e._v("实付"),i("v-uni-text",{staticClass:"tn-color-red",staticStyle:{"margin-left":"5rpx"}},[e._v(e._s(e.CurrencyUnit)+e._s(e.paidPrice))])],1)],1)],1)],2),2!=e.orderTypeIndex&&e.isShowMemberChoice&&e.surchargeFee.length>0&&1!=e.is_express?i("v-uni-view",{staticClass:"surcharge-fee"},e._l(e.surchargeFee,(function(t,r){return i("v-uni-view",{key:r,staticClass:"item",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.switchSurchargeFeeStatus(r)}}},[i("v-uni-view",{staticClass:"title"},[e._v(e._s(t.title))]),i("v-uni-view",{staticClass:"data"},[i("v-uni-view",{staticClass:"price"},[e._v(e._s(e.CurrencyUnit)+e._s(t.price))]),i("v-uni-view",{staticClass:"select tn-flex-center",class:[{"tn-bg-gray--disabled":!t.select}],style:[e.themeBtnStyle]},[i("v-uni-text",{staticClass:"icon tn-icon-success"})],1)],1)],1)})),1):e._e(),i("v-uni-view",{staticClass:"note"},[i("v-uni-view",{staticClass:"title"},[e._v("备注")]),i("v-uni-view",{staticClass:"data"},[e.remarkInput?i("v-uni-textarea",{staticClass:"textarea",attrs:{focus:e.remarkFocus,placeholder:"请输入备注","placeholder-class":"tn-color-gray"},on:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.remarkTextareaBlurEvent.apply(void 0,arguments)}},model:{value:e.orderInfo.note,callback:function(t){e.$set(e.orderInfo,"note",t)},expression:"orderInfo.note"}}):i("v-uni-view",{staticClass:"show-data",class:[{"tn-color-gray":!e.orderInfo.note}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.startInputRemarkData.apply(void 0,arguments)}}},[e._v(e._s(e.orderInfo.note||"请输入备注"))])],1)],1)],1),0==e.is_express?i("v-uni-view",{staticClass:"settle-bar tn-safe-area-inset-bottom"},[i("v-uni-view",{staticClass:"price-info"},[i("v-uni-view",{staticClass:"price tn-color-red"},[i("v-uni-view",{staticClass:"unit"},[e._v(e._s(e.CurrencyUnit))]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.paidPrice))])],1),i("v-uni-view",{staticClass:"discount tn-color-gray"},[e._v("已优惠"+e._s(e.CurrencyUnit)+e._s(e.formatPrice(e.discountPrice)))])],1),i("v-uni-view",{staticClass:"submit-btn",class:[{"tn-bg-gray":!e.isSubmitOrder}],style:[e.themeBtnStyle],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.submitOrder.apply(void 0,arguments)}}},[e._v("提交订单")])],1):e._e()],1),i("time-select-modal",{attrs:{data:e.timeRange,"default-value":e.defaultSelectTime},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.handleChooseTimeModalConfirmEvent.apply(void 0,arguments)}},model:{value:e.showSelectTimeModal,callback:function(t){e.showSelectTimeModal=t},expression:"showSelectTimeModal"}}),i("pay-select-modal",{attrs:{"order-id":e.orderId,"order-type":"one_touch"},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.successPayEvent.apply(void 0,arguments)},fail:function(t){arguments[0]=t=e.$handleEvent(t),e.failPayEvent.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelPayEvent.apply(void 0,arguments)}},model:{value:e.showSelectPayWayModal,callback:function(t){e.showSelectPayWayModal=t},expression:"showSelectPayWayModal"}}),i("redpacket-ticket-select",{attrs:{data:e.redpacketData},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleRedpacketClickEvent.apply(void 0,arguments)}},model:{value:e.showSelectRedpacketModal,callback:function(t){e.showSelectRedpacketModal=t},expression:"showSelectRedpacketModal"}},[i("v-uni-view",{attrs:{slot:"title"},slot:"title"},[e._v("请选择红包")])],1),i("redpacket-ticket-select",{attrs:{data:e.couponData},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleCouponClickEvent.apply(void 0,arguments)}},model:{value:e.showSelectCouponModal,callback:function(t){e.showSelectCouponModal=t},expression:"showSelectCouponModal"}},[i("v-uni-view",{attrs:{slot:"title"},slot:"title"},[e._v("请选择代金劵")])],1),i("address-select-modal",{attrs:{data:e.addressList,"default-address-id":e.currentSelectAddressId},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleAddressClickEvent.apply(void 0,arguments)},edit:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)},add:function(t){arguments[0]=t=e.$handleEvent(t),e.addEditAddressEvent.apply(void 0,arguments)}},model:{value:e.showChooseAddressModal,callback:function(t){e.showChooseAddressModal=t},expression:"showChooseAddressModal"}}),i("center-modal",{attrs:{"cancel-text":"取消","confirm-text":"确认","wrapper-width":"80%"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.handlePhoneNum.apply(void 0,arguments)}},model:{value:e.showConcat,callback:function(t){e.showConcat=t},expression:"showConcat"}},[i("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"请输入预留电话号码"},model:{value:e.deliveryInfo.inStore.mobile,callback:function(t){e.$set(e.deliveryInfo.inStore,"mobile",t)},expression:"deliveryInfo.inStore.mobile"}})],1),i("center-modal",{attrs:{"cancel-text":" ","confirm-text":" ","content-no-top":!0,"content-no-padding":!0,"wrapper-width":"90%"},model:{value:e.showChooseOptionsModal,callback:function(t){e.showChooseOptionsModal=t},expression:"showChooseOptionsModal"}},[i("v-uni-view",{staticClass:"spec-choose-modal",style:[{"--theme_bg_color":e.themeBgColor,"--theme_font_color":e.themeFontColor}]},[i("v-uni-view",{staticClass:"content-wrapper"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-y":!0}},[e.options.length>0?[i("v-uni-view",{staticClass:"content-data"},[i("v-uni-view",{staticClass:"content-title tn-color-gray"},[e._v("规格")]),i("v-uni-view",{staticClass:"content-select"},e._l(e.options,(function(t,r){return i("v-uni-view",{key:r,staticClass:"select-item tn-border-gray--light",class:[{select:t.select}],style:[{"--theme-color":e.themeBgColor}],on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.chooseOptionEvent(r,t)}}},[i("v-uni-view",{staticClass:"item-title"},[e._v(e._s(t.title))]),i("v-uni-view",{staticClass:"item-price tn-color-red"},[e._v(e._s(e.CurrencyUnit)+e._s(t.price))])],1)})),1)],1)]:e._e(),e.attrs.length>0?e._l(e.attrs,(function(t,r){return i("v-uni-view",{key:r,staticClass:"content-data"},[i("v-uni-view",{staticClass:"content-title tn-color-gray"},[e._v(e._s(t.title))]),i("v-uni-view",{staticClass:"content-select"},e._l(t.label,(function(t,a){return i("v-uni-view",{key:a,staticClass:"select-item tn-border-gray--light",class:[{select:t.select}],style:[{"--theme-color":e.themeBgColor}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.chooseAttrEvent(r,a)}}},[i("v-uni-view",{staticClass:"item-title"},[e._v(e._s(t.title))])],1)})),1)],1)})):e._e(),e.materials.length>0?[i("v-uni-view",{staticClass:"content-data"},[i("v-uni-view",{staticClass:"content-title tn-color-gray"},[e._v("加料")]),i("v-uni-view",{staticClass:"content-select"},e._l(e.materials,(function(t,r){return i("v-uni-view",{key:r,staticClass:"select-item tn-border-gray--light",class:[{select:t.select}],style:[{"--theme-color":e.themeBgColor}],on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.chooseMaterialEvent(r)}}},[i("v-uni-view",{staticClass:"item-title"},[e._v(e._s(t.title))]),i("v-uni-view",{staticClass:"item-price tn-color-red"},[e._v(e._s(e.CurrencyUnit)+e._s(t.price))])],1)})),1)],1)]:e._e()],2)],1),i("v-uni-view",{staticClass:"price-num-wrapper"},[i("v-uni-view",{staticClass:"price-value tn-flex-row-end"},[i("v-uni-view",{staticClass:"title"},[e._v("总计")]),i("v-uni-view",{staticClass:"price tn-color-red"},[i("v-uni-view",{staticClass:"unit"},[e._v(e._s(e.CurrencyUnit))]),i("v-uni-view",{staticClass:"value"},[e._v(e._s(e.specPrice))])],1)],1),i("v-uni-view",{staticClass:"num-select"},[i("v-uni-view",{staticClass:"operation__add tn-flex-center"},[0!==e.specMax?[i("v-uni-view",{staticClass:"icon tn-icon-add tn-flex-center",attrs:{"hover-class":"tn-btn-hover-ani-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleMultiSpecAddEvent.apply(void 0,arguments)}}})]:[i("v-uni-view",{staticClass:"sold-out tn-color-gray"},[e._v("已售完")])]],2)],1)],1)],1)],1)],1)},o=[]},a068:function(e,t,i){var r=i("a67b");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("03206d3c",r,!0,{sourceMap:!1,shadowMode:!1})},a67b:function(e,t,i){var r=i("c86c");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.header-title[data-v-2d65f920]{padding:%?26?%;font-size:%?32?%}\n/* 红包、代金券列表 start */.redpacket-ticket-list[data-v-2d65f920]{position:relative;width:100%;height:%?800?%}.redpacket-ticket-item[data-v-2d65f920]{width:calc(100% - %?60?%);margin:%?30?%;border-radius:%?15?%;background:linear-gradient(45deg,#fff,var(--theme-color) 400%)\n /* 红包、优惠卷信息 start */\n /* 红包、优惠卷信息 end */\n /* 优惠价格信息 start */\n /* 优惠价格信息 end */\n /* 选中框 start */\n /* 选中框 end */}.redpacket-ticket-item .item-top[data-v-2d65f920]{width:100%;padding:%?40?% %?30?%}.redpacket-ticket-item .item-top .item-top-left[data-v-2d65f920]{flex:1}.redpacket-ticket-item .item-bottom[data-v-2d65f920]{position:relative;width:100%;padding:%?30?%}.redpacket-ticket-item .item-bottom[data-v-2d65f920]::before{content:" ";position:absolute;width:90%;height:%?2?%;border-top:%?1?% dashed #e6e6e6;left:5%;top:%?-1?%}.redpacket-ticket-item .item-title[data-v-2d65f920]{font-size:%?36?%}.redpacket-ticket-item .item-remark[data-v-2d65f920]{margin-top:%?4?%}.redpacket-ticket-item .item-price .discount[data-v-2d65f920]{display:flex;align-items:flex-end}.redpacket-ticket-item .item-price .discount .unit[data-v-2d65f920]{font-size:%?28?%;line-height:1}.redpacket-ticket-item .item-price .discount .value[data-v-2d65f920]{line-height:1;font-size:%?60?%;font-weight:500;margin-top:%?18?%;margin-left:%?8?%}.redpacket-ticket-item .item-price .condition[data-v-2d65f920]{margin-top:%?8?%;font-size:%?24?%}.redpacket-ticket-item .item-select[data-v-2d65f920]{margin-left:%?20?%;width:%?40?%;height:%?40?%;border-radius:50%;background-color:#fff;border:%?1?% solid var(--theme-color)}.redpacket-ticket-item .item-select.select[data-v-2d65f920]{background-color:var(--theme-color)}.redpacket-ticket-item .item-select .icon[data-v-2d65f920]{margin-top:%?2?%}\n/* 红包、代金券列表 end */',""]),e.exports=t},a6b6:function(e,t,i){var r=i("3c93");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("13dbb2fa",r,!0,{sourceMap:!1,shadowMode:!1})},af51:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderCommentPageInfoApi=t.getCutTImeData=t.cutOffSwit=t.confirmOrderApi=t.confirmErranderOrderApi=t.cancelTcOrderApi=t.cancelOrderApi=t.cancelErranderOrderApi=t.addOrderCommentApi=void 0;var a=r(i("7653"));t.getOrderCommentPageInfoApi=function(e){var t=e.id,i=e.order_type;return a.default.get("api/user.order.comment/getPageParams",{id:t,order_type:i})};t.addOrderCommentApi=function(e){var t=e.id,i=e.deliverScore,r=e.goodsQuality,o=e.note,n=e.thumbs,s=e.order_type;return a.default.post("api/user.order.comment/create",{id:t,deliverScore:i||0,goods_quality:r||0,note:o||"",thumbs:n||[],order_type:s||"takeout"})};t.cancelTcOrderApi=function(e){return a.default.post("/api/user.mealRedpacket.meal_redpacket_order/cancelOrder",{order_id:e})};t.cancelOrderApi=function(e){return a.default.post("api/user.order.order/cancel",{id:e})};t.confirmOrderApi=function(e){return a.default.post("api/user.order.order/end",{id:e})};t.cancelErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/cancel",{id:e})};t.confirmErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/confirm",{id:e})};t.cutOffSwit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.default.get("api/user.order.cut_time/getOpen?sid="+e,{})};t.getCutTImeData=function(){return a.default.get("api/user.order.cut_time/list",{})}},b594:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(i("dc1f")),o=r(i("e456")),n={props:{value:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},defaultValue:{type:String,default:""}},components:{BottomModal:o.default},mixins:[a.default],data:function(){return{showSelectModal:!0,currentSelectIndex:-1}},watch:{value:{handler:function(e){this.showSelectModal=e,console.log(e,"红包插件")},immediate:!0}},methods:{handleItemClickEvent:function(e){this.$emit("click",e),this.handleModalClose()},handleModalClose:function(){this.$emit("input",!1),this.$emit("close")}}};t.default=n},b780:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitOrderApi=t.getOrderPreInfoApi=t.getOrderListApi=t.getOrderDetailApi=t.getLogisticsApi=t.getJieLongConfigApi=t.confirmOrderApi=t.commentOrderApi=t.cancelOrderApi=t.applyAfterSaleApi=void 0;var a=r(i("7653"));t.getOrderPreInfoApi=function(e){return a.default.post("api/user.order.mall_order_create/indexBefore",e)};t.submitOrderApi=function(e){return a.default.post("api/user.order.mall_order_create/createOrder",e)};t.getOrderListApi=function(e){return a.default.get("api/user.order.mall_order/index?page="+e.page+"&limit=10&status=0")};t.getOrderDetailApi=function(e){return a.default.get("api/user.order.mall_order/orderDetail?id="+e)};t.getLogisticsApi=function(e){return a.default.get("api/user.order.mall_order/logistics?id="+e)};t.cancelOrderApi=function(e){return a.default.post("api/user.order.mall_order/cancelOrder",{id:e})};t.confirmOrderApi=function(e){return a.default.post("api/user.order.mall_order/confirmOrder",{id:e})};t.commentOrderApi=function(e){return a.default.post("api/user.order.mall_order/commentOrder",e)};t.applyAfterSaleApi=function(e){return a.default.post("api/user.order.mall_order/applyAfterSale",e)};t.getJieLongConfigApi=function(e){return a.default.get("api/user.order.mall_order/jielongConfig?id="+e)}},ba1f:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.updateGoodCartApi=t.getStoreShoppingCartSpecGoodNumApi=t.clearStoreShoppingCartApi=t.addTangshiGoodToCartApi=t.addGoodToCartApi=t._zfbdataPurchaseGoods=void 0;var a=r(i("7653"));t.getStoreShoppingCartSpecGoodNumApi=function(e){var t=e.sid,i=e.goodsId,r=e.tableId;return a.default.get("api/user.store.goods/cartOption",{sid:t,goods_id:i,table_id:r||""})};t.addGoodToCartApi=function(e){var t=e.sid,i=e.goodsId,r=e.spellriceId,o=e.optionId,n=e.sign,s=e.type,d=e.tableId,c=e.num,l=e.activity_id,p=e.miniProgramPath;return console.log(o),a.default.post("api/user.store.goods/cart",{sid:t,goods_id:i,spellrice_id:r||"",option_id:o||"",sign:n,type:s||"",table_id:d||"",activity_id:l||0,num:c,miniProgramPath:p||""})};t.addTangshiGoodToCartApi=function(e){var t=e.sid,i=e.goodsId,r=e.optionId,o=e.sign,n=e.type,s=e.tableId,d=e.num;return a.default.post("api/user.store.table/cart",{sid:t,goods_id:i,option_id:r||"",sign:o,type:n||"",table_id:s||"",num:d})};t.updateGoodCartApi=function(e){var t=e.goodsId,i=e.sid,r=e.num,o=e.options_id;return a.default.post("api/user.store.goods/updateCart",{sid:i,goods_id:t,num:r,options_id:o})};t.clearStoreShoppingCartApi=function(e){var t=e.sid;return a.default.get("api/user.store.goods/truncate",{sid:t})};t._zfbdataPurchaseGoods=function(e){var t=e.sign,i=e.goodsId;console.log("增长分析埋点中加减购物车的商品ID: ",i);var r="+"===t?0:1;my.reportCustomEvent("1045127",{bizType:"cloudappevent",spu_id:i,action_type:r,action_num:1,is_goods_page:0})}},bbf7:function(e,t,i){"use strict";i.r(t);var r=i("9091"),a=i("7bbf");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("84bf");var n=i("828b"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"2d65f920",null,!1,r["a"],void 0);t["default"]=s.exports},c035:function(e,t,i){"use strict";i.r(t);var r=i("9d6a5"),a=i("e9c3");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("c86b2");var n=i("828b"),s=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"273eff67",null,!1,r["a"],void 0);t["default"]=s.exports},c0b3:function(e,t,i){"use strict";var r=i("76f3"),a=i.n(r);a.a},c86b2:function(e,t,i){"use strict";var r=i("a6b6"),a=i.n(r);a.a},c91e:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("bd06"),i("aa9c"),i("64aa"),i("473f"),i("bf0f"),i("8f71"),i("4626"),i("fd3c"),i("d4b5"),i("5c47"),i("0506"),i("2797");var a=r(i("dc1f")),o=r(i("7341")),n=r(i("34cae")),s=r(i("bbf7")),d=r(i("6819")),c=r(i("e9ee")),l=i("af51"),p=i("815c"),u=(i("f9ce"),r(i("8c27"))),f=i("9d0a"),v=i("419c"),h=r(i("cb6a")),m=(r(i("ae59")),r(i("495e"))),g=i("ade3"),_=i("262c"),y=i("a69d"),b=i("26bf"),w=i("9897"),I=i("b780"),x={components:{CardSwitch:o.default,CenterModal:m.default,TimeSelectModal:d.default,PaySelectModal:n.default,RedpacketTicketSelect:s.default,AddressSelectModal:c.default,loading:u.default},mixins:[a.default],props:{optionsData:{sid:"",from:"",fromzhitong:0,spellrice:"",spellrice_oid:0,spellrice_id:0,cart_ids:0},is_express:0,currentSelectAddressId:""},data:function(){return{showConcat:!1,isLogin:!0,isLoadData:!1,orderTypeIndex:0,inStoreOrderTypeIndex:1,remarkInput:!1,remarkFocus:!1,deliveryInfo:{delivery:{address:"",username:"",mobile:"",deliveryTime:""},inStore:{mobile:"",deliveryTime:""},pinfan:{time:"",spellrice_time:""}},storeInfo:{title:"",address:"",deliveryType:0,deliveryMode:0,goodsType:0,isRest:0,isInBusiness:0},orderInfo:{products:[],boxPrice:0,packingPrice:0,deliveryFee:0,packFee:0,totalPrice:0,discountPrice:0,paidPrice:0,note:"",deliveryTimes:{}},discountPrice:0,totalPrice:0,orderSubmitInfo:{redpacketId:0,couponId:0,memberChoice:[],predictDayCn:"",predictIndex:0},activityList:[],redpacketData:[],couponData:[],surchargeFee:[],timeRange:[],isShowMemberChoice:!1,showSelectTimeModal:!1,defaultSelectTime:"",selectTimeType:"",showSelectPayWayModal:!1,showSelectRedpacketModal:!1,showSelectCouponModal:!1,currentSelectAddressId:"",addressList:[],showChooseAddressModal:!1,orderId:0,isSubmit:!1,loadingShow:!1,isShowSub:!1,spellrice:{},redStyle:!1,virtuallyRedEnvelope:"",selectJlIndex:-1,selectTcIndex:-1,pre_mealredpacket_:"",buy_mealredpacket:0,pre_add_mealredpacket_:"",buy_add_mealredpacket:0,purchaseRedEnvelopePrice:0,tuangouquan_id:0,store_extra_fee_detail:[],jielong:{},jielong_url:""}},computed:{inStoreOrderTypeBtnStyle:function(){var e=this;return function(t){var i={};return i.color=e.themeFontColor,t===e.inStoreOrderTypeIndex?i.backgroundColor=e.themeBgColor:i.borderColor=e.themeBgColor,i}},currentSelectRedpacketIndex:function(){var e,t=-1;return(null===(e=this.redpacketData)||void 0===e?void 0:e.length)>0&&(t=this.redpacketData.findIndex((function(e){return!0===e.select})),-1!=t&&(this.orderSubmitInfo.redpacketId=this.redpacketData[t].id)),t},currentSelectCouponIndex:function(){var e,t=-1;return(null===(e=this.couponData)||void 0===e?void 0:e.length)>0&&(t=this.couponData.findIndex((function(e){return!0===e.select})),-1!=t&&(this.orderSubmitInfo.couponId=this.couponData[t].id)),t},orderTypeModeData:function(){console.log(this.storeInfo.deliveryType);var e=[];if(0!=this.storeInfo.deliveryType)switch(this.storeInfo.deliveryType){case 2:e=[4===this.storeInfo.goodsType?"到店消费":"到店自取"];case 3:e=1===this.storeInfo.deliveryMode?["商家自送","到店自取"]:["骑手配送","到店自取"];default:e=[1===this.storeInfo.deliveryMode?"商家自送":"骑手配送"]}return 1==this.storeInfo.express_open&&e.push("快递配送"),e},orderTypeModeSelectCn:function(){return this.orderTypeModeData[this.orderTypeIndex]},paidPrice:function(){var e=Number(this.orderInfo.totalPrice),t=Number(this.orderInfo.discountPrice),i=this.orderInfo.paidPrice;if(this.surchargeFee.length>0){var r=this.surchargeFee.filter((function(e){return e.select})).reduce((function(e,t){return e+t.price}),0);i+=r}if((2===this.storeInfo.deliveryType||2!==this.storeInfo.deliveryType&&1===this.orderTypeIndex)&&(i-=this.orderInfo.deliveryFee,e-=this.orderInfo.deliveryFee,1===this.inStoreOrderTypeIndex&&(i-=this.orderInfo.boxPrice+this.orderInfo.packFee+this.orderInfo.packingPrice,e-=this.orderInfo.boxPrice+this.orderInfo.packFee+this.orderInfo.packingPrice)),-1!==this.currentSelectRedpacketIndex){var a=this.redpacketData[this.currentSelectRedpacketIndex];i-=a.discount,t+=a.discount}if(-1!==this.currentSelectCouponIndex){var o=this.couponData[this.currentSelectCouponIndex];i-=o.discount,t+=o.discount}return this.totalPrice=e,this.discountPrice=t,(0,p.formatPrice)(i+this.purchaseRedEnvelopePrice)},isSubmitOrder:function(){return!!this.currentSelectAddressId||0==this.jielong.is_address}},mounted:function(e){var t=(0,_.getSubmitOrderChooseAddressId)();t&&(this.currentSelectAddressId=t),this.getAddressList()},methods:{setTcIndex:function(e,t,i){var r=t;this.selectTcIndex=e;for(var a=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:0,i=this;this.loadingShow=!0,(0,I.getOrderPreInfoApi)({sid:this.optionsData.sid,address_id:t||this.currentSelectAddressId,jielong_id:this.optionsData.jielong_id}).then((function(t){e.isLoadData=!0,i.orderInfo=t[0],e.loadingShow=!1,e.optionsData.jielong_id&&e.getJieLongConfig(e.optionsData.jielong_id)})).catch((function(t){e.isLoadData=!1,console.error("[submit-order]获取订单预信息失败",t),e.loadingShow=!1,(0,_.clearSubmitOrderChooseAddressId)(),(0,f.showModal)({title:"提示",content:t.msg||"获取订单预信息失败",callback:function(){(0,v.navBack)()}})}))},getAddressList:function(){var e=this;this.isSubmit||(0,y.getUserAddressListApi)().then((function(t){e.isLogin=!0;var i=t.addresses;i&&(e.addressList=i.map((function(e){return{id:e.id,username:e.realname,mobile:e.mobile,sex:e.sex,address:e.address+e.number,number:e.number}}))),e.getPageData()})).catch((function(t){console.error("[submit-order]获取地址列表失败",t),e.addressList=[],"请重新登录"==t.msg?e.isLogin=!1:(0,f.showModal)({title:"提示",content:t.msg||"获取商品信息失败",callback:function(){(0,v.navBack)()}})}))},setDefaultAddressInfo:function(e){this.currentSelectAddressId=e.id,this.deliveryInfo.delivery.address=e.address,this.deliveryInfo.delivery.username=e.username,this.deliveryInfo.delivery.mobile=e.mobile},switchInStoreModeEvent:function(e){2==this.storeInfo.selfpickup_type&&0==e||1==this.storeInfo.selfpickup_type&&1==e?console.log("不能切换"):e!==this.inStoreOrderTypeIndex&&(this.inStoreOrderTypeIndex=e,console.log(this.inStoreOrderTypeIndex))},switchSurchargeFeeStatus:function(e){this.surchargeFee[e].select=!this.surchargeFee[e].select,this.orderSubmitInfo.memberChoice=this.surchargeFee.map((function(e){return{status:e.select}}))},chooseTime:function(e){switch(this.selectTimeType=e,e){case"delivery":this.defaultSelectTime=this.deliveryInfo.delivery.deliveryTime;break;case"inStore":this.defaultSelectTime=this.deliveryInfo.inStore.deliveryTime;break}this.showSelectTimeModal=!0},handleChooseTimeModalConfirmEvent:function(e){var t=e.value,i=e.date,r=e.timeIndex;switch(console.log(t,i,r),this.selectTimeType){case"delivery":this.deliveryInfo.delivery.deliveryTime=t;break;case"inStore":this.deliveryInfo.inStore.deliveryTime=t;break}if(this.orderSubmitInfo.predictDayCn=i,this.orderSubmitInfo.predictIndex=r,this.deliveryInfo.pinfan.time=t,0==this.optionsData.spellrice_oid&&1==this.optionsData.spellrice)for(var a=0;a