Files
PropertyDeployment/resources/Web/WechatOwnerService/html/static/js/pages-fee-cashier.706d127e.js
Anfioo be079067e6 version9
4
2026-01-14 11:39:11 +08:00

1 line
36 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-fee-cashier"],{"0563":function(t,e,a){"use strict";a.r(e);var n=a("06ea"),i=a("b14e");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("ac8c");var s=a("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"67011af3",null,!1,n["a"],void 0);e["default"]=r.exports},"06ea":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniIcons:a("24e5").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"bg-white money-info text-center"},[a("v-uni-view",{staticClass:"money-black"}),a("v-uni-view",{staticClass:"money-title"},[t._v(" "+t._s(t.$t("pages.fee.cashier.订单金额")))]),a("v-uni-view",{staticClass:"money-value"},[t._v(t._s(t.money))])],1),a("v-uni-view",{staticClass:"padding-sm"},[a("v-uni-view",{staticClass:"block__title"},[t._v(" "+t._s(t.$t("pages.fee.cashier.使用积分")))]),a("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t._checkIntegral.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"cu-list menu"},[a("v-uni-view",{staticClass:"cu-item "},[a("v-uni-view",{staticClass:"content padding-tb-sm"},[a("v-uni-view",[a("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"220px"}},[t.integral<=0?a("v-uni-checkbox",{attrs:{value:"Y",disabled:"true"}}):a("v-uni-checkbox",{attrs:{value:"Y"}})],1)],1)],1),a("v-uni-view",{staticClass:"action"},[a("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.integral)+" "+t._s(t.$t("pages.fee.cashier.个积分")))])],1)],1)],1)],1),a("v-uni-view",{staticClass:"text-right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._viewGetIntegral()}}},[t._v(" "+t._s(t.$t("pages.fee.cashier.如何获取积分")))])],1),a("v-uni-view",{staticClass:"padding-sm"},[a("v-uni-view",{staticClass:"block__title"},[t._v(" "+t._s(t.$t("pages.fee.cashier.选择支付方式")))]),a("v-uni-view",{staticClass:"payment-methods"},[a("v-uni-view",{staticClass:"payment-container"},[t._l(t.paymentMethods.filter((function(t){return["aba_pay","alipay","wechat"].includes(t.value)})),(function(e){return a("v-uni-view",{key:e.value,staticClass:"payment-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.selectPaymentMethod(e.value)}}},[a("v-uni-view",{staticClass:"payment-icon"},[a("v-uni-image",{staticClass:"icon-img",attrs:{src:e.icon,mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"payment-label"},[t._v(t._s(t.$t("pages.fee.cashier."+e.label)))]),a("v-uni-view",{staticClass:"payment-radio"},[a("v-uni-view",{staticClass:"radio-circle",class:{"radio-checked":t.payment_option===e.value}},[t.payment_option===e.value?a("v-uni-view",{staticClass:"radio-dot"}):t._e()],1)],1)],1)})),t._l(t.paymentMethods.filter((function(t){return["google_pay","cards"].includes(t.value)})),(function(e){return t.showMorePayment?a("v-uni-view",{key:e.value,staticClass:"payment-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.selectPaymentMethod(e.value)}}},[a("v-uni-view",{staticClass:"payment-icon"},[a("v-uni-image",{staticClass:"icon-img",attrs:{src:e.icon,mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"payment-label"},[t._v(t._s(t.$t("pages.fee.cashier."+e.label)))]),a("v-uni-view",{staticClass:"payment-radio"},[a("v-uni-view",{staticClass:"radio-circle",class:{"radio-checked":t.payment_option===e.value}},[t.payment_option===e.value?a("v-uni-view",{staticClass:"radio-dot"}):t._e()],1)],1)],1):t._e()}))],2),a("v-uni-view",{staticClass:"more-payment-toggle",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleMorePayment.apply(void 0,arguments)}}},[a("v-uni-text",[t._v(t._s(t.showMorePayment?t.$t("pages.fee.cashier.收起更多"):t.$t("pages.fee.cashier.更多支付方式")))]),a("v-uni-view",{staticClass:"toggle-icon",class:{"toggle-rotate":t.showMorePayment}},[a("uni-icons",{attrs:{type:"down",size:"16"}})],1)],1)],1)],1),t.appId?a("v-uni-view",{staticClass:"cu-bar btn-group",staticStyle:{"margin-top":"30px"}},[t.showQRButton?a("v-uni-button",{staticClass:"cu-btn bg-green shadow-blur round lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleQr.apply(void 0,arguments)}}},[t._v(" "+t._s(t.$t("pages.fee.cashier.展示二维码"))+" ")]):t._e(),a("v-uni-button",{staticClass:"cu-btn bg-blue shadow-blur round lg",attrs:{disabled:t.banButton},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._submit.apply(void 0,arguments)}}},[t._v(" "+t._s(t.$t("pages.fee.cashier.确认支付"))+" ")])],1):a("v-uni-view",{staticClass:"cu-bar btn-group",staticStyle:{"margin-top":"30px"}},[a("v-uni-button",{staticClass:"cu-btn bg-blue shadow-blur round lg",attrs:{disabled:"disabled"}},[t._v(" "+t._s(t.$t("pages.fee.cashier.确认支付"))+" ")])],1),a("tips",{ref:"tipRef"}),t.showQrToast?a("v-uni-view",{staticClass:"qr-toast"},[a("v-uni-view",{staticClass:"qr-toast__content"},[a("v-uni-view",{staticClass:"qr-toast__close-icon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleQr.apply(void 0,arguments)}}},[t._v("×")]),a("v-uni-view",{staticClass:"qr-toast__title"},[t._v(t._s(t.$t("pages.fee.cashier.你是H5环境请扫码支付哟")))]),a("v-uni-view",{staticClass:"qr-toast__tran-id"},[t._v("Tran Id"+t._s(t.aba_train_id))]),a("v-uni-image",{staticClass:"qr-toast__image",attrs:{src:t.qrImage,mode:"widthFix"}}),a("v-uni-view",{staticClass:"qr-toast__actions"},[a("v-uni-button",{staticClass:"qr-toast__btn qr-toast__btn--confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close_qr()}}},[t._v(" "+t._s(t.$t("pages.fee.cashier.已经支付"))+" ")]),a("v-uni-button",{staticClass:"qr-toast__btn qr-toast__btn--aba",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DownloadQr.apply(void 0,arguments)}}},[t._v(" "+t._s(t.$t("pages.fee.cashier.下载Qr"))+" ")])],1)],1)],1):t._e(),a("cashierAbaOptions",{attrs:{showPaymentOptions:t.showPaymentOptions,selectedAbaOption:t.selectedAbaOption},on:{"update:showPaymentOptions":function(e){arguments[0]=e=t.$handleEvent(e),t.handleShowPaymentOptions.apply(void 0,arguments)},"update:selectedAbaOption":function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelectedAbaOption.apply(void 0,arguments)}}})],1)},o=[]},"0dbe":function(t,e,a){"use strict";var n=a("0f8a"),i=a.n(n);i.a},"0f8a":function(t,e,a){var n=a("ac58");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("4c6d35b6",n,!0,{sourceMap:!1,shadowMode:!1})},"19b2":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("bd06"),a("bf0f"),a("4626"),a("5ac7"),a("e838");var i=n(a("39d8")),o=(n(a("b885")),a("97d4")),s=a("b9a1"),r=a("6cd6"),c=a("a6b0"),u=n(a("bf7d")),d=a("c162"),l=a("b9a1"),f=a("a7bc"),p=(n(a("b885")),n(a("79d4"))),h=a("c8b3"),m=n(a("eb04")),g={data:function(){var t;return t={selectedAbaOption:"abapay_khqr",showPaymentOptions:!1,aba_pay_data:null,communityId:"",orgMoney:0,queryTime:0,isPaid:!1,money:0,business:"",showQRButton:!1,abadeeplink:void 0,app_store:void 0,play_store:void 0,openId:"",appId:"",data:{}},(0,i.default)(t,"appId",""),(0,i.default)(t,"cashierUserId",""),(0,i.default)(t,"banButton",!1),(0,i.default)(t,"useIntegral","N"),(0,i.default)(t,"integral",0),(0,i.default)(t,"integralMoney",0),(0,i.default)(t,"cashierOrderList",[]),(0,i.default)(t,"payment_option","aba_pay"),(0,i.default)(t,"showMorePayment",!1),(0,i.default)(t,"paymentMethods",[{value:"aba_pay",label:"ABA支付",icon:"/static/pay_images/abapay_khqr.png"},{value:"alipay",label:"支付宝",icon:"/static/pay_images/alipay.png"},{value:"wechat",label:"微信支付",icon:"/static/pay_images/wechat.png"},{value:"google_pay",label:"Google Pay",icon:"/static/pay_images/google_pay.png"},{value:"cards",label:"银行卡支付",icon:"/static/pay_images/cards.png"}]),(0,i.default)(t,"aba_train_id",""),(0,i.default)(t,"order_id_query",""),(0,i.default)(t,"order_lifetime_minute",0),(0,i.default)(t,"timer",null),(0,i.default)(t,"showQrToast",!1),(0,i.default)(t,"qrImage",""),t},mounted:function(){if("ALIPAY"==(0,r.isWxOrAli)()){xu;var t=document.createElement("script");t.type="text/javascript",t.src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js",document.body.appendChild(t)}},onUnload:function(){this.clearQueryTimer()},onShow:function(){if(this.get_train_status(),this.startQueryTimer(),(0,h.isShowLaterTime)()){var t=[];try{var e=uni.getStorageSync("order_list");e?t=e:console.log("存储数据为空,使用默认空列表")}catch(c){console.log("无存储数据,使用默认空列表",c)}if(console.log("=========================\n\n"),console.log(t),t.length>0){var a=this.data.feeIds,n=this.money,i=this.data.feeName,o=t.findIndex((function(t){return a&&""!==a&&t.feeIds?t.feeIds.some((function(t){return a.includes(t)})):t.money===n&&t.des===i})),s=this.$t("pages.fee.cashier.您有未支付的订单,是否前往支付?"),r="";-1!==o?(s=this.$t("pages.fee.cashier.检测到您有和这个订单相关的未支付订单,是否前往支付?"),r="/pages/fee/orderNotPay?showHigh="+o,console.log(r)):r="/pages/fee/orderNotPay",console.log(1),console.log(t),uni.showModal({title:this.$t("pages.fee.cashier.提示"),content:s,cancelText:this.$t("pages.fee.cashier.稍后再说"),confirmText:this.$t("pages.fee.cashier.去支付"),success:function(t){t.confirm?uni.navigateTo({url:r,fail:function(t){uni.showToast({title:"跳转失败,请稍后重试",icon:"none",duration:2e3}),console.error("导航失败原因:",t)}}):t.cancel&&(console.log("用户选择稍后处理未支付订单"),(0,h.setShowLaterTime)())},fail:function(t){console.error("弹窗调用失败:",t)}})}}},onLoad:function(t){this.openId=t.openId,this.communityId=t.communityId,this.cashierUserId=t.cashierUserId;var e=this;this._loadAppId((function(){if(!(0,o.isNotNull)(e.openId))return"ALIPAY"==(0,r.isWxOrAli)()?void e._refreshAliPayOpenId():void e._refreshWechatMiniOpenId()})),this.money=t.money,this.orgMoney=t.money,this.business=t.business,this.data=uni.getStorageSync("doing_cashier"),(0,d.hasLogin)()&&this._loadUserIntegral()},components:{CashierAbaOptions:m.default,tips:u.default},methods:{close_qr:function(){this.get_train_status(),this.showQrToast=!1,this.banButton=!1},togglePaymentOptions:function(){this.showPaymentOptions=!this.showPaymentOptions},handleShowPaymentOptions:function(t){console.log("弹窗显示状态变化为:",t),this.showPaymentOptions=t,!0!==this.showQRButton&&(this.banButton=!1!==t)},handleSelectedAbaOption:function(t){console.log("选中的支付方式:",t),this.selectedAbaOption=t,this.processPaymentSelection(t)},processPaymentSelection:function(t){console.log("处理支付方式:",t),this.aba_pay_data.aba_pay_option=t,(0,c.cashierPayFee)(this,this.aba_pay_data)},get_train_status:function(){var t=this;""!==this.aba_train_id&&(uni.showToast({title:"Loading",icon:"none",duration:2e3}),t.queryTime=t.queryTime+1,(0,f.request)({url:p.default.queryPayStatus,method:"GET",data:{trainId:t.aba_train_id},success:function(e){try{var a=e.data;if(console.log("支付状态查询ID:",t.aba_train_id),console.log("支付状态查询结果:",a),!0===a||!0===a.success){console.log("支付成功 ✅,停止轮询"),clearInterval(this.timer),t.banButton=!1,t.isPaid=!0,uni.showToast({title:t.$t("pages.fee.cashier.支付成功"),icon:"none",duration:2e3});var n="/pages/successPage/successPage?msg="+t.$t("pages.fee.unifiedPaymentCashier.支付成功")+"&objType=3003";uni.navigateTo({url:n})}else uni.showToast({title:t.$t("pages.fee.cashier.查询中"),icon:"none",duration:2e3}),t.banButton=!0}catch(i){console.error("解析支付状态响应失败:",i)}},fail:function(t){console.error("支付状态请求失败:",t)}}))},selectPaymentMethod:function(t){this.payment_option=t},toggleMorePayment:function(){this.showMorePayment=!this.showMorePayment},startQueryTimer:function(){var t=this;if(1===this.queryTime&&(this.notice_Backend(),console.log("通知后台成功")),!this.isPaid&&!this.timer&&this.queryTime>=1){this.timer=setInterval((function(){t.get_train_status(),(t.isPaid||Date.now()>=t.order_lifetime_timestamp)&&(clearInterval(t.timer),t.timer=null,console.log("定时器停止,原因:",t.isPaid?"支付成功":"订单已过期"))}),3e3)}},clearQueryTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},_loadAppId:function(t){var e=this;(0,s.getCommunityWechatAppId)({communityId:this.communityId,objType:"1100"}).then((function(a){e.appId=a.data,t()}))},_refreshWechatOpenId:function(){var t=window.location.href;(0,s.refreshUserOpenId)({redirectUrl:t,wAppId:this.appId}).then((function(t){0!=t.code||(window.location.href=t.data.openUrl)}))},_refreshWechatMiniOpenId:function(){var t=this;wx.login({success:function(e){if(e.code){var a=uni.getAccountInfoSync(),n=a.miniProgram.appId;(0,s.getWechatMiniOpenId)({code:e.code,appId:n}).then((function(e){0==e.code?t.openId=e.data:uni.showToast({icon:"none",title:e.msg})}))}},fail:function(t){console.log("调用wx.login获取code失败"),console.log(t)}})},_submit:function(){if(this.appId){this.banButton=!0;var t=this.data;if(t.business=this.business,t.tradeType="JSAPI",t.appId=this.appId,t.cashierUserId=this.cashierUserId,t.openId="122132132132",t.paymentOption=this.payment_option,t.useIntegral=this.useIntegral,"aba_pay"===this.payment_option)return this.showPaymentOptions=!0,void(this.aba_pay_data=t);(0,c.cashierPayFee)(this,t)}else uni.showToast({icon:"none",title:this.$t("pages.fee.cashier.小区未配置支付信息")})},_loadUserIntegral:function(){var t=this;(0,l.queryUserIntegral)({page:1,row:1}).then((function(e){t.integral=e.integral,t.integralMoney=e.integralMoney}))},toggleQr:function(){this.showQrToast=!this.showQrToast},DownloadQr:function(){var t=document.createElement("a");t.href=this.qrImage,t.download="qr-code.png",t.click()},notice_Backend:function(){var t={order_id:this.order_id_query,tran_id:this.aba_train_id};(0,f.requestNoAuth)({url:p.default.abaCallBackAppUser,method:"POST",data:t,success:function(t){console.log("刷新订单状态返回结果:",t),(0,o.isNotNull)(t)&&"OK"===t.data?uni.showToast({title:t.data,icon:"none",duration:1500}):uni.showToast({title:"通知后台成功",icon:"none",duration:1500})},fail:function(t){console.error("刷新订单请求失败:",t)}})},_checkIntegral:function(t){console.log(t);var e=t.detail.value;if(!e||e.length<1)return this.useIntegral="N",void(this.money=this.orgMoney);this.useIntegral="Y",parseFloat(this.integralMoney)>parseFloat(this.orgMoney)?this.money=0:(this.money=parseFloat(this.orgMoney)-parseFloat(this.integralMoney),this.money=this.money.toFixed(2))},_viewGetIntegral:function(){var t=this.$t("pages.fee.cashier.您可以到商城购物或者物业缴费的方式获取积分积分可以用来物业缴费和商城购物");this.$refs.tipRef.openTip(this.$t("pages.fee.cashier.如何获取积分"),t)}}};e.default=g},"597f":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"cu-modal",class:1==t.showTips?"show":""},[a("v-uni-view",{staticClass:"cu-dialog"},[a("v-uni-view",{staticClass:"cu-bar bg-white justify-end"},[a("v-uni-view",{staticClass:"content"},[t._v(t._s(t.title))]),a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._cancleTip()}}},[a("v-uni-text",{staticClass:"cuIcon-close text-red"})],1)],1),a("v-uni-view",{staticClass:"padding-xl"},[a("v-uni-view",[t._v(t._s(t.content))])],1),a("v-uni-view",{staticClass:"cu-bar bg-white justify-end"},[a("v-uni-view",{staticClass:"action margin-0 flex-sub solid-left",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._cancleTip()}}},[t._v(" "+t._s(t.$t("pages.fee.unifiedPaymentCashier.关闭")))])],1)],1)],1)],1)},i=[]},7021:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"tips",data:function(){return{showTips:!1,title:"",content:""}},methods:{openTip:function(t,e){this.title=t,this.content=e,this.showTips=!0,console.log("openTip",this.showTips)},_cancleTip:function(){this.showTips=!1}}};e.default=n},8702:function(t,e,a){"use strict";a.r(e);var n=a("fe7b"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},a6b0:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.cashierPayFee=function(t,e,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.requestNoAuth)({url:o.default.cashier,method:"POST",data:e,success:function(e){if("扣费为0回调成功"===e.data.msg){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})}uni.showToast({title:e.data.msg,duration:2e3}),console.log(e),console.log();var a=e.data.returnData.abapay_deeplink,n=e.data.orderId;t.aba_train_id=e.data.returnData.status.tran_id,t.order_id_query=e.data.orderId;var i=Date.now(),o=60*e.data.lifetime*1e3;if(t.order_lifetime_timestamp=i+o,t.qrImage=e.data.returnData.qrImage,t.abadeeplink=e.data.returnData.abapay_deeplink,t.app_store=e.data.returnData.app_store,t.play_store=e.data.returnData.play_store,void 0!=t.abadeeplink){"undefined"!==typeof plus?(plus.runtime.openURL(a,(function(e){console.log("打开结果:",e),e&&e.code&&(t.showQrToast=!0)})),t.banButton=!1):uni.showModal({title:"提示",content:"是否打开ABA应用完成支付",showCancel:!0,cancelText:"取消",confirmText:"打开",success:function(e){if(!e.confirm)return t.showQrToast=!0,void(t.showQRButton=!0);window.open(a,"_blank"),t.showQRButton=!0},fail:function(e){console.error("弹窗交互失败:",e),t.showQrToast=!0,t.showQRButton=!0}});var s=[];try{var r=uni.getStorageSync("order_list");r?s=r:console.log("存储数据为空,使用默认空列表")}catch(c){console.log("无存储数据,使用默认空列表",c)}s.push({order_id:n,train_id:t.aba_train_id,qr_image:t.qrImage,abapayDeeplink:a,money:t.money,des:t.data.feeName,time:Date.now(),feeIds:t.data.feeIds}),console.log("order list:"),console.log(s);try{uni.setStorageSync("order_list",s),console.log("列表存储成功")}catch(c){console.log("列表存储失败",c)}}else uni.showModal({title:"Error",content:e.data.returnData.status.message,showCancel:!1})},fail:function(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),t.banButton=!1}})},e.computeObjFee=function(t){return new Promise((function(e,a){(0,i.request)({url:o.default.computeObjFee,method:"GET",data:t,success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.computePayFeeCoupon=function(t){return new Promise((function(e,a){(0,i.request)({url:o.default.computePayFeeCoupon,method:"GET",data:t,success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.couponPropertyUserGiftCar=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.couponPropertyUserGiftCar,method:"POST",data:JSON.stringify(t),success:function(t){0!=t.data.code?a():e(t.data)},fail:function(t){a()}})}))},e.generatorCouponQrcode=function(t){return new Promise((function(e,a){(0,i.request)({url:o.default.generatorCouponQrcode,method:"POST",data:JSON.stringify(t),success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.getCouponUsers=function(t,e){return new Promise((function(a,n){(0,i.requestNoAuth)({url:o.default.queryCouponUser,method:"GET",data:t,success:function(t){if(200==t.statusCode)return e=t.data,e.length<1&&n(),void a(e);n()},fail:function(t){n()}})}))},e.getFeeDiscounts=function(t){return new Promise((function(e,a){(0,i.request)({url:o.default.computeFeeDiscount,method:"GET",data:t,success:function(t){if(200!=t.statusCode)a();else{var n=t.data.data;e(n)}},fail:function(t){a()}})}))},e.getParkingCarCoupon=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.listParkingCouponCar,method:"GET",data:t,success:function(t){var n=t.data;0!=n.code?a(n.msg):e(n.data)},fail:function(t){a()}})}))},e.getQrCodeData=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.getNativeQrcodePayment,method:"GET",data:t,success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.getRoomFees=function(t,e){return new Promise((function(a,n){var r=[];(0,i.request)({url:o.default.queryFeeByOwner,method:"GET",data:t,success:function(t){if(200==t.statusCode){var i=t.data.fees;return i.length<1&&n(),i.forEach((function(t){e=JSON.parse(JSON.stringify(e)),e.endTime=(0,s.dateTimeStringToDateString)(t.endTime);var a=new Date;t.endTime>a?e.feeStateName="正常":e.feeStateName="欠费",e.additionalAmount=t.additionalAmount,e.squarePrice=t.squarePrice,e.amount=t.feePrice,e.feeId=t.feeId,e.feeName=t.feeName,e.feeFlag=t.feeFlag,e.paymentCycle=t.paymentCycle,e.preDegrees=t.preDegrees,e.curDegrees=t.curDegrees,e.preReadingTime=t.preReadingTime,e.curReadingTime=t.curReadingTime,e.feeState=t.state,e.deadlineTime=t.deadlineTime,e.amountOwed=t.amountOwed,e.startTime=t.startTime,e.payOnline=t.payOnline,r.push(e)})),void a(r)}n()},fail:function(t){n()}})}))},e.getRoomOweFees=function(t){return new Promise((function(e,a){(0,i.request)({url:o.default.listOweFees,method:"GET",data:t,success:function(t){if(200==t.statusCode){var n=t.data.data;return n.length<1&&a(),n.forEach((function(t){t.endTime=(0,s.dateTimeStringToDateString)(t.endTime),t.deadlineTime=(0,s.dateTimeStringToDateString)(t.deadlineTime)})),void e(n)}a()},fail:function(t){a()}})}))},e.getTempCarFeeOrder=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.getTempCarFeeOrder,method:"GET",data:t,success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.payFeeApp=function(t,e){wx.showLoading({title:"支付中"}),(0,i.request)({url:o.default.preOrder,method:"POST",data:e,success:function(t){if(wx.hideLoading(),"0"==t.data.code){var e;t.data;return e=JSON.stringify({}),void uni.requestPayment({provider:"wxpay",orderInfo:e,success:function(t){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})},fail:function(t){console.log("fail:"+JSON.stringify(t))}})}if("100"==t.data.code){t.data;return uni.showToast({title:"支付成功",duration:2e3}),void uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})}wx.showToast({title:data.msg,icon:"none",duration:2e3})},fail:function(t){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},e.payFeeWechat=function(t,e,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.request)({url:o.default.unifiedPayment,method:"POST",data:e,success:function(t){if(wx.hideLoading(),"0"!=t.data.code){if(200==t.statusCode&&"100"==t.data.code){t.data;return uni.showToast({title:"支付成功",duration:2e3}),void setTimeout((function(){uni.navigateBack({})}),2e3)}wx.showToast({title:"缴费失败"+t.data.msg,icon:"none",duration:2e3})}else{var e=t.data;WexinPayFactory.wexinPay(e,(function(){uni.navigateTo({url:a})}))}},fail:function(t){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},e.receiveParkingCoupon=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.saveParkingCouponCar,method:"POST",data:JSON.stringify(t),success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.toAliPayTempCarFee=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.alipayPayTempCarFee,method:"POST",data:JSON.stringify(t),success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},e.toPayTempCarFee=function(t){return new Promise((function(e,a){(0,i.requestNoAuth)({url:o.default.cashier,method:"POST",data:JSON.stringify(t),success:function(t){200!=t.statusCode?a():e(t.data)},fail:function(t){a()}})}))},a("bf0f"),a("2797"),a("d4b5"),a("aa9c");var i=a("a7bc"),o=n(a("79d4")),s=a("fcd3")},ac58:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.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-24d68814]{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-24d68814]{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px}\r\n/* 弹窗标题 */.popup-title[data-v-24d68814]{font-family:SF Pro Display,sans-serif;font-weight:600;font-size:16px;color:#081b37}\r\n/* 关闭按钮 */.popup-close[data-v-24d68814]{font-size:24px;color:#535362;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700}\r\n/* 支付选项列表容器 */.payment-options[data-v-24d68814]{display:flex;flex-direction:column;gap:8px;overflow-y:auto;width:100%;max-height:200px}\r\n/* 单个支付选项样式 */.payment-method[data-v-24d68814]{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-24d68814]{cursor:not-allowed;opacity:.7}\r\n/* 支付图标容器 */.payment-icon-wrapper[data-v-24d68814]{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-24d68814]{width:30px;height:30px;transition:opacity .2s ease}\r\n/* 文字标签区域 */.payment-label-wrapper[data-v-24d68814]{display:flex;flex-direction:column;width:175px}\r\n/* 主标签样式 */.payment-main-label[data-v-24d68814]{font-size:12px;font-weight:600;margin-bottom:2px;transition:color .2s ease}\r\n/* 子标签/描述样式 */.payment-sub-label[data-v-24d68814]{font-size:11px;transition:color .2s ease}\r\n/* 右侧箭头容器 */.payment-action-wrapper[data-v-24d68814]{position:relative;width:20px;height:20px;transition:opacity .2s ease}\r\n/* 箭头背景 */.arrow-bg[data-v-24d68814]{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-24d68814]{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-24d68814]{margin-top:20px;font-size:14px;color:#333;text-align:center}",""]),t.exports=e},ac8c:function(t,e,a){"use strict";var n=a("ea0f"),i=a.n(n);i.a},b14e:function(t,e,a){"use strict";a.r(e);var n=a("19b2"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},bf7d:function(t,e,a){"use strict";a.r(e);var n=a("597f"),i=a("c046");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);var s=a("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"d88db4ee",null,!1,n["a"],void 0);e["default"]=r.exports},c046:function(t,e,a){"use strict";a.r(e);var n=a("7021"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},c1d6:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,"@charset \"UTF-8\";.block__title[data-v-67011af3]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?0?% %?30?% %?20?%}.money-info[data-v-67011af3]{height:%?400?%;margin:%?20?%}.money-info .money-black[data-v-67011af3]{height:%?120?%}.money-info .money-title[data-v-67011af3]{font-size:%?32?%}.money-info .money-value[data-v-67011af3]{color:#e54d42;margin-top:%?20?%;font-size:%?64?%}.payment-methods[data-v-67011af3]{padding:%?10?% %?30?%}.payment-methods .payment-row[data-v-67011af3]{display:flex;flex-direction:column;\n /* 改为纵向排列 */gap:%?15?%;margin-bottom:%?20?%}.payment-methods .payment-item[data-v-67011af3]{display:flex;align-items:center;background-color:#f5f5f5;border-radius:%?10?%;padding:%?20?% %?25?%;\n /* 增加内边距,适应单列布局 */width:100%;\n /* 占满整行宽度 */box-sizing:border-box;cursor:pointer;transition:all .3s\n /* 选中时添加高亮背景 */}.payment-methods .payment-item[data-v-67011af3]:hover{background-color:#eee}.payment-methods .payment-item[data-v-67011af3]:has(.radio-checked){background-color:#e8f4fd;border:1px solid #007aff}.payment-methods .payment-icon[data-v-67011af3]{width:%?50?%;\n /* 适当放大图标 */height:%?50?%;margin-right:%?20?%}.payment-methods .payment-icon .icon-img[data-v-67011af3]{width:100%;height:100%;object-fit:contain}.payment-methods .payment-label[data-v-67011af3]{flex:1;font-size:%?28?%;\n /* 放大文字 */white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-methods .payment-radio .radio-circle[data-v-67011af3]{width:%?36?%;\n /* 放大选择框 */height:%?36?%;border-radius:50%;border:%?2?% solid #ccc;display:flex;align-items:center;justify-content:center}.payment-methods .payment-radio .radio-circle .radio-dot[data-v-67011af3]{width:%?20?%;\n /* 放大选中点 */height:%?20?%;border-radius:50%;background-color:#007aff}.payment-methods .payment-radio .radio-checked[data-v-67011af3]{border-color:#007aff}.payment-methods .more-payment-toggle[data-v-67011af3]{display:flex;align-items:center;justify-content:center;padding:%?15?% 0;color:#007aff;font-size:%?26?%;cursor:pointer;margin-top:%?10?%}.payment-methods .more-payment-toggle .toggle-icon[data-v-67011af3]{margin-left:%?10?%;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.payment-methods .more-payment-toggle .toggle-rotate[data-v-67011af3]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.payment-methods .more-payment[data-v-67011af3]{-webkit-animation:fadeIn-data-v-67011af3 .3s;animation:fadeIn-data-v-67011af3 .3s}@-webkit-keyframes fadeIn-data-v-67011af3{from{opacity:0;-webkit-transform:translateY(%?10?%);transform:translateY(%?10?%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeIn-data-v-67011af3{from{opacity:0;-webkit-transform:translateY(%?10?%);transform:translateY(%?10?%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}\n/* 二维码弹窗容器:居中显示,半透明遮罩 */\n/* 弹窗整体居中+遮罩 */.qr-toast[data-v-67011af3]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:9999}\n/* 白色内容卡片 */.qr-toast__content[data-v-67011af3]{position:relative;background:#fff;border-radius:12px;padding:10px;width:95vw;display:flex;flex-direction:column;align-items:center}\n/* 右上角关闭 */.qr-toast__close-icon[data-v-67011af3]{position:absolute;top:10px;right:10px;font-size:20px;color:#999;cursor:pointer}\n/* 提示文字 */.qr-toast__title[data-v-67011af3]{font-size:16px;color:#333;margin-bottom:15px;text-align:center}\n/* 二维码 */.qr-toast__image[data-v-67011af3]{width:200px;height:auto;background:#fff;padding:10px;border-radius:8px;margin-bottom:20px}\n/* 底部按钮区:横向排列按钮 */.qr-toast__actions[data-v-67011af3]{display:flex;justify-content:space-between;\n /* 或者可以用 'flex-start' 或 'flex-end' 根据需求调整 */align-items:center\n /* 确保垂直居中对齐 */}\n/* 通用按钮 */.qr-toast__btn[data-v-67011af3]{padding:10px;font-size:14px;border-radius:6px;border:none;width:100%}\n/* 灰色按钮:确定支付 */.qr-toast__btn--confirm[data-v-67011af3]{margin-right:auto;\n /* 将左侧的内容推到最左边 */background:#666;width:40vw;color:#fff}\n/* 蓝色按钮打开ABA */.qr-toast__btn--aba[data-v-67011af3]{margin-left:auto;\n /* 将右侧的内容推到最右边 */background:#007aff;width:40vw;color:#fff}",""]),t.exports=e},c8b3:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.isShowLaterTime=function(){var t=uni.getStorageSync("later_time"),e=Date.now();if(!t)return!0;return e>t},e.setShowLaterTime=function(){var t=Date.now(),e=t+3e5;console.log("延迟5min"),uni.setStorageSync("later_time",e)}},ea0f:function(t,e,a){var n=a("c1d6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("95f5ad5a",n,!0,{sourceMap:!1,shadowMode:!1})},eb04:function(t,e,a){"use strict";a.r(e);var n=a("f89b"),i=a("8702");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("0dbe");var s=a("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"24d68814",null,!1,n["a"],void 0);e["default"]=r.exports},f89b:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.showPaymentOptions?a("v-uni-view",{staticClass:"payment-popup"},[a("v-uni-view",{staticClass:"popup-header"},[a("v-uni-view",{staticClass:"popup-title"},[t._v(t._s(t.$t("pages.fee.cashierAbaOptions.选择ABA支付方式")))]),a("v-uni-view",{staticClass:"popup-close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closePopup.apply(void 0,arguments)}}},[t._v("×")])],1),a("v-uni-view",{staticClass:"payment-options"},t._l(t.paymentOptions,(function(e){return a("v-uni-view",{key:e.value,staticClass:"payment-method",class:{disabled:!e.enabled},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),e.enabled&&t.selectPaymentOption(e)}}},[a("v-uni-view",{staticClass:"payment-icon-wrapper",style:{backgroundColor:e.enabled?e.iconBg:"#E5E7EB"}},[a("v-uni-image",{staticClass:"payment-icon",style:{opacity:e.enabled?1:.5},attrs:{src:e.icon,mode:"aspectFit"}})],1),a("v-uni-view",{staticClass:"payment-label-wrapper"},[a("v-uni-view",{staticClass:"payment-main-label",style:{color:e.enabled?"#081B37":"#9CA3AF"}},[t._v(" "+t._s(e.label)+" ")]),a("v-uni-view",{staticClass:"payment-sub-label",style:{color:e.enabled?"#697386":"#D1D5DB"}},[t._v(" "+t._s(e.des)+" ")])],1),a("v-uni-view",{staticClass:"payment-action-wrapper",style:{opacity:e.enabled?1:.5}},[a("v-uni-view",{staticClass:"arrow-bg",style:{backgroundColor:e.enabled?"#F2F3F7":"#E5E7EB"}}),a("v-uni-view",{staticClass:"arrow-icon",style:{borderColor:e.enabled?"#535362":"#9CA3AF"}})],1)],1)})),1),a("v-uni-view",{staticClass:"selected-result"},[t._v(" "+t._s(t.$t("pages.fee.cashierAbaOptions.当前选中"))+""+t._s(t.getSelectedLabel())+" ")])],1):t._e()],1)},i=[]},fe7b:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("8f71"),a("bf0f"),a("aa77");var n={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:!1},{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(t){t&&this.handleAutoSelect()}},methods:{handleAutoSelect:function(){var t=this,e=this.paymentOptions.filter((function(t){return t.enabled}));if(1===e.length){var a=e[0];setTimeout((function(){t.selectPaymentOption(a)}),100)}},selectPaymentOption:function(t){this.$emit("update:selectedAbaOption",t.value),this.$emit("update:showPaymentOptions",!1)},getSelectedLabel:function(){var t=this,e=this.paymentOptions.find((function(e){return e.value===t.selectedAbaOption}));return e?e.label:"无"},closePopup:function(){this.$emit("update:showPaymentOptions",!1)}}};e.default=n}}]);