market-page-suborder-sub-order.527155f8.js 28 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["market-page-suborder-sub-order"],{1292:function(e,t,i){"use strict";i("6a54");var r=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.postMarketGoodSendOutApi=t.postMarketGoodFinishApi=t.postMarkePayStationApi=t.postMarkeMyGoodsApi=t.postMarkeInitiatePaymentApi=t.postMarkeGoodsStatusApi=t.postMarkeGoodsApi=t.postMarkeCreateOrderApi=t.getMarkePreGoodsApi=t.getMarkeGoodsListlApi=t.getMarkeGoodsListApi=t.getMarkeGoodsInfoApi=t.getMarkeGoodsDetailApi=t.getMarkeCateApi=void 0;var a=r(i("7653"));t.getMarkeCateApi=function(){return a.default.get("api/user.hand2market.Category/list",{})};t.getMarkeGoodsListApi=function(e){return a.default.get("api/user.hand2market.index/list",e)};t.getMarkeGoodsInfoApi=function(e){return a.default.get("api/user.hand2market.index/detail",e)};t.postMarkeGoodsApi=function(e){return a.default.post("api/user.hand2market.index/publish",e)};t.postMarkeGoodsStatusApi=function(e){return a.default.post("api/user.hand2market.index/modify",e)};t.postMarkeMyGoodsApi=function(e){return a.default.get("api/user.hand2market.index/mySellItem",e)};t.getMarkePreGoodsApi=function(e){return a.default.get("api/user.hand2market.Order/OrderCal",e)};t.postMarkeCreateOrderApi=function(e){return a.default.post("api/user.hand2market.order/createOrder",e)};t.postMarkePayStationApi=function(e){return a.default.post("api/user.hand2market.OrderPay/Hand2PayStation",e)};t.postMarkeInitiatePaymentApi=function(e){return a.default.post("api/user.hand2market.OrderPay/initiatePayment",e)};t.getMarkeGoodsDetailApi=function(e){return a.default.get("api/user.hand2market.order/orderDetail",e)};t.getMarkeGoodsListlApi=function(e){return a.default.get("api/user.hand2market.order/getOrderList",e)};t.postMarketGoodSendOutApi=function(e){return a.default.post("api/user.hand2market.order/OrderFaHuo",e)};t.postMarketGoodFinishApi=function(e){return a.default.post("api/user.hand2market.order/OrderFinish",e)}},"68fd5":function(e,t,i){"use strict";i.r(t);var r=i("7f8d"),a=i.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},"7f8d":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("473f"),i("bf0f"),i("64aa"),i("8f71"),i("dc8a"),i("c223"),i("fd3c");var a=r(i("dc1f")),o=r(i("7341")),n=r(i("34cae")),d=r(i("6819")),s=r(i("e9ee")),c=i("815c"),l=(i("f9ce"),r(i("8c27"))),f=i("9d0a"),u=i("419c"),p=i("1292"),v=i("ade3"),m=i("262c"),h=i("a69d"),y=i("26bf"),b={components:{CardSwitch:o.default,TimeSelectModal:d.default,PaySelectModal:n.default,AddressSelectModal:s.default,loading:l.default},mixins:[a.default],data:function(){return{goodsId:"",order:{goods:{},express_price:"",goods_price:"",order_price:0},optionsData:{sid:"",from:"",fromzhitong:0,spellrice:""},isLogin:!0,isLoadData:!1,orderTypeIndex:0,remarkInput:!1,remarkFocus:!1,deliveryInfo:{delivery:{address:"",username:"",mobile:"",deliveryTime:""},inStore:{mobile:"",deliveryTime:""}},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:""},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}},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(){if(0!=this.storeInfo.deliveryType)switch(this.storeInfo.deliveryType){case 2:return[4===this.storeInfo.goodsType?"到店消费":"到店自取"];case 3:return 1===this.storeInfo.deliveryMode?["商家自送"]:["骑手配送","到店自取"];default:return[1===this.storeInfo.deliveryMode?"商家自送":"骑手配送"]}return[]},orderTypeModeSelectCn:function(){return this.orderTypeModeData[this.orderTypeIndex]},orderProductTotalPrice:function(){var e;return e=this.orderInfo.products.reduce((function(e,t){return t.price&&t.num?e+t.price*t.num:e}),0),(0,c.formatPrice)(e)},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,e-=this.orderInfo.boxPrice+this.orderInfo.packFee)),-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,c.formatPrice)(i)},isSubmitOrder:function(){var e=!0;return this.currentSelectAddressId||(e=!1),e}},onLoad:function(e){this.goodsId=e.goodsid,this.getAddressList()},onShow:function(){},methods:{getPageData:function(){var e=this;this.loadingShow=!0,(0,y.getOrderPreInfoApi)({sid:this.optionsData.sid,fromzhitong:this.optionsData.fromzhitong,spellrice:this.optionsData.spellrice,addressId:this.currentSelectAddressId}).then((function(t){e.isLoadData=!0;var i=t.address,r=t.store,a=t.order,o=t.cart,n=t.redPackets,d=t.coupons;if(e.storeInfo.title=r.title,e.storeInfo.address=r.address,e.storeInfo.deliveryType=r.delivery_type,e.storeInfo.deliveryMode=r.delivery_mode,e.storeInfo.goodsType=t.goods_type,e.storeInfo.isRest=(null===r||void 0===r?void 0:r.is_rest)||0,e.storeInfo.isInBusiness=(null===r||void 0===r?void 0:r.is_in_business)||0,1==e.storeInfo.isRest||0==e.storeInfo.isInBusiness)return e.loadingShow=!1,(0,f.showModal)({title:"提示",content:"当前店铺正在休息",callback:function(){(0,u.navBack)()}});var s=e.addressList.findIndex((function(t){return t.id===e.currentSelectAddressId}));if(-1!=s){var c=e.addressList[s];e.setDefaultAddressInfo(c)}else i&&((null===i||void 0===i?void 0:i.length)>0||Object.keys(i).length>0)&&(e.setDefaultAddressInfo({id:i.id,address:i.address,username:i.realname,mobile:i.mobile}),e.currentSelectAddressId=i.id);e.deliveryInfo.inStore.mobile=(null===t||void 0===t?void 0:t.mobile)||"",e.orderInfo.boxPrice=Number(a.box_price)||0,e.orderInfo.packingPrice=Number(a.packing_price)||0,e.orderInfo.deliveryFee=Number(a.delivery_fee)||0,e.orderInfo.packFee=Number(a.pack_fee)||0,e.orderInfo.totalPrice=Number(a.total_fee_show)||0,e.orderInfo.discountPrice=Number(a.discount_fee)||0,e.orderInfo.paidPrice=Number(a.final_fee_show)||0,e.orderInfo.note=a.note,e.orderInfo.products=o.data.reduce((function(e,t){return e.concat(t.filter((function(e){return e.price&&e.num})).map((function(e){return{title:e.title,image:e.thumb,spec:e.option_title,price:Number(e.price)||0,num:Number(e.num)||0}})))}),[]),e.activityList=a.activityed.list.map((function(e){return{type:e.type,title:e.name,text:e.text}})),e.timeRange=Object.keys(a.deliveryTimes.times).map((function(e){var t=a.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(a.deliveryTimes.predict_year_day," ").concat(a.deliveryTimes.predict_time_cn),e.deliveryInfo.inStore.deliveryTime="".concat(a.deliveryTimes.predict_year_day," ").concat(a.deliveryTimes.predict_time_cn),e.orderSubmitInfo.predictDayCn=a.deliveryTimes.predict_year_day,e.orderSubmitInfo.predictIndex=0,e.isShowMemberChoice=(null===t||void 0===t?void 0:t.isShowMemberChoice)||!1,e.surchargeFee=a.member_choice.map((function(e){return{title:e.name,price:Number(e.fee),select:!1}})),e.redpacketData=n.map((function(e){return{id:e.id,title:e.title,remark:(null===e||void 0===e?void 0:e.remark)||"[大马生活专享]",discount:Number(e.discount),condition:Number(e.condition),day_cn:e.day_cn,select:!1}})),e.couponData=d.map((function(e){return{id:e.id,title:e.title,discount:Number(e.discount),condition:Number(e.condition),day_cn:"限".concat(e.title,"使用"),select:!1}})),e.loadingShow=!1})).catch((function(t){e.isLoadData=!1,console.error("[submit-order]获取订单预信息失败",t),e.loadingShow=!1,(0,f.showModal)({title:"提示",content:t.msg||"获取订单预信息失败",callback:function(){(0,u.navBack)()}})}))},getAddressList:function(){var e=this;this.isSubmit||(0,h.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,number:e.number}}))),e.getPreOrderInfo()})).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,u.navBack)()}})}))},getPreOrderInfo:function(){var e=this;(0,p.getMarkePreGoodsApi)({id:this.goodsId}).then((function(t){e.order=t.order}))},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){e!==this.inStoreOrderTypeIndex&&(this.inStoreOrderTypeIndex=e)},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(this.selectTimeType){case"delivery":this.deliveryInfo.delivery.deliveryTime=t;break;case"inStore":this.deliveryInfo.inStore.deliveryTime=t;break}this.orderSubmitInfo.predictDayCn=i,this.orderSubmitInfo.predictIndex=r},submitOrder:function(){var e=this;this.isSubmitOrder&&(this.loadingShow=!0,(0,p.postMarkeCreateOrderApi)({good_id:this.goodsId,address_id:this.currentSelectAddressId,from_path:this.fromPath}).then((function(t){e.orderId=t.order_id,setTimeout((function(){e.$nextTick((function(){uni.$emit(v.REFRESH_STORE_EVENT),e.isSubmit=!0,(0,m.clearSubmitOrderChooseAddressId)(),e.loadingShow=!1,e.showSelectPayWayModal=!0}))}),150)})).catch((function(t){console.error("[submit-order]提交订单失败",t),(0,f.showToast)({title:t.msg}),e.loadingShow=!1})))},cancelPayEvent:function(){this._navOrderDetailPage()},successPayEvent:function(){this._navOrderDetailPage()},failPayEvent:function(){this._navOrderDetailPage()},_navOrderDetailPage:function(){this.showSelectPayWayModal=!1,(0,u.navPage)("/market-page/orderdetail/order-detail?id=".concat(this.orderId),"redirect")},selectAddress:function(){this.showChooseAddressModal=!0},handleAddressClickEvent:function(e){var t=this.addressList[e];this.deliveryInfo.delivery.address=t.address,this.deliveryInfo.delivery.username=t.username,this.deliveryInfo.delivery.mobile=t.mobile,this.currentSelectAddressId=t.id,console.log("address.id",t.id),(0,m.setSubmitOrderChooseAddressId)(t.id),this.getPreOrderInfo()},addEditAddressEvent:function(){this.currentSelectAddressId="",this.showChooseAddressModal=!1},orderTypeSwitchChangeEvent:function(e){2!==this.storeInfo.deliveryType&&0===e&&(this.inStoreOrderTypeIndex=0)},startInputRemarkData:function(){this.remarkInput=!0,this.remarkFocus=!0},remarkTextareaBlurEvent:function(){this.remarkInput=!1,this.remarkFocus=!1},formatPrice:c.formatPrice}};t.default=b},"8f40":function(e,t,i){"use strict";i.r(t);var r=i("db28"),a=i("68fd5");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("cd0d");var n=i("828b"),d=Object(n["a"])(a["default"],r["b"],r["c"],!1,null,"bcf1a40a",null,!1,r["a"],void 0);t["default"]=d.exports},c495: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-bcf1a40a]{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-bcf1a40a]{position:relative;margin-top:%?30?%;min-height:calc(100vh - %?50?%);padding:%?0?% %?30?%;padding-bottom:%?180?%;z-index:2}\n/* 订单类型 start */.order-type[data-v-bcf1a40a]{position:relative;width:100%;z-index:2\n /* 骑手配送\\到店自取 start */\n /* 骑手配送\\到店自取 end */}.order-type__delivery[data-v-bcf1a40a], .order-type__in-store[data-v-bcf1a40a]{\n /* 地址 start */\n /* 地址 end */\n /* 配送时间 start */\n /* 配送时间 end */}.order-type__delivery .address-info[data-v-bcf1a40a], .order-type__in-store .address-info[data-v-bcf1a40a]{width:100%;padding-bottom:%?20?%;border-bottom:%?1?% solid #f3f2f7}.order-type__delivery .address-info .icon[data-v-bcf1a40a], .order-type__in-store .address-info .icon[data-v-bcf1a40a]{width:%?50?%;height:%?50?%;font-size:%?42?%;border-radius:50%;margin:%?0?% %?20?%}.order-type__delivery .address-info .info[data-v-bcf1a40a], .order-type__in-store .address-info .info[data-v-bcf1a40a]{width:calc(100% - %?60?% - %?20?%)}.order-type__delivery .address-info .info .address[data-v-bcf1a40a], .order-type__in-store .address-info .info .address[data-v-bcf1a40a]{font-weight:700;font-size:%?30?%}.order-type__delivery .address-info .info .customer[data-v-bcf1a40a], .order-type__in-store .address-info .info .customer[data-v-bcf1a40a]{margin-top:%?10?%;font-size:%?26?%}.order-type__delivery .delivery-time[data-v-bcf1a40a], .order-type__in-store .delivery-time[data-v-bcf1a40a]{padding-top:%?30?%}.order-type__delivery .delivery-time .title[data-v-bcf1a40a], .order-type__in-store .delivery-time .title[data-v-bcf1a40a]{font-weight:500}.order-type__in-store[data-v-bcf1a40a]{\n /* 预留电话 start */\n /* 预留电话 end */}.order-type__in-store .address-info[data-v-bcf1a40a]{border-bottom:none;padding-bottom:%?20?%}.order-type__in-store .delivery-time[data-v-bcf1a40a]{padding-top:%?0?%;padding-bottom:%?20?%;border-bottom:%?1?% solid #f3f2f7}.order-type__in-store .mobile-info[data-v-bcf1a40a]{padding:%?14?%;border-radius:%?6?%;margin-top:%?20?%}.order-type__in-store .mobile-info .value[data-v-bcf1a40a]{flex:1;padding-left:%?24?%}.order-type__in-store .mobile-info .value .input[data-v-bcf1a40a]{width:100%;background-color:initial;padding:%?0?%;color:inherit}\n/* 订单类型 end */\n/* 到店自取类型 start */.in-store-type[data-v-bcf1a40a]{margin-top:%?50?%;width:100%;display:flex;align-items:center;justify-content:space-between}.in-store-type .btn[data-v-bcf1a40a]{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-bcf1a40a]{border-width:%?0?%;border-style:none}\n/* 到店自取类型 end */\n/* 商品价格信息 start */.product-price-info[data-v-bcf1a40a]{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 .product-info[data-v-bcf1a40a]{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-bcf1a40a]{font-size:%?30?%}.product-price-info .product-info .product-list .product-item[data-v-bcf1a40a]{margin-top:%?20?%;border-radius:%?8?%;padding:%?20?%;display:flex}.product-price-info .product-info .product-list .product-item .item-image[data-v-bcf1a40a]{width:%?120?%;height:%?120?%;border-radius:%?8?%}.product-price-info .product-info .product-list .product-item .item-info[data-v-bcf1a40a]{flex:1;padding-left:%?20?%}.product-price-info .product-info .product-list .product-item .item-info .title[data-v-bcf1a40a]{width:100%;font-size:%?32?%}.product-price-info .product-info .product-list .product-item .item-info .spec[data-v-bcf1a40a]{font-size:%?22?%;color:#aaa;margin-top:%?4?%}.product-price-info .product-info .product-list .product-item .item-info .price-num[data-v-bcf1a40a]{margin-top:%?8?%}.product-price-info .product-info .product-list .product-item .item-info .price-num .price[data-v-bcf1a40a]{font-size:%?32?%;font-weight:500}.product-price-info .price-info[data-v-bcf1a40a]{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-bcf1a40a]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .price-info .item .price[data-v-bcf1a40a]{font-weight:700}.product-price-info .discount-info[data-v-bcf1a40a]{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}.product-price-info .discount-info .item[data-v-bcf1a40a]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?10?% %?0?%}.product-price-info .discount-info .item .data .icon[data-v-bcf1a40a]{color:#080808}.product-price-info .total-price[data-v-bcf1a40a]{width:100%;display:flex;align-items:center;justify-content:space-between;padding:%?0?% %?30?% %?30?% %?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}.product-price-info .total-price .data[data-v-bcf1a40a]{display:flex;align-items:center}.product-price-info .total-price .data .sum[data-v-bcf1a40a], .product-price-info .total-price .data .discount[data-v-bcf1a40a], .product-price-info .total-price .data .paid[data-v-bcf1a40a]{margin-left:%?16?%}.product-price-info .total-price .data .paid[data-v-bcf1a40a]{font-size:%?34?%}\n/* 商品价格信息 end */\n/* 附加费用 start */.surcharge-fee[data-v-bcf1a40a]{width:100%;margin-top:%?30?%;padding:%?30?%;background-color:#fff;border-radius:%?15?%}.surcharge-fee .item[data-v-bcf1a40a]{width:100%;padding:%?20?% %?0?%;display:flex;align-items:center;justify-content:space-between}.surcharge-fee .item .data[data-v-bcf1a40a]{display:flex;align-items:center}.surcharge-fee .item .data .select[data-v-bcf1a40a]{margin-left:%?10?%;width:%?40?%;height:%?40?%;border-radius:50%}.surcharge-fee .item .data .select .icon[data-v-bcf1a40a]{margin-top:%?2?%}\n/* 附加费用 end */\n/* 备注 start */.note[data-v-bcf1a40a]{width:100%;margin-top:%?30?%}.note .title[data-v-bcf1a40a]{font-weight:700;font-size:%?32?%}.note .data[data-v-bcf1a40a]{width:100%;height:%?200?%;margin-top:%?10?%;background-color:#fff;border-radius:%?15?%;padding:%?20?%}.note .data .textarea[data-v-bcf1a40a], .note .data .show-data[data-v-bcf1a40a]{width:100%;height:100%;padding:%?0?%}\n/* 备注 end */\n/* 结算/提交订单操作栏 start */.settle-bar[data-v-bcf1a40a]{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-bcf1a40a]{bottom:%?-140?%}.settle-bar .price-info[data-v-bcf1a40a]{padding-left:%?30?%}.settle-bar .price-info .price[data-v-bcf1a40a]{display:flex;align-items:flex-end;font-size:%?42?%;font-weight:700}.settle-bar .price-info .price .unit[data-v-bcf1a40a]{font-size:%?28?%;margin-right:%?6?%;-webkit-transform:translateY(%?-2?%);transform:translateY(%?-2?%)}.settle-bar .price-info .discount[data-v-bcf1a40a]{font-size:%?24?%}.settle-bar .submit-btn[data-v-bcf1a40a]{padding:%?40?%;font-size:%?32?%}\n/* 结算/提交订单操作栏 end */',""]),e.exports=t},cd0d:function(e,t,i){"use strict";var r=i("e23e"),a=i.n(r);a.a},db28:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}));var r={loading:i("8c27").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("custom-page",{attrs:{"custom-navbar":!0,"transparent-navbar":!0,"wrapper-bg-color":"#F3F2F7"}},[e.loadingShow?i("loading"):e._e(),i("v-uni-view",{staticClass:"top-bg"}),i("v-uni-view",{staticClass:"wrapper"},[i("v-uni-view",{staticClass:"order-type"},[i("card-switch",{attrs:{"nav-data":e.orderTypeModeData},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.orderTypeSwitchChangeEvent.apply(void 0,arguments)}},model:{value:e.orderTypeIndex,callback:function(t){e.orderTypeIndex=t},expression:"orderTypeIndex"}},[2!==e.storeInfo.deliveryType&&0===e.orderTypeIndex?i("v-uni-view",{staticClass:"order-type__delivery"},[i("v-uni-view",{staticClass:"address-info tn-flex-row-center",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"icon tn-cool-bg-13 tn-flex-center"},[i("v-uni-text",{staticClass:"tn-icon-location-fill"})],1),e.deliveryInfo.delivery.address?i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"address"},[e._v(e._s(e.deliveryInfo.delivery.address))]),i("v-uni-view",{staticClass:"customer"},[e._v(e._s(e.deliveryInfo.delivery.username)+" "+e._s(e.deliveryInfo.delivery.mobile))])],1):i("v-uni-view",{staticClass:"info tn-color-gray"},[e._v("请选择地址")])],1)],1):e._e()],1)],1),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("商品信息")],1),i("v-uni-view",{staticClass:"product-list"},[i("v-uni-view",{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:e.order.goods.thumb,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item-info"},[i("v-uni-view",{staticClass:"title tn-text-ellipsis-1"},[e._v(e._s(e.order.goods.title))]),i("v-uni-view",{staticClass:"spec tn-text-ellipsis-1"},[e._v(e._s(e.order.goods.description))]),i("v-uni-view",{staticClass:"price-num tn-flex-end-between"},[i("v-uni-view",{staticClass:"price tn-color-red"},[e._v(e._s(e.CurrencyUnit)+e._s(e.order.goods.price))]),i("v-uni-view",{staticClass:"num"},[e._v("x"+e._s(e.order.goods.total))])],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"price-info"},[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.order.goods.price))])],1),0===e.inStoreOrderTypeIndex&&e.orderInfo.boxPrice?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):e._e(),0===e.inStoreOrderTypeIndex&&e.orderInfo.packingPrice?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):e._e(),0===e.inStoreOrderTypeIndex&&e.orderInfo.packFee?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._e(),e.orderInfo.deliveryFee&&2!==e.storeInfo.deliveryType&&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(),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.order.goods_price))]),i("v-uni-view",{staticClass:"discount"},[e._v("运费"+e._s(e.CurrencyUnit)+e._s(e.order.express_price))]),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.order.order_price))])],1)],1)],1)],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.order.order_price))])],1),i("v-uni-view",{staticClass:"discount tn-color-gray"},[e._v("待支付"+e._s(e.CurrencyUnit)+e._s(e.order.order_price))])],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("pay-select-modal",{attrs:{"order-id":e.orderId,"order-type":"market"},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)},o=[]},e23e:function(e,t,i){var r=i("c495");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=i("967d").default;a("60f300b7",r,!0,{sourceMap:!1,shadowMode:!1})}}]);