Files
PropertyDeployment/resources/Web/WechatOwnerService/html/static/js/pages-appointment-appointmentPay.e8a225be.js
Anfioo 4323fcc34a version9
5
2026-01-14 15:09:03 +08:00

1 line
40 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-appointment-appointmentPay"],{"0323":function(e,t,o){var a=o("0f5a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=o("967d").default;n("b7471630",a,!0,{sourceMap:!1,shadowMode:!1})},"0f5a":function(e,t,o){var a=o("c86c");t=a(!1),t.push([e.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* 弹窗容器 */.payment-popup[data-v-a8cb65fe]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:300px;background-color:#fff;box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:12px;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);padding:20px;z-index:1000}\r\n/* 弹窗头部 */.popup-header[data-v-a8cb65fe]{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px}\r\n/* 弹窗标题 */.popup-title[data-v-a8cb65fe]{font-family:SF Pro Display,sans-serif;font-weight:600;font-size:16px;color:#081b37}\r\n/* 关闭按钮 */.popup-close[data-v-a8cb65fe]{font-size:24px;color:#535362;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700}\r\n/* 支付选项列表容器 */.payment-options[data-v-a8cb65fe]{display:flex;flex-direction:column;gap:8px;overflow-y:auto;width:100%;max-height:200px}\r\n/* 单个支付选项样式 */.payment-method[data-v-a8cb65fe]{display:flex;flex-direction:row;align-items:center;padding:10px;gap:10px;background:#fff;box-shadow:0 1px 4px rgba(183,190,203,.36);border-radius:8px;cursor:pointer;width:100%;box-sizing:border-box;transition:all .2s ease}\r\n/* 禁用状态样式 */.payment-method.disabled[data-v-a8cb65fe]{cursor:not-allowed;opacity:.7}\r\n/* 支付图标容器 */.payment-icon-wrapper[data-v-a8cb65fe]{width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\r\n/* 支付图标样式 */.payment-icon[data-v-a8cb65fe]{width:30px;height:30px;transition:opacity .2s ease}\r\n/* 文字标签区域 */.payment-label-wrapper[data-v-a8cb65fe]{display:flex;flex-direction:column;width:175px}\r\n/* 主标签样式 */.payment-main-label[data-v-a8cb65fe]{font-size:12px;font-weight:600;margin-bottom:2px;transition:color .2s ease}\r\n/* 子标签/描述样式 */.payment-sub-label[data-v-a8cb65fe]{font-size:11px;transition:color .2s ease}\r\n/* 右侧箭头容器 */.payment-action-wrapper[data-v-a8cb65fe]{position:relative;width:20px;height:20px;transition:opacity .2s ease}\r\n/* 箭头背景 */.arrow-bg[data-v-a8cb65fe]{position:absolute;left:0;right:0;top:0;bottom:0;border-radius:3.2px;transition:background-color .2s ease}\r\n/* 箭头图标 */.arrow-icon[data-v-a8cb65fe]{position:absolute;left:16%;top:22%;width:10px;height:10px;border-top:1.6px solid #535362;border-right:1.6px solid #535362;-webkit-transform:rotate(45deg);transform:rotate(45deg);transition:border-color .2s ease}\r\n/* 选中结果样式 */.selected-result[data-v-a8cb65fe]{margin-top:20px;font-size:14px;color:#333;text-align:center}",""]),e.exports=t},"1fde":function(e,t,o){"use strict";o.r(t);var a=o("d398"),n=o("9307");for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("bcc6");var s=o("828b"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"d2e1d348",null,!1,a["a"],void 0);t["default"]=l.exports},2457:function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",[o("v-uni-scroll-view",{attrs:{"scroll-y":!0}},[o("v-uni-view",{staticClass:"block__title"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.订单信息")))]),o("v-uni-form",[o("v-uni-view",{staticClass:"cu-list menu"},[o("v-uni-view",{staticClass:"cu-item"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-b"},[e._v(e._s(e.bookparams.cgName))])],1)],1),o("v-uni-view",{staticClass:"cu-item"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-grey"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.预约日期")))])],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(e._s(e.bookparams.bookDate))])],1)],1)],1),"half"===e.courtTypeControl||"both"===e.courtTypeControl?o("v-uni-view",{staticClass:"block__title"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.场地类型")))]):e._e(),"half"===e.courtTypeControl||"both"===e.courtTypeControl?o("v-uni-view",{staticClass:"cu-list menu"},[o("v-uni-view",{staticClass:"cu-item arrow"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-grey"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.选择场地类型")))])],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-picker",{attrs:{value:e.courtTypeIndex,range:e.courtTypeOptions},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.onCourtTypeChange.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"picker"},[e._v(" "+e._s(e.courtTypeOptions[e.courtTypeIndex])+" ")])],1)],1)],1)],1):e._e(),o("v-uni-view",{staticClass:"block__title"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.场地信息")))]),e._l(this.bookList,(function(t,a){return o("v-uni-view",{key:a,staticClass:"cu-list menu"},[o("v-uni-view",{staticClass:"cu-item"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-grey"},[e._v(e._s(t.changdiName))])],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(e._s(e.HoursStr(t.hours)))])],1)],1),"half"===e.courtTypeControl||"both"===e.courtTypeControl?o("v-uni-view",{staticClass:"cu-item"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-grey"},[e._v("价格")])],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(" "+e._s("1001"===e.ruleType?"全场":"半场")+": ¥"+e._s("1001"===e.ruleType?t.fullPrice||"0.00":t.halfPrice||"0.00")+" "),"1001"===e.ruleType&&t.fullPriceRuleName?o("v-uni-text",{staticClass:"text-grey text-xs"},[e._v("("+e._s(t.fullPriceRuleName)+")")]):e._e(),"2002"===e.ruleType&&t.halfPriceRuleName?o("v-uni-text",{staticClass:"text-grey text-xs"},[e._v("("+e._s(t.halfPriceRuleName)+")")]):e._e()],1)],1)],1):e._e()],1)}))],2),o("v-uni-view",{staticClass:"block__title"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.支付方式")))]),o("v-uni-view",{staticClass:"cu-list menu"},[o("v-uni-view",{staticClass:"cu-item arrow"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-text",{staticClass:"text-grey"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.支付方式")))])],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-picker",{attrs:{value:e.pickerIndex,range:e.paymentMethods.map((function(e){return e.label}))},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.onPaymentChange.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"picker flex align-center"},[o("v-uni-image",{staticClass:"icon-img",attrs:{src:e.paymentMethods[e.pickerIndex].icon}}),o("v-uni-text",{staticClass:"ml-2"},[e._v(e._s(e.paymentMethods[e.pickerIndex].label))])],1)],1)],1)],1)],1)],1),o("v-uni-view",{staticClass:"bg-white border flex cu-form-group",staticStyle:{position:"fixed",width:"100%",bottom:"0"}},[o("v-uni-view",{staticClass:"title"},[e._v(e._s(e.$t("pages.appointment.appointmentPay.总计:"))+" "),o("v-uni-text",{staticClass:"solid-bottom text-xxl text-price text-red"},[e._v(e._s(e.totalMoney))])],1),o("v-uni-view",{staticClass:"btn-group"},[o("v-uni-button",{staticClass:"cu-btn round bg-blue",staticStyle:{"background-color":"#1cbbb4"},attrs:{disabled:this.btnDisabled},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPayFee()}}},[e._v(e._s(e.$t("pages.appointment.appointmentPay.提交订单"))+" ")])],1)],1),o("cashierAbaOptions",{attrs:{showPaymentOptions:e.showPaymentOptions,selectedAbaOption:e.selectedAbaOption},on:{"update:showPaymentOptions":function(t){arguments[0]=t=e.$handleEvent(t),e.handleShowPaymentOptions.apply(void 0,arguments)},"update:selectedAbaOption":function(t){arguments[0]=t=e.$handleEvent(t),e.handleSelectedAbaOption.apply(void 0,arguments)}}})],1)},n=[]},"24c2":function(e,t,o){var a=o("c86c");t=a(!1),t.push([e.i,".ppf_item[data-v-016f8bc3]{padding:%?0?% %?0?% %?0?% %?0?%}.block__title[data-v-016f8bc3]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.button_up_blank[data-v-016f8bc3]{height:%?40?%}.block__bottom[data-v-016f8bc3]{height:%?180?%}.fee-last[data-v-016f8bc3]{margin-bottom:%?200?%}.cu-btn.lgplus[data-v-016f8bc3]{padding:0 20px;font-size:18px;height:%?100?%}.cu-btn.sharp[data-v-016f8bc3]{border-radius:%?0?%}.line-height[data-v-016f8bc3]{line-height:%?100?%}.icon-img[data-v-016f8bc3]{width:%?48?%;height:%?48?%;border-radius:%?8?%;background-color:#f5f5f5;padding:%?6?%}.picker[data-v-016f8bc3]{display:flex;align-items:center}.ml-2[data-v-016f8bc3]{margin-left:%?12?%;font-size:%?28?%;color:#333}",""]),e.exports=t},2803:function(e,t,o){"use strict";o.r(t);var a=o("2457"),n=o("592b");for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("e788");var s=o("828b"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"016f8bc3",null,!1,a["a"],void 0);t["default"]=l.exports},"374b":function(e,t,o){"use strict";o("6a54");var a=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getBetweenTime=function(e,t){var o=+e.split(":")[0],a=+t.split(":")[0],n=[];while(o<=a){var i=o>=10?"".concat(o,":00"):"0".concat(o,":00");n.push(i),o+=1}return n},t.getBookingList=function(e){return new Promise((function(t,o){(0,n.requestNoAuth)({url:i.default.querySpacePerson,method:"GET",data:e,success:function(e){if(200!=e.statusCode)o();else{var a=e.data;t(a)}},fail:function(e){o(e)}})}))},t.getChangGuan=function(e){return new Promise((function(t,o){(0,n.requestNoAuth)({url:i.default.queryChangGuan,method:"GET",data:e,success:function(e){if(200!=e.statusCode);else{var o=e.data;t(o)}},fail:function(e){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},t.getChangdi=function(e){return new Promise((function(t,o){(0,n.requestNoAuth)({url:i.default.queryChangDi,method:"GET",data:e,success:function(e){if(200!=e.statusCode)o();else{var a=e.data;t(a)}},fail:function(e){o(e)}})}))},t.getCommunitySpacePriceRule=function(e){return new Promise((function(t,o){(0,n.requestNoAuth)({url:i.default.queryCommunitySpacePriceRule,method:"GET",data:e,success:function(e){if(200!=e.statusCode);else{var o=e.data;t(o)}},fail:function(e){wx.showToast({title:"查询价格规则失败",icon:"none",duration:2e3})}})}))},t.getCommunitySpacePriceRules=function(e){return new Promise((function(t,o){(0,n.requestNoAuth)({url:i.default.queryCommunitySpacePriceRules,method:"GET",data:e,success:function(e){if(200!=e.statusCode);else{var o=e.data;t(o)}},fail:function(e){wx.showToast({title:"批量查询价格规则失败",icon:"none",duration:2e3})}})}))},o("aa9c"),o("bf0f");var n=o("a7bc"),i=a(o("79d4"));a(o("d5d0")),a(o("bce4"))},"469d":function(e,t,o){"use strict";o("6a54");var a=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(o("2634")),i=a(o("2fdc"));o("bf0f"),o("2797"),o("c223"),o("64aa"),o("e838"),o("aa77"),o("4626"),o("5ac7"),o("8f71"),o("fd3c"),o("aa9c"),o("d4b5"),o("5c47"),o("2c10"),o("9db6");var s=a(o("d5d0")),l=o("1c9a"),r=o("b9a1"),c=o("374b"),u=a(o("79d4")),p=a(o("4a5f")),d=a(o("1fde")),f=(o("fcd3"),a(o("eb04"))),h=(o("a6b0"),s.default.constant),m=(o("14e5"),{components:{CashierAbaOptions:f.default,vcDiscount:p.default,vcUserAccount:d.default},data:function(){return{selectedAbaOption:"abapay_khqr",showPaymentOptions:!1,aba_pay_data:null,bookparams:[],bookList:[],switchA:!1,totalMoney:0,canPay:"f",ownerInfo:[],link:"",appUserName:"",btnDisabled:!1,timeOrder:void 0,communityId:"",ruleType:"1001",courtTypeControl:"both",courtTypeIndex:0,courtTypeOptions:["全场","半场"],showPriceComparison:!0,fullPriceTotal:0,halfPriceTotal:0,priceRules:[],paymentOption:"aba_pay",paymentMethods:[{value:"aba_pay",label:this.$t("pages.appointment.appointmentPay.ABA支付"),icon:"/static/pay_images/abapay_khqr.png"},{value:"alipay",label:this.$t("pages.appointment.appointmentPay.支付宝"),icon:"/static/pay_images/alipay.png"},{value:"wechat",label:this.$t("pages.appointment.appointmentPay.微信支付"),icon:"/static/pay_images/wechat.png"},{value:"google_pay",label:"Google Pay",icon:"/static/pay_images/google_pay.png"},{value:"cards",label:this.$t("pages.appointment.appointmentPay.银行卡支付"),icon:"/static/pay_images/cards.png"}],pickerIndex:0}},onLoad:function(e){console.log("=== appointmentPay页面加载参数 ==="),console.log("原始options:",e),this.loadOwenrInfo(),s.default.onLoad(e),this.appId=uni.getStorageSync(h.mapping.W_APP_ID);var t=JSON.parse(e.fee);this.bookparams=t,this.bookList=JSON.parse(t.bookList),e.courtTypeControl?(this.courtTypeControl=e.courtTypeControl,console.log("从URL参数获取到场地类型控制策略:",this.courtTypeControl)):t.courtTypeControl?(this.courtTypeControl=t.courtTypeControl,console.log("从fee参数获取到场地类型控制策略:",this.courtTypeControl)):(console.log("未获取到场地类型控制策略,使用默认值"),this.courtTypeControl="both"),"full"===this.courtTypeControl?(this.ruleType="1001",this.courtTypeIndex=0,console.log("场地类型控制策略为full设置为全场courtTypeControl:",this.courtTypeControl)):(this.ruleType="1001",this.courtTypeIndex=0,console.log("场地类型控制策略为",this.courtTypeControl,",使用默认值全场")),this.communityId=(0,l.getCommunityId)(),console.log("预约支付页面加载参数:",{bookparams:this.bookparams,bookList:this.bookList,communityId:this.communityId,courtTypeControl:this.courtTypeControl}),this.bookparams.data&&this.bookparams.data.priceRules&&(this.priceRules=this.bookparams.data.priceRules,console.log("获取到价格规则数据:",this.priceRules)),this.calculateAllPrices(),this.fetchPricesFromAPI(),console.log("=== 检查所有场地的规则名称 ==="),this.bookList.forEach((function(e,t){console.log("场地 ".concat(t+1," - ").concat(e.changdiName,":"),{fullPriceRuleName:e.fullPriceRuleName||"未设置",halfPriceRuleName:e.halfPriceRuleName||"未设置"})})),Number(this.totalMoney).toFixed(2)==Number(this.bookparams.totalMoney).toFixed(2)&&(this.canPay="t")},onShow:function(){},methods:{onCourtTypeChange:function(e){var t=e.detail.value;console.log("=== 场地类型切换 ==="),console.log("切换前 - courtTypeIndex:",this.courtTypeIndex,"ruleType:",this.ruleType),this.courtTypeIndex=t,0===t?this.ruleType="1001":1===t&&(this.ruleType="2002"),console.log("切换后 - courtTypeIndex:",this.courtTypeIndex,"ruleType:",this.ruleType),this.calculateAllPrices()},togglePaymentOptions:function(){this.showPaymentOptions=!this.showPaymentOptions},handleShowPaymentOptions:function(e){console.log("弹窗显示状态变化为:",e),this.showPaymentOptions=e,this.btnDisabled=!1!==e},handleSelectedAbaOption:function(e){console.log("选中的支付方式:",e),this.selectedAbaOption=e,this.processPaymentSelection(e)},processPaymentSelection:function(e){console.log("处理支付方式:",e),this.orderPay(e)},calculateAllPrices:function(){if(console.log("=== 开始统一计算所有价格 ==="),this.bookList&&Array.isArray(this.bookList)){this.bookList.forEach((function(e,t){if((!e.fullPrice||"0"===e.fullPrice)&&(!e.halfPrice||"0"===e.halfPrice)&&e.cdMoney){var o=parseFloat(e.cdMoney);e.fullPrice=o.toFixed(2),e.halfPrice=(o/2).toFixed(2),console.log("为时间段 ".concat(t+1," 设置价格:"),{changdiName:e.changdiName,fullPrice:e.fullPrice,halfPrice:e.halfPrice,cdMoney:e.cdMoney})}}));var e=this.bookList.length;console.log("场地总数:",e);var t=0,o=0;e>0&&(t=parseFloat(this.bookList[0].fullPrice||"0"),o=parseFloat(this.bookList[0].halfPrice||"0"));var a=0,n=0,i=0;"1001"===this.ruleType?(a=t*e,n=a):(a=o*e,i=a),this.totalMoney=a.toFixed(2),this.fullPriceTotal=n.toFixed(2),this.halfPriceTotal=i.toFixed(2),console.log("统一计算完成,总价:",this.totalMoney,"全场总价:",this.fullPriceTotal,"半场总价:",this.halfPriceTotal),console.log("计算方式: 基准价格 × 场地数量",{"基准全场价格":t.toFixed(2),"基准半场价格":o.toFixed(2),"场地数量":e,"当前规则类型":"1001"===this.ruleType?"全场":"半场"})}else console.log("❌ bookList不存在或不是数组")},fetchPricesFromAPI:function(){var e=this;return(0,i.default)((0,n.default)().mark((function t(){var o,a,i,s,l,r,u,p;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,console.log("开始调用API获取价格信息..."),o={page:1,row:100,communityId:e.communityId,appointmentTime:e.bookparams.bookDate,venueId:e.bookparams.venueId},console.log("API请求参数:",o),t.next=6,(0,c.getChangdi)(o);case 6:a=t.sent,console.log("API响应:",a),a&&0===a.code&&a.data&&a.data.length>0?(i=new Date(e.bookparams.bookDate).getDay(),s=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"],l=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],r=s[i],u=l[i],console.log("当前日期: ".concat(e.bookparams.bookDate,", 星期").concat(i,", ").concat(u)),a.data.forEach((function(t){var o=e.bookList.find((function(e){return e.spaceId===t.spaceId}));if(!o&&t.name&&(o=e.bookList.find((function(e){return e.changdiName===t.name}))),!o&&t.cdId&&(o=e.bookList.find((function(e){return e.cdId===t.cdId}))),o&&t.priceRules&&t.priceRules.length>0){var a=0,n=0;console.log("场地 ".concat(t.name||t.spaceId," 的价格规则:"),t.priceRules);var s=t.priceRules.find((function(e){var t=e.ruleName||"";return(t.includes(r)||t.includes(u))&&("1001"===e.ruleType||t.includes("全场"))})),l=t.priceRules.find((function(e){var t=e.ruleName||"";return(t.includes(r)||t.includes(u))&&("2002"===e.ruleType||t.includes("半场"))})),c=t.priceRules.find((function(e){var t=e.ruleName||"";return t.includes("统一全场")||"1001"===e.ruleType&&!t.includes("星期")&&!t.includes(r)})),p=t.priceRules.find((function(e){var t=e.ruleName||"";return t.includes("统一半场")||"2002"===e.ruleType&&!t.includes("星期")&&!t.includes(r)}));if(console.log("匹配到的规则:",{dayFullRule:s,dayHalfRule:l,uniformFullRule:c,uniformHalfRule:p}),s)a=parseFloat(s.price)||0,n=l?parseFloat(l.price)||0:a/2,console.log("使用星期规则: ".concat(s.ruleName||""," 全场价格: ").concat(a));else if(c)a=parseFloat(c.price)||0,n=p?parseFloat(p.price)||0:a/2,console.log("使用统一规则: ".concat(c.ruleName||""," 全场价格: ").concat(a));else{var d=0===i||6===i;a=d?parseFloat(t.fullPriceWeekend)||0:parseFloat(t.fullPriceWeekday)||0,n=d?parseFloat(t.halfPriceWeekend)||0:parseFloat(t.halfPriceWeekday)||0,console.log("使用默认价格: 全场价格: ".concat(a,", 半场价格: ").concat(n))}o.fullPrice=a.toFixed(2),o.halfPrice=n.toFixed(2),o.cdMoney="1001"===e.ruleType?a.toFixed(2):n.toFixed(2),o.fullPriceRuleName=s?s.ruleName:c?c.ruleName:"默认全场价格",o.halfPriceRuleName=l?l.ruleName:p?p.ruleName:"默认半场价格",console.log("更新场地 ".concat(o.changdiName," 价格信息:"),{spaceId:t.spaceId,name:t.name,fullPrice:o.fullPrice,halfPrice:o.halfPrice,currentPrice:o.cdMoney,fullPriceRuleName:o.fullPriceRuleName,halfPriceRuleName:o.halfPriceRuleName}),console.log("=== 场地 ".concat(o.changdiName," 规则名称设置完成 ===")),console.log("fullPriceRuleName:",o.fullPriceRuleName),console.log("halfPriceRuleName:",o.halfPriceRuleName)}else if(o&&(console.warn("场地 ".concat(o.changdiName," 没有找到价格规则")),void 0!==o.cdMoney&&null!==o.cdMoney)){var f=parseFloat(o.cdMoney);o.fullPrice||o.halfPrice?(console.log("场地 ".concat(o.changdiName," 已有价格信息,跳过计算:"),{fullPrice:o.fullPrice,halfPrice:o.halfPrice,cdMoney:o.cdMoney}),"1001"===e.ruleType?o.cdMoney=o.fullPrice||0:o.cdMoney=o.halfPrice||0):(o.fullPrice=f.toFixed(2),o.halfPrice=(f/2).toFixed(2),o.fullPriceRuleName="基于cdMoney计算的全场价格",o.halfPriceRuleName="基于cdMoney计算的半场价格",console.log("根据cdMoney计算场地 ".concat(o.changdiName," 价格:"),{fullPrice:o.fullPrice,halfPrice:o.halfPrice,cdMoney:o.cdMoney}))}})),p=e.bookList.filter((function(e){return!e.fullPrice&&!e.halfPrice})),p.length>0&&(console.warn("有 ".concat(p.length," 个场地未匹配到价格信息:"),p.map((function(e){return e.changdiName}))),p.forEach((function(e){if(void 0!==e.cdMoney&&null!==e.cdMoney){var t=parseFloat(e.cdMoney);e.fullPrice=t.toFixed(2),e.halfPrice=(t/2).toFixed(2),e.fullPriceRuleName="基于cdMoney计算的全场价格",e.halfPriceRuleName="基于cdMoney计算的半场价格",console.log("为未匹配场地 ".concat(e.changdiName," 设置价格:"),{fullPrice:e.fullPrice,halfPrice:e.halfPrice,cdMoney:e.cdMoney,fullPriceRuleName:e.fullPriceRuleName,halfPriceRuleName:e.halfPriceRuleName})}}))),console.log("=== 所有场地的最终价格信息 ==="),e.bookList.forEach((function(t){console.log("场地: ".concat(t.changdiName),{"全场价格":t.fullPrice,"半场价格":t.halfPrice,"当前选择价格":t.cdMoney,"规则类型":"1001"===e.ruleType?"全场":"半场","全场价格规则":t.fullPriceRuleName||"未设置","半场价格规则":t.halfPriceRuleName||"未设置"})})),e.calculateAllPrices(),console.log("价格信息更新完成")):console.warn("API响应中没有找到有效的价格信息"),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),console.error("调用API获取价格信息失败:",t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))()},onPaymentChange:function(e){this.pickerIndex=e.detail.value,this.paymentOption=this.paymentMethods[this.pickerIndex].value},loadOwenrInfo:function(){var e=this;s.default.getOwner((function(t){console.log("用户信息"),console.log(t),e.ownerInfo=t}))},SwitchA:function(e){this.switchA=e.detail.value},HoursStr:function(e){var t=e+":00-"+(Number(e)+1)+":00";return t},onFeeMonthChange:function(e){console.log("选择包月套餐:",e),this.feeMonthIndex=e.detail.value,this.feeMonth=this.feeMonths[this.feeMonthIndex],this.calculateAllPrices()},onFeeMonthCancel:function(e){this.showFeeMonth=!1},_payWxApp:function(e){console.log("=== APP端开始处理支付费用 ==="),console.log("当前场地数量:",this.bookList.length),console.log("当前选择的场地类型:","1001"===this.ruleType?"全场":"半场");var t=this;if(this.calculateAllPrices(),console.log("统一价格计算完成,当前总价:",this.totalMoney),parseFloat(this.totalMoney)>0){wx.showLoading({title:t.$t("pages.appointment.appointmentPay.支付中")});for(var o=[],a=0;a<this.bookList.length;a++){var n=this.bookList[a].hours,i=this.bookList[a].spaceId,c=[],p=!1,d=parseFloat(this.bookList[a].fullPrice||"0"),f=parseFloat(this.bookList[a].halfPrice||"0"),h=0;h="1001"===this.ruleType?d:f,console.log("处理场地 ".concat(this.bookList[a].changdiName," 时间段 ").concat(n,":"),{fullPrice:d.toFixed(2),halfPrice:f.toFixed(2),finalPrice:h.toFixed(2),ruleType:this.ruleType,"时间段":this.HoursStr(n),"全场价格规则":this.bookList[a].fullPriceRuleName||"未设置","半场价格规则":this.bookList[a].halfPriceRuleName||"未设置"});for(var m=0;m<o.length;m++)if(i==o[m].spaceId){c=o[m].openTimes,p=!0;break}if(c.push({hours:n}),p){for(var y=0;y<o.length;y++)if(i==o[y].spaceId){o[y].openTimes=c,o[y].ruleType=this.ruleType,o[y].price=h.toFixed(2);var v="1001"===this.ruleType?this.bookList[a].fullPriceRuleName||"":this.bookList[a].halfPriceRuleName||"";console.log("更新场地 ".concat(this.bookList[a].changdiName," 获取规则名称:"),{ruleType:this.ruleType,fullPriceRuleName:this.bookList[a].fullPriceRuleName,halfPriceRuleName:this.bookList[a].halfPriceRuleName,"原始ruleName":v});var b=this.processRuleName(v);console.log('处理后的规则名称: "'.concat(b,'"')),o[y].ruleName=b;break}}else{var g="1001"===this.ruleType?this.bookList[a].fullPriceRuleName||"":this.bookList[a].halfPriceRuleName||"";console.log("场地 ".concat(this.bookList[a].changdiName," 获取规则名称:"),{ruleType:this.ruleType,fullPriceRuleName:this.bookList[a].fullPriceRuleName,halfPriceRuleName:this.bookList[a].halfPriceRuleName,"原始ruleName":g});var P=this.processRuleName(g);console.log('处理后的规则名称: "'.concat(P,'"')),o.push({spaceId:i,openTimes:c,ruleType:this.ruleType,price:h.toFixed(2),ruleName:P})}}var w={business:"venueReservation",tradeType:"APP",communityId:(0,l.getCommunityId)(),spaces:JSON.stringify(o),personName:(0,r.getUserName)(),personTel:(0,r.getUserTel)(),payWay:"4",paymentOption:this.paymentOption,rule_type:this.ruleType,ruleType:this.ruleType,courtTypeControl:this.courtTypeControl,state:"S",remark:"",appointmentTime:this.bookparams.bookDate,totalMoney:this.totalMoney,aba_pay_option:this.selectedAbaOption};console.log("APP端支付请求数据:",w),console.log("使用的ruleType:",this.ruleType),console.log("spaces数据:",JSON.stringify(o)),console.log("=== APP端处理后的ruleName ==="),o.forEach((function(e,t){console.log("场地 ".concat(t+1," - spaceId: ").concat(e.spaceId,", ruleName: ").concat(e.ruleName,", ruleType: ").concat(e.ruleType))})),s.default.request({url:u.default.unifiedPayment,header:s.default.getHeaders(),method:"POST",data:w,success:function(e){if(console.log("APP端支付接口返回状态码:",e.statusCode),console.log("APP端支付接口返回数据:",e.data),wx.hideLoading(),200===e.statusCode)if("0"===e.data.code){console.log("APP端支付成功准备调用支付"),t.saveOrderToLocalStorage(e.data);var o;e.data;o=JSON.stringify({}),uni.requestPayment({provider:"wxpay",orderInfo:o,success:function(e){uni.showToast({title:t.$t("pages.appointment.appointmentPay.支付成功"),duration:2e3}),uni.reLaunch({url:"../../pages/appointment/myBoomList",fail:function(e){console.log(e)}})},fail:function(e){console.log("APP端支付失败:"+JSON.stringify(e)),wx.showToast({title:t.$t("pages.appointment.appointmentPay.支付失败"),icon:"none",duration:2e3})}})}else"100"===e.data.code?(console.log("APP端直接支付成功"),uni.showToast({title:t.$t("pages.appointment.appointmentPay.支付成功"),duration:2e3}),setTimeout((function(){uni.reLaunch({url:"../../pages/appointment/myBoomList",fail:function(e){console.log(e)}})}),2e3)):(console.error("APP端支付接口返回错误:",e.data),wx.showToast({title:e.data.msg||t.$t("pages.appointment.appointmentPay.支付失败"),icon:"none",duration:2e3}));else console.error("APP端支付接口HTTP错误:",e.statusCode),wx.showToast({title:t.$t("pages.appointment.appointmentPay.服务器异常")+" (".concat(e.statusCode,")"),icon:"none",duration:2e3})},fail:function(e){wx.hideLoading(),console.error("APP端支付请求失败:",e),wx.showToast({title:t.$t("pages.appointment.appointmentPay.服务器异常了"),icon:"none",duration:2e3})}})}else wx.showLoading({title:t.$t("pages.appointment.appointmentPay.支付失败")}),setTimeout((function(){wx.hideLoading()}),2e3)},onPayFee:function(){console.log("=== 开始处理支付费用 ==="),console.log("当前场地数量:",this.bookList.length),console.log("当前选择的场地类型:","1001"===this.ruleType?"全场":"半场"),this.btnDisabled=!0;if(this.calculateAllPrices(),console.log("统一价格计算完成,当前总价:",this.totalMoney),parseFloat(this.totalMoney)>0){for(var e,t,o=[],a=0;a<this.bookList.length;a++){var n=this.bookList[a].hours,i=this.bookList[a].spaceId,s=[],c=!1,u=parseFloat(this.bookList[a].fullPrice||"0"),p=parseFloat(this.bookList[a].halfPrice||"0"),d=0;d="1001"===this.ruleType?u:p,console.log("处理场地 ".concat(this.bookList[a].changdiName," 时间段 ").concat(n,":"),{fullPrice:u.toFixed(2),halfPrice:p.toFixed(2),finalPrice:d.toFixed(2),ruleType:this.ruleType,"时间段":this.HoursStr(n),"全场价格规则":this.bookList[a].fullPriceRuleName||"未设置","半场价格规则":this.bookList[a].halfPriceRuleName||"未设置"});for(var f=0;f<o.length;f++)if(i==o[f].spaceId){s=o[f].openTimes,c=!0;break}if(s.push({hours:n}),c){for(var h=0;h<o.length;h++)if(i==o[h].spaceId){o[h].openTimes=s,o[h].ruleType=this.ruleType,o[h].price=d.toFixed(2);var m="1001"===this.ruleType?this.bookList[a].fullPriceRuleName||"":this.bookList[a].halfPriceRuleName||"";console.log("更新场地 ".concat(this.bookList[a].changdiName," 获取规则名称:"),{ruleType:this.ruleType,fullPriceRuleName:this.bookList[a].fullPriceRuleName,halfPriceRuleName:this.bookList[a].halfPriceRuleName,"原始ruleName":m});var y=this.processRuleName(m);console.log('处理后的规则名称: "'.concat(y,'"')),o[h].ruleName=y;break}}else{var v="1001"===this.ruleType?this.bookList[a].fullPriceRuleName||"":this.bookList[a].halfPriceRuleName||"";console.log("场地 ".concat(this.bookList[a].changdiName," 获取规则名称:"),{ruleType:this.ruleType,fullPriceRuleName:this.bookList[a].fullPriceRuleName,halfPriceRuleName:this.bookList[a].halfPriceRuleName,"原始ruleName":v});var b=this.processRuleName(v);console.log('处理后的规则名称: "'.concat(b,'"')),o.push({spaceId:i,openTimes:s,ruleType:this.ruleType,price:d.toFixed(2),ruleName:b})}}var g={business:"venueReservation",tradeType:"JSAPI",communityId:(0,l.getCommunityId)(),spaces:JSON.stringify(o),personName:(0,r.getUserName)(),personTel:(0,r.getUserTel)(),payWay:"4",paymentOption:this.paymentOption,rule_type:this.ruleType,ruleType:this.ruleType,booking_type:this.ruleType,resourceid:(null===(e=this.bookList[0])||void 0===e?void 0:e.spaceId)||"",applicationData:JSON.stringify({appointmentTime:this.bookparams.bookDate,spaceId:(null===(t=this.bookList[0])||void 0===t?void 0:t.spaceId)||"",ruleType:this.ruleType}),courtTypeControl:this.courtTypeControl,state:"S",remark:"",appointmentTime:this.bookparams.bookDate,totalMoney:this.totalMoney};if(this.aba_pay_data=g,"aba_pay"===this.paymentOption)return void(this.showPaymentOptions=!0);this.orderPay("")}else this.btnDisabled=!1,console.error("支付条件不满足,详细信息:",{totalMoney:this.totalMoney,totalMoneyFloat:parseFloat(this.totalMoney)}),wx.showToast({title:"支付金额必须大于0当前金额"+this.totalMoney,icon:"none",duration:3e3})},orderPay:function(e){var t=this;t.aba_pay_data.aba_pay_option=e,s.default.request({url:u.default.unifiedPayment,header:s.default.getHeaders(),method:"POST",data:t.aba_pay_data,success:function(e){if(console.log("支付接口返回状态码:",e.statusCode),console.log("支付接口返回数据:",e.data),t.btnDisabled=!1,wx.hideLoading(),200===e.statusCode){var o,a,n=e.data,i=null===n||void 0===n||null===(o=n.returnData)||void 0===o||null===(a=o.status)||void 0===a?void 0:a.code;"0"!==(null===n||void 0===n?void 0:n.code)||null==i||"00"!=i&&"0"!=i?(console.error("支付接口返回错误:",e.data),wx.showToast({title:e.data.msg||t.$t("pages.appointment.appointmentPay.支付失败"),icon:"none",duration:2e3})):(console.log("支付成功,准备跳转到收银台"),t.saveOrderToLocalStorage(e.data),uni._nativeNavigateTo({url:"/pages/fee/unifiedPaymentCashier?orderData=".concat(encodeURIComponent(JSON.stringify(e.data)),"&amount=").concat(t.totalMoney,"&timeOrder=").concat(Date.now())}))}else console.error("支付接口HTTP错误:",e.statusCode),wx.showToast({title:t.$t("pages.appointment.appointmentPay.服务器异常")+" (".concat(e.statusCode,")"),icon:"none",duration:2e3})},fail:function(e){t.btnDisabled=!1,wx.hideLoading(),console.error("支付请求失败:",e),wx.showToast({title:t.$t("pages.appointment.appointmentPay.网络错误"),icon:"none",duration:2e3})}})},processRuleName:function(e){if(console.log("processRuleName 输入:",e),!e)return console.log("ruleName为空返回空字符串"),"";console.log("尝试匹配英文格式,输入字符串:",e);var t=e.match(/星期([A-Z]{3,})/);if(console.log("正则匹配结果:",t),t&&t[1])return console.log("匹配英文格式,返回:",t[1]),t[1];if(e.startsWith("星期")){var o=e.substring(0,3);return console.log("匹配中文格式,返回:",o),o}return console.log("未匹配任何格式,返回原值:",e),e},saveOrderToLocalStorage:function(e){var t=e.returnData,o=[];try{var a=uni.getStorageSync("order_list");a&&(o=a)}catch(n){console.log("无存储数据,使用默认空列表",n)}this.timeOrder=Date.now(),o.push({order_id:e.orderId,train_id:t.status.tran_id,qr_image:t.qrImage,abapayDeeplink:t.abapay_deeplink,money:this.totalMoney,des:this.$t("pages.appointment.appointmentPay.球场预约"),time:this.timeOrder,feeIds:void 0,ruleType:this.ruleType,courtTypeControl:this.courtTypeControl});try{uni.setStorageSync("order_list",o),console.log("列表存储成功")}catch(n){console.log("列表存储失败",n)}}}});t.default=m},"4c3c":function(e,t,o){var a=o("24c2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=o("967d").default;n("129e3c80",a,!0,{sourceMap:!1,shadowMode:!1})},"592b":function(e,t,o){"use strict";o.r(t);var a=o("469d"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},6995:function(e,t,o){"use strict";var a=o("0323"),n=o.n(a);n.a},"81e5":function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",[e.showPaymentOptions?o("v-uni-view",{staticClass:"payment-popup"},[o("v-uni-view",{staticClass:"popup-header"},[o("v-uni-view",{staticClass:"popup-title"},[e._v(e._s(e.$t("pages.fee.cashierAbaOptions.选择ABA支付方式")))]),o("v-uni-view",{staticClass:"popup-close",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closePopup.apply(void 0,arguments)}}},[e._v("×")])],1),o("v-uni-view",{staticClass:"payment-options"},e._l(e.paymentOptions,(function(t){return o("v-uni-view",{key:t.value,staticClass:"payment-method",class:{disabled:!t.enabled},on:{click:function(o){arguments[0]=o=e.$handleEvent(o),t.enabled&&e.selectPaymentOption(t)}}},[o("v-uni-view",{staticClass:"payment-icon-wrapper",style:{backgroundColor:t.enabled?t.iconBg:"#E5E7EB"}},[o("v-uni-image",{staticClass:"payment-icon",style:{opacity:t.enabled?1:.5},attrs:{src:t.icon,mode:"aspectFit"}})],1),o("v-uni-view",{staticClass:"payment-label-wrapper"},[o("v-uni-view",{staticClass:"payment-main-label",style:{color:t.enabled?"#081B37":"#9CA3AF"}},[e._v(" "+e._s(t.label)+" ")]),o("v-uni-view",{staticClass:"payment-sub-label",style:{color:t.enabled?"#697386":"#D1D5DB"}},[e._v(" "+e._s(t.des)+" ")])],1),o("v-uni-view",{staticClass:"payment-action-wrapper",style:{opacity:t.enabled?1:.5}},[o("v-uni-view",{staticClass:"arrow-bg",style:{backgroundColor:t.enabled?"#F2F3F7":"#E5E7EB"}}),o("v-uni-view",{staticClass:"arrow-icon",style:{borderColor:t.enabled?"#535362":"#9CA3AF"}})],1)],1)})),1),o("v-uni-view",{staticClass:"selected-result"},[e._v(" "+e._s(e.$t("pages.fee.cashierAbaOptions.当前选中"))+""+e._s(e.getSelectedLabel())+" ")])],1):e._e()],1)},n=[]},8702:function(e,t,o){"use strict";o.r(t);var a=o("fe7b"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},9307:function(e,t,o){"use strict";o.r(t);var a=o("cd9a"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},"9d3f":function(e,t,o){var a=o("b0b7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=o("967d").default;n("6f84205c",a,!0,{sourceMap:!1,shadowMode:!1})},b0b7:function(e,t,o){var a=o("c86c");t=a(!1),t.push([e.i,".block__title[data-v-d2e1d348]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}",""]),e.exports=t},bcc6:function(e,t,o){"use strict";var a=o("9d3f"),n=o.n(a);n.a},cd9a:function(e,t,o){"use strict";o("6a54");var a=o("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("bf0f"),o("2797"),o("4626"),o("5ac7"),o("e838"),o("aa9c");a(o("d5d0"));var n=o("b9a1"),i=(o("1c9a"),{components:{},data:function(){return{accounts:[],selectedAccounts:[]}},props:{},computed:{},watch:{selectedAccounts:function(e){var t=0,o=[];this.accounts.forEach((function(a){e.includes(a.acctId)&&("2004"==a.acctType?parseFloat(a.amount)>=parseFloat(a.maximumNumber)?(t+=parseFloat(a.maximumNumber/a.deductionProportion),o.push(a)):(t+=parseFloat(a.amount/a.deductionProportion),o.push(a)):(a.acctType,t+=parseFloat(a.amount),o.push(a)))})),this.$emit("getUserAmount",{totalUserAmount:t,selectedAccounts:o})}},methods:{checkboxChange:function(e){var t=e.detail.value;this.selectedAccounts=t,this.accounts.forEach((function(e,o){t.includes(e.acctId)&&(e.checked=!0)}))},_listOwnerAccount:function(e){var t=this;(0,n.queryOwnerAccount)({page:1,row:99,communityId:e,acctType:"2003"}).then((function(e){t.accounts=e||[]}))},_viewAccountDetail:function(e){}}});t.default=i},d398:function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",[e.accounts.length>0?o("v-uni-view",[o("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("components.vc-user-account.vc-user-account.业主账户")))]),o("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.checkboxChange.apply(void 0,arguments)}}},e._l(e.accounts,(function(t,a){return o("v-uni-view",{key:a,staticClass:"cu-list menu",attrs:{"data-item":t},on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e._viewAccountDetail(t)}}},[o("v-uni-view",{staticClass:"cu-item "},[o("v-uni-view",{staticClass:"content padding-tb-sm"},[o("v-uni-view",[o("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"220px"}},[o("v-uni-checkbox",{attrs:{value:t.acctId,checked:t.checked}}),e._v(" "+e._s(e.$t("components.vc-user-account.vc-user-account."+t.acctTypeName))+" ")],1)],1)],1),o("v-uni-view",{staticClass:"action"},[o("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(" "+e._s(t.amount)+e._s("2004"==t.acctType?e.$t("components.vc-user-account.vc-user-account.分"):e.$t("components.vc-user-account.vc-user-account.元"))+" ")])],1)],1)],1)})),1)],1):e._e()],1)},n=[]},e788:function(e,t,o){"use strict";var a=o("4c3c"),n=o.n(a);n.a},eb04:function(e,t,o){"use strict";o.r(t);var a=o("81e5"),n=o("8702");for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("6995");var s=o("828b"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"a8cb65fe",null,!1,a["a"],void 0);t["default"]=l.exports},fe7b:function(e,t,o){"use strict";o("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("8f71"),o("bf0f"),o("aa77");var a={props:{showPaymentOptions:{type:Boolean,default:!1},selectedAbaOption:{type:String,default:"abapay_khqr"}},data:function(){return{paymentOptions:[{value:"abapay_khqr",label:"ABA KHQR",des:"Scan to pay with any banking app",icon:"/static/pay_images/aba_options/ABAKHQR.png",iconBg:"#005E7B",enabled:!0},{value:"alipay",label:"Alipay",des:"Scan to pay with Alipay",icon:"/static/pay_images/aba_options/Alipay.png",iconBg:"#00A0E9",enabled:!0},{value:"wechat",label:"Wechat",des:"Scan to pay with WeChat",icon:"/static/pay_images/aba_options/Wechat.png",iconBg:"#00C800",enabled:!1}]}},watch:{showPaymentOptions:function(e){e&&this.handleAutoSelect()}},methods:{handleAutoSelect:function(){var e=this,t=this.paymentOptions.filter((function(e){return e.enabled}));if(1===t.length){var o=t[0];setTimeout((function(){e.selectPaymentOption(o)}),100)}},selectPaymentOption:function(e){this.$emit("update:selectedAbaOption",e.value),this.$emit("update:showPaymentOptions",!1)},getSelectedLabel:function(){var e=this,t=this.paymentOptions.find((function(t){return t.value===e.selectedAbaOption}));return t?t.label:"无"},closePopup:function(){this.$emit("update:showPaymentOptions",!1)}}};t.default=a}}]);