1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["guide-pay"],{"00fd":function(e,t,i){"use strict";i.r(t);var a=i("f685"),n=i("4245");for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);i("29b7");var r=i("828b"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"0c2ef10d",null,!1,a["a"],void 0);t["default"]=o.exports},"0c54":function(e,t,i){"use strict";i.r(t);var a=i("1904"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},"0d0e":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return a}));var a={uniPopup:i("029e").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("uni-popup",{ref:"popup",attrs:{safeArea:!1,type:"bottom"}},[i("v-uni-view",{staticClass:"pd15",staticStyle:{position:"relative","background-color":"white","border-radius":"40rpx 40rpx 0 0"}},[i("img",{staticStyle:{width:"40rpx",height:"40rpx",position:"absolute",right:"30rpx"},attrs:{src:e.statics.close,alt:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.close.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"money mb30",staticStyle:{"text-align":"center","margin-top":"100rpx"}},[e.currencyRight?e._e():i("span",{staticClass:"ft16 ftw500"},[e._v(e._s(e.currency+" "))]),e._v(e._s(e.money)),e.currencyRight?i("span",{staticClass:"ft16 ftw500"},[e._v(e._s(e.currency+" "))]):e._e()]),i("v-uni-view",{staticClass:"payment-section"},e._l(e.payTypeList,(function(t,a){return i("v-uni-view",{key:a,staticClass:"mt15"},[0!==a?i("v-uni-view",{staticClass:"com-line"}):e._e(),i("v-uni-view",{staticClass:"payment-method"},[i("v-uni-image",{staticClass:"payment-icon",attrs:{src:t.img_url}}),i("v-uni-text",{staticClass:"payment-text"},[e._v(e._s(t.name))]),i("v-uni-image",{staticClass:"payment-choose-icon",attrs:{src:e.selectedPayment===t.id?e.statics.airportPickup.choose:e.statics.airportPickup.unChoose},on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.selectPayment(t.id)}}})],1)],1)})),1),i("v-uni-button",{staticClass:"order-btn mb15",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submitAndPay.apply(void 0,arguments)}}},[e._v("立即支付")])],1)],1)},s=[]},1904:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa"),i("d4b5");var a=i("e0a2"),n={props:{payTypeList:{type:Array,default:[]},url:{type:String,default:""},money:{type:[Number,String],default:"-"},currency:{type:String,default:""},currencyRight:{type:Boolean,default:!1}},data:function(){return{selectedPayment:"",selectedIndex:0,statics:{airportPickup:{BJ:a.staticUrl+"api/images/20250506/images_1746500677.png",JC:a.staticUrl+"api/images/20250506/images_1746511575.png",XC:a.staticUrl+"api/images/20250506/images_1746511750.png",RS:a.staticUrl+"api/images/20250506/images_1746511903.png",SC:a.staticUrl+"api/images/20250506/images_1746511946.png",QFJC:a.staticUrl+"api/images/20250506/images_1746512011.png",YCSJ:a.staticUrl+"api/images/20250506/images_1746512069.png",ZH:a.staticUrl+"api/images/20250506/images_1746514168.png",REN:a.staticUrl+"api/images/20250506/images_1746532228.png",XINGLI:a.staticUrl+"api/images/20250506/images_1746532319.png",choose:a.staticUrl+"api/images/20250515/images_1747289637.png",unChoose:a.staticUrl+"api/images/20250515/images_1747289603.png",QIDIAN:a.staticUrl+"api/images/20250508/images_1746688051.png",ZHONGDIAN:a.staticUrl+"api/images/20250508/images_1746688119.png"},right:a.staticUrl+"api/images/20250506/images_1746512926.png",close:a.staticUrl+"api/images/20250506/images_1746517832.png",back:a.staticUrl+"api/images/20250506/images_1746518147.png",longArrows:a.staticUrl+"api/images/20250506/images_1746521912.png",SPListBG:a.staticUrl+"api/images/20250512/images_1747047121.png",SPList:a.staticUrl+"api/images/20250512/images_1747047340.png"}}},methods:{goUrl:function(e){window.location.href=e},TngPay:function(e,t){console.log("===========AlipayPay",e,e.url),uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng"),this.goUrl(e.url)},selectPayment:function(e){this.selectedPayment=e},open:function(){this.$refs.popup.open()},close:function(){this.$refs.popup.close(),this.$emit("close")},submitAndPay:function(){if(!this.selectedPayment)return uni.showToast({title:"请选择支付方式",icon:"none"}),!1;this.$emit("submitAndPay",this.selectedPayment)},payAction:function(e){if("1"==this.selectedPayment)this.wxPay(e);else if("2"==this.selectedPayment)this.AlipayPay(e.pay_params,e.order_sn);else if("10"==this.selectedPayment)this.TngPay(e.pay_params,e.order_sn);else if("3"==this.selectedPayment){var t=this;uni.showModal({title:"提示",content:"支付成功",showCancel:!1,success:function(i){t.$emit("success",e.order_sn)}})}},wxPay:function(e){uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng"),console.log("payment.url",JSON.stringify(e)),this.goUrl(e.pay_params.url)},AlipayPay:function(e,t){uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng");var i=document.createElement("div");i.innerHTML=e.html,document.body.appendChild(i),document.forms[0].submit(),i.remove()}}};t.default=n},"1fe3":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPayApi=t.orderDetailApi=t.goPayApi=t.getGuideOrderListApi=t.getGuideListApi=t.getGuideDetailApi=void 0;var n=a(i("7653"));t.getGuideListApi=function(e){return n.default.post("api/user.product.localGuide/list",e)};t.getGuideDetailApi=function(e){return n.default.post("api/user.product.localGuide/detail",e)};t.submitAndPayApi=function(e){return n.default.post("api/user.order.localGuide/submitAndPay",e)};t.getGuideOrderListApi=function(e){return n.default.post("api/user.order.localGuide/list",e)};t.orderDetailApi=function(e){return n.default.post("api/user.order.localGuide/detail",e)};t.goPayApi=function(e){return n.default.post("api/user.order.localGuide/goPay",e)}},"29b7":function(e,t,i){"use strict";var a=i("90c9"),n=i.n(a);n.a},4245:function(e,t,i){"use strict";i.r(t);var a=i("7ca9"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(s);t["default"]=n.a},"6cfc":function(e,t,i){var a=i("c86c");t=a(!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 */[data-v-0c2ef10d] .bottom-modal__wrapper.no-padding{background-color:#fff!important}.bg[data-v-0c2ef10d]{position:fixed;left:0;top:0;width:100%;height:100%;background:#f5f5f5;z-index:-1}\n/* 地址 start */.address-info[data-v-0c2ef10d]{width:100%}.address-info .address-item .item-type[data-v-0c2ef10d]{width:%?50?%;height:%?50?%;border-radius:50%;line-height:1}.address-info .address-item .item-data[data-v-0c2ef10d]{flex:1;margin-left:%?20?%}.address-info .address-item .info-address[data-v-0c2ef10d]{font-size:%?34?%}.address-info .address-item .info-user[data-v-0c2ef10d]{margin-top:%?12?%}.address-info .address-item .item-right-icon[data-v-0c2ef10d]{margin-left:%?20?%}.address-info .address-item + .address-item[data-v-0c2ef10d]{margin-top:%?40?%}.address-info .address-item + .address-item .item-data[data-v-0c2ef10d]{position:relative}.address-info .address-item + .address-item .item-data[data-v-0c2ef10d]::before{content:"";position:absolute;left:50%;top:%?-20?%;height:%?2?%;width:90%;background-color:#f8f7f8;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.address-info .icon[data-v-0c2ef10d]{width:%?50?%;height:%?50?%;font-size:%?42?%;border-radius:50%;margin:%?0?% %?20?%}.address-info .info[data-v-0c2ef10d]{width:calc(100% - %?60?% - %?20?%)}.address-info .info .address[data-v-0c2ef10d]{font-weight:700;font-size:%?30?%}.address-info .info .customer[data-v-0c2ef10d]{margin-top:%?10?%;font-size:%?26?%}\n/* 地址 end */.payment-choose-icon[data-v-0c2ef10d]{width:%?38?%;height:%?38?%}.circle[data-v-0c2ef10d]{width:50px;\n /* 圆的直径 */height:50px;background-color:#ffca28;\n /* 内圆的颜色 */border-radius:50%;border:5px solid #ffca28;\n /* 外圈的颜色和透明度 */display:flex;justify-content:center;align-items:center}.pay-title[data-v-0c2ef10d]{font-family:Source Han Sans CN;font-weight:500;font-size:%?32?%;color:#1d1d1d;line-height:%?48?%;margin:%?30?%}.line[data-v-0c2ef10d]{height:1px;background-color:#efeff4;margin:%?28?% 0;width:100%}.section-title[data-v-0c2ef10d]{font-family:Source Han Sans CN;font-weight:700;font-size:%?36?%;color:#000;line-height:%?42?%}.pay-container[data-v-0c2ef10d]{overflow-y:auto;height:100vh;padding:%?10?% %?15?% %?170?% %?15?%;background:#f5f5f5;background:linear-gradient(180deg,#ffca28,#efeff4 25%)}.order-info[data-v-0c2ef10d]{display:flex}.order-image[data-v-0c2ef10d]{width:%?110?%;height:%?110?%;border-radius:%?10?%;margin-right:%?27?%}.order-details[data-v-0c2ef10d]{flex:1}.order-price[data-v-0c2ef10d]{margin-top:%?16?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?46?%;color:#f60;line-height:%?42?%}.order-price .price-icon[data-v-0c2ef10d]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.order-title[data-v-0c2ef10d]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#000;margin-bottom:%?28?%}.form-section[data-v-0c2ef10d]{background:#fff;margin-bottom:%?20?%;padding:%?33?% %?31?%;border-radius:%?20?%}.form-item[data-v-0c2ef10d]{display:flex;align-items:center;justify-content:space-between}.form-label[data-v-0c2ef10d]{font-family:Source Han Sans CN;font-weight:500;font-size:%?32?%;color:#333;line-height:%?42?%}.form-input[data-v-0c2ef10d]{flex:1;height:%?50?%;border:none;border-radius:%?5?%;padding:0 %?10?%;text-align:right}.payment-section[data-v-0c2ef10d]{background:#fff;padding:%?24?% %?30?%;margin-bottom:%?120?%}.payment-method[data-v-0c2ef10d]{display:flex;align-items:center;margin-bottom:%?10?%}.payment-icon[data-v-0c2ef10d]{width:%?48?%;height:%?48?%;margin-right:%?17?%}.payment-text[data-v-0c2ef10d]{flex:1;font-family:Source Han Sans CN;font-weight:500;font-size:%?30?%;color:#333;line-height:%?42?%}.payment-radio[data-v-0c2ef10d]{width:%?30?%;height:%?30?%}.total-section[data-v-0c2ef10d]{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:%?20?%}.total-text[data-v-0c2ef10d]{margin-right:%?11?%;margin-bottom:%?5?%;font-family:Source Han Sans CN;font-weight:500;font-size:%?32?%;color:#333;line-height:%?42?%}.pay-button[data-v-0c2ef10d]{background-color:#ffd84d;font-size:%?28?%;color:#333;padding:%?10?% %?20?%;border-radius:%?5?%}.action-bar[data-v-0c2ef10d]{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;padding:%?30?% %?38?%;background-color:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.05)}.action-bar .total[data-v-0c2ef10d]{display:flex;flex-direction:column}.action-bar .consult-btn[data-v-0c2ef10d]{display:flex;align-items:center;justify-content:center;font-family:Source Han Sans CN;font-weight:500;font-size:%?22?%;color:#ffca28;background:#fff4d1;border-radius:50%;opacity:.5;height:%?100?%;width:%?100?%}.action-bar .consult-btn .consult-btn-i[data-v-0c2ef10d]{display:flex;flex-direction:column}.action-bar .consult-btn .icon[data-v-0c2ef10d]{width:%?41?%;height:%?38?%;margin-bottom:%?9?%}.action-bar .order-btn[data-v-0c2ef10d]{flex:1;margin-left:%?41?%;background-color:#ffd84d;font-family:Source Han Sans CN;font-weight:700;font-size:%?36?%;color:#333;line-height:%?39?%;border:none;border-radius:%?20?%;padding:8px;font-size:16px;height:%?90?%;display:flex;align-items:center;justify-content:center}.order-btn[data-v-0c2ef10d]{flex:1;margin-left:%?41?%;background-color:#ffd84d;font-family:Source Han Sans CN;font-weight:700;font-size:%?36?%;color:#333;line-height:%?39?%;border:none;border-radius:%?20?%;padding:8px;font-size:16px;height:%?90?%;display:flex;align-items:center;justify-content:center}',""]),e.exports=t},"6d77":function(e,t,i){var a=i("a85c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("1c606d68",a,!0,{sourceMap:!1,shadowMode:!1})},"722d":function(e,t,i){"use strict";var a=i("6d77"),n=i.n(a);n.a},"73e1":function(e,t,i){"use strict";var a=i("29d8");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(a)},"795c":function(e,t,i){"use strict";var a=i("8bdb"),n=i("db04").start,s=i("73e1");a({target:"String",proto:!0,forced:s},{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},"7ca9":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("473f"),i("bf0f"),i("795c"),i("aa9c"),i("c223"),i("fd3c");var n=a(i("39d8")),s=i("a9e5"),r=i("1fe3"),o=i("e0a2"),d=i("a69d"),c=a(i("e9ee")),l=a(i("34cae")),u=a(i("8c27")),f=a(i("dc1f")),p={components:{AddressSelectModal:c.default,PaySelectModal:l.default,loading:u.default},mixins:[f.default],data:function(){var e;return e={timeIndex:0,timeList:[],remark:"",petName:"",knot:!1,flea:!1,skins:!1,bite:!1,icon:[o.staticUrl+"api/images/20250623/images_1750663439.png",o.staticUrl+"api/images/20250815/images_175522804782468.png"],passport:"",name:"",currentOrderId:0,showPaySelectModal:!1,BASE_URL:o.BASE_URL,bg:o.BASE_URL+"uploads/images/202504111126153f4340075.png",wx:o.BASE_URL+"uploads/images/20250411114054d264c5519.png",selectedPayment:"",choose:"https://www.damalife.com/uploads/images/1/2025/04/20250428192339efc9d3627.png",unChoose:"https://www.damalife.com/uploads/images/1/2025/04/20250428192412831636865.png",zhifubao:o.BASE_URL+"uploads/images/1/2025/04/202504140929339983f4586.png"},(0,n.default)(e,"passport",""),(0,n.default)(e,"name",""),(0,n.default)(e,"product_img",""),(0,n.default)(e,"sale_price",""),(0,n.default)(e,"showChooseSendAddressModal",!1),(0,n.default)(e,"addressList",[]),(0,n.default)(e,"showChooseAddressModal",!1),(0,n.default)(e,"currentSelectAddressId",""),(0,n.default)(e,"isSubmit",!1),(0,n.default)(e,"deliveryInfo",{delivery:{address:"",username:"",mobile:"",deliveryTime:""},inStore:{mobile:"",deliveryTime:""},pinfan:{time:"",spellrice_time:""},sendAddress:{address:"",username:"",mobile:"",deliveryTime:""}}),(0,n.default)(e,"payTypeList",[]),(0,n.default)(e,"payType",""),(0,n.default)(e,"loadings",!1),(0,n.default)(e,"root_visa_type",""),(0,n.default)(e,"isPay",!1),(0,n.default)(e,"navbarBgColor","transparent"),(0,n.default)(e,"product_name",""),(0,n.default)(e,"tax",""),(0,n.default)(e,"country",""),(0,n.default)(e,"cardName",""),(0,n.default)(e,"order",""),(0,n.default)(e,"price",0),(0,n.default)(e,"currency",""),(0,n.default)(e,"time",""),(0,n.default)(e,"isTngBack",""),(0,n.default)(e,"orderSn",""),e},onShow:function(){"TngBack"===this.isTngBack&&(this.isTngBack="",uni.redirectTo({url:"/guide/order/index?order_sn=".concat(this.orderSn)}))},onLoad:function(e){if(e.data){var t,i,a,n,s,r,o=JSON.parse(decodeURIComponent(e.data));this.order=o,o.start&&o.end&&(this.timeList=this.generateHalfHourSlots(o.start,o.end),console.log("this.order",this.timeList)),this.product_name=null!==(t=null===o||void 0===o?void 0:o.product_name)&&void 0!==t?t:"",this.product_img=null!==(i=null===o||void 0===o?void 0:o.product_img)&&void 0!==i?i:"",this.price=null!==(a=null===o||void 0===o?void 0:o.price)&&void 0!==a?a:0,this.currency=null!==(n=null===o||void 0===o?void 0:o.currency)&&void 0!==n?n:"",this.cardName=null!==(s=null===o||void 0===o?void 0:o.cardName)&&void 0!==s?s:"",this.country=null!==(r=null===o||void 0===o?void 0:o.region)&&void 0!==r?r:"",(o.id||0===o.id||"0"===o.id)&&(this.product_id=o.id)}this.getPayType()},onPageScroll:function(e){e.scrollTop>30?this.navbarBgColor="#fff":this.navbarBgColor="transparent"},methods:{generateHalfHourSlots:function(e,t){var i=function(e){return e.split(":").reduce((function(e,t){return 60*e+ +t}))},a=i(e),n=i(t),s=[];while(a<=n){var r=String(Math.floor(a/60)).padStart(2,"0"),o=String(a%60).padStart(2,"0");s.push("".concat(r,":").concat(o)),a+=30}return s},bindTimeChange:function(e){this.timeIndex=e.detail.value,this.time=this.timeList[this.timeIndex]},success:function(e){this.isTngBack=e,this.$refs.paymentPopup.close(),"TngBack"!==this.isTngBack&&uni.redirectTo({url:"/guide/order/index?order_sn=".concat(e)})},open:function(){return""===this.currentSelectAddressId?(uni.showModal({title:"提示",content:"请选择地址",showCancel:!1}),!1):""===this.time?(uni.showModal({title:"提示",content:"请选择出发时间",showCancel:!1}),!1):void this.$refs.paymentPopup.open()},submitAndPay:function(e){var t=this;if(this.loadings)return!1;this.loadings=!0,this.loadingShow=!0,(0,r.submitAndPayApi)({pid:this.order.pid,pay_id:e,scene_id:this.getEnvironmentCode(),package_id:this.order.package_id,user_address_id:this.currentSelectAddressId,dep_time:this.time,dep_date:this.order.day}).then((function(e){var i;t.orderSn=null!==(i=null===e||void 0===e?void 0:e.order_sn)&&void 0!==i?i:"",t.$refs.paymentPopup.payAction(e)})).catch((function(e){console.error("[order-list]获取订单列表数据失败",e),uni.showModal({title:"提示",content:e.msg,showCancel:!1})})).finally((function(){t.loadings=!1,t.loadingShow=!1}))},getPayType:function(){var e=this;(0,s.getPayType)({order_type:"local_guide",scene_id:this.getEnvironmentCode()}).then((function(t){e.isLogin=!0,e.payTypeList=t||[]})).catch((function(t){e.payTypeList=[],"请重新登录"==t.msg?e.isLogin=!1:uni.showModal({title:"提示",content:t.msg||"支付类型获取失败",callback:function(){navBack()}})}))},handleAddressClickEvent:function(e){console.log("handleAddressClickEvent","handleAddressClickEvent");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},getAddressList:function(){var e=this;this.isSubmit||(0,d.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}})))})).catch((function(t){e.addressList=[],"请重新登录"==t.msg?e.isLogin=!1:uni.showModal({title:"提示",content:t.msg||"获取地址信息失败",callback:function(){navBack()}})}))},selectAddress:function(){this.getAddressList(),this.showChooseAddressModal=!0},addEditAddressEvent:function(){this.currentSelectAddressId="",this.showChooseAddressModal=!1},selectPayment:function(e){this.selectedPayment=e},payOrder:function(e){var t=this;this.currentOrderId=e,this.$nextTick((function(){setTimeout((function(){t.showPaySelectModal=!0}),150)}))},successPayEvent:function(){this.showPaySelectModal=!1,this.$emit("refresh-data")},failPayEvent:function(){this.showPaySelectModal=!1},cancelPayEvent:function(){}}};t.default=p},"89e5":function(e,t,i){"use strict";i.r(t);var a=i("0d0e"),n=i("0c54");for(var s in n)["default"].indexOf(s)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(s);i("722d");var r=i("828b"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"f0876004",null,!1,a["a"],void 0);t["default"]=o.exports},"90c9":function(e,t,i){var a=i("6cfc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("42624302",a,!0,{sourceMap:!1,shadowMode:!1})},a85c:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,".money[data-v-f0876004]{font-family:Source Han Sans CN;font-weight:700;font-size:%?64?%;color:#333;line-height:%?42?%}.order-btn[data-v-f0876004]{background:#ffca28;color:#fff;font-size:%?32?%;border-radius:%?12?%;padding:0 %?40?%}.payment-choose-icon[data-v-f0876004]{width:%?44?%;height:%?44?%}.payment-section[data-v-f0876004]{background:#fff;padding:%?24?% %?30?%;margin-bottom:%?20?%}.payment-method[data-v-f0876004]{display:flex;align-items:center;margin-bottom:%?10?%}.payment-icon[data-v-f0876004]{width:%?48?%;height:%?48?%;margin-right:%?17?%}.payment-text[data-v-f0876004]{flex:1;font-family:Source Han Sans CN;font-weight:500;font-size:%?30?%;color:#333;line-height:%?42?%}",""]),e.exports=t},a9e5:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndPay=t.projectList=t.getSPDetail=t.getPayType=t.getCatOrderListApi=t.getCatOrderDetailApi=t.cancelCatOrderApi=void 0;var n=a(i("7653"));t.getSPDetail=function(e){return n.default.post("api/user.product.washPet/detail",e)};t.getPayType=function(e){return n.default.post("api/user.dict.pay/list",e)};t.submitAndPay=function(e){return n.default.post("api/user.order.washPet/submitAndPay",e)};t.projectList=function(e){return n.default.post("api/user.product.washPet/list",e)};t.getCatOrderListApi=function(e){return n.default.post("api/user.order.washPet/list",e)};t.getCatOrderDetailApi=function(e){return n.default.post("api/user.order.washPet/detail",e)};t.cancelCatOrderApi=function(e){return n.default.post("api/user.order.washPet/cancel",e)}},db04:function(e,t,i){"use strict";var a=i("bb80"),n=i("c435"),s=i("9e70"),r=i("f298"),o=i("862c"),d=a(r),c=a("".slice),l=Math.ceil,u=function(e){return function(t,i,a){var r,u,f=s(o(t)),p=n(i),g=f.length,v=void 0===a?" ":s(a);return p<=g||""===v?f:(r=p-g,u=d(v,l(r/v.length)),u.length>r&&(u=c(u,0,r)),e?f+u:u+f)}};e.exports={start:u(!1),end:u(!0)}},f298:function(e,t,i){"use strict";var a=i("497b"),n=i("9e70"),s=i("862c"),r=RangeError;e.exports=function(e){var t=n(s(this)),i="",o=a(e);if(o<0||o===1/0)throw new r("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(i+=t);return i}},f685:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return a}));var a={comPay:i("89e5").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"订单填写",navbarBgColor:"#FFCA28","wrapper-bg-color":"#F3F2F7"}},[i("v-uni-view",{staticClass:"pay-container"},[i("v-uni-view",{},[e.deliveryInfo.delivery.address?i("v-uni-view",{staticClass:"form-section",staticStyle:{padding:"25rpx 20rpx"}},[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",{},[i("v-uni-image",{staticStyle:{width:"65rpx",height:"79rpx","margin-top":"6rpx"},attrs:{src:e.icon[0],mode:""}})],1),i("v-uni-view",{staticClass:"info ml10"},[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)+"\n\t\t\t\t\t\t\t"+e._s(e.deliveryInfo.delivery.mobile))])],1)],1)],1):i("v-uni-view",{staticClass:"form-section",staticStyle:{padding:"10rpx 20rpx"}},[i("v-uni-view",{staticClass:"address-info flex space alcenter",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.selectAddress.apply(void 0,arguments)}}},[i("v-uni-view",{},[i("v-uni-image",{staticStyle:{width:"65rpx",height:"79rpx","margin-top":"6rpx"},attrs:{src:e.icon[0],mode:""}})],1),i("v-uni-view",{staticClass:"ft15 ftw500",staticStyle:{color:"#B3B3B3"}},[e._v("请选择地址")])],1)],1)],1),i("v-uni-view",{staticClass:"bg"}),i("v-uni-view",{staticClass:"form-section"},[i("v-uni-view",{staticClass:"order-info flex space"},[i("v-uni-view",{staticClass:"flex"},[i("v-uni-image",{staticClass:"order-image",attrs:{src:e.product_img,mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"order-details"},[i("v-uni-text",{staticClass:"order-title"},[e._v(e._s(e.product_name||"-"))]),i("v-uni-view",{staticClass:"ft12 ftw500",staticStyle:{"margin-top":"16rpx",color:"#A4A4A4"}},[i("v-uni-text",[e._v(e._s(e.order.day+" (当地时间)"))])],1),i("v-uni-view",{staticClass:"ft12 ftw500",staticStyle:{"margin-top":"16rpx",color:"#A4A4A4"}},[i("v-uni-text",[e._v(e._s(e.cardName))])],1)],1)],1),i("v-uni-view",{staticClass:"order-price ml10",staticStyle:{"margin-top":"0"}},[i("span",{staticClass:"price-icon"},[e._v(e._s(e.currency))]),e._v(e._s(e.price||"0"))])],1),i("v-uni-view",{staticClass:"line"}),i("v-uni-view",{staticClass:"ft16"},[i("v-uni-view",{},[i("v-uni-picker",{attrs:{value:e.timeIndex,range:e.timeList},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindTimeChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"flex space alcenter"},[i("v-uni-view",{staticClass:"ft15 ftw500"},[e._v("选择出发时间")]),e.time?i("v-uni-view",{staticClass:"form-label"},[e._v(e._s(e.time))]):i("v-uni-view",{staticClass:"flex alcenter"},[i("v-uni-view",{staticClass:"ftw500",staticStyle:{color:"#B3B3B3","font-size":"30rpx"}},[e._v("出发时间最晚13点")]),i("v-uni-image",{staticStyle:{width:"14rpx",height:"26rpx","margin-left":"10rpx","margin-top":"4rpx"},attrs:{src:e.icon[1],mode:""}})],1)],1)],1)],1)],1)],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("com-pay",{ref:"paymentPopup",attrs:{payTypeList:e.payTypeList,money:e.price||0,currency:e.currency},on:{submitAndPay:function(t){arguments[0]=t=e.$handleEvent(t),e.submitAndPay.apply(void 0,arguments)},success:function(t){arguments[0]=t=e.$handleEvent(t),e.success.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"action-bar"},[i("v-uni-view",{staticClass:"total"},[i("v-uni-view",{staticClass:"flex alend"},[i("v-uni-text",{staticClass:"total-text"},[e._v("订单总额:")]),i("v-uni-view",{staticClass:"order-price"},[i("span",{staticClass:"price-icon"},[e._v(e._s(e.currency))]),e._v(e._s(e.price||"0"))])],1)],1),i("v-uni-view",{staticClass:"order-btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[e._v("立即支付")])],1),i("pay-select-modal",{attrs:{"order-id":e.currentOrderId,"order-type":"takeout"},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.showPaySelectModal,callback:function(t){e.showPaySelectModal=t},expression:"showPaySelectModal"}})],1)],1)},s=[]}}]);
|