1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-cashier"],{"0563":function(e,t,a){"use strict";a.r(t);var n=a("8a86"),i=a("b14e");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("20e0");var s=a("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"ecb58d7e",null,!1,n["a"],void 0);t["default"]=r.exports},"19b2":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.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={data:function(){var e;return e={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)(e,"appId",""),(0,i.default)(e,"cashierUserId",""),(0,i.default)(e,"banButton",!1),(0,i.default)(e,"useIntegral","N"),(0,i.default)(e,"integral",0),(0,i.default)(e,"integralMoney",0),(0,i.default)(e,"cashierOrderList",[]),(0,i.default)(e,"payment_option","abapay_khqr"),(0,i.default)(e,"showMorePayment",!1),(0,i.default)(e,"paymentMethods",[{value:"abapay_khqr",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)(e,"aba_train_id",""),(0,i.default)(e,"order_id_query",""),(0,i.default)(e,"order_lifetime_minute",0),(0,i.default)(e,"timer",null),(0,i.default)(e,"showQrToast",!1),(0,i.default)(e,"qrImage",""),e},mounted:function(){if("ALIPAY"==(0,r.isWxOrAli)()){var e=document.createElement("script");e.type="text/javascript",e.src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js",document.body.appendChild(e)}},onUnload:function(){this.clearQueryTimer()},onShow:function(){if(this.get_train_status(),this.startQueryTimer(),(0,h.isShowLaterTime)()){var e=[];try{var t=uni.getStorageSync("order_list");t?e=t:console.log("存储数据为空,使用默认空列表")}catch(c){console.log("无存储数据,使用默认空列表",c)}if(console.log("=========================\n\n"),console.log(e),e.length>0){var a=this.data.feeIds,n=this.money,i=this.data.feeName,o=e.findIndex((function(e){return a&&""!==a&&e.feeIds?e.feeIds.some((function(e){return a.includes(e)})):e.money===n&&e.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(e),uni.showModal({title:this.$t("pages.fee.cashier.提示"),content:s,cancelText:this.$t("pages.fee.cashier.稍后再说"),confirmText:this.$t("pages.fee.cashier.去支付"),success:function(e){e.confirm?uni.navigateTo({url:r,fail:function(e){uni.showToast({title:"跳转失败,请稍后重试",icon:"none",duration:2e3}),console.error("导航失败原因:",e)}}):e.cancel&&(console.log("用户选择稍后处理未支付订单"),(0,h.setShowLaterTime)())},fail:function(e){console.error("弹窗调用失败:",e)}})}}},onLoad:function(e){this.openId=e.openId,this.communityId=e.communityId,this.cashierUserId=e.cashierUserId;var t=this;this._loadAppId((function(){if(!(0,o.isNotNull)(t.openId))return"ALIPAY"==(0,r.isWxOrAli)()?void t._refreshAliPayOpenId():void t._refreshWechatMiniOpenId()})),this.money=e.money,this.orgMoney=e.money,this.business=e.business,this.data=uni.getStorageSync("doing_cashier"),(0,d.hasLogin)()&&this._loadUserIntegral()},components:{tips:u.default},methods:{close_qr:function(){this.get_train_status(),this.showQrToast=!1,this.banButton=!1},get_train_status:function(){var e=this;""!==this.aba_train_id&&(uni.showToast({title:"Loading",icon:"none",duration:2e3}),e.queryTime=e.queryTime+1,(0,f.request)({url:p.default.queryPayStatus,method:"GET",data:{trainId:e.aba_train_id},success:function(t){try{var a=t.data;if(console.log("支付状态查询ID:",e.aba_train_id),console.log("支付状态查询结果:",a),!0===a||!0===a.success){console.log("支付成功 ✅,停止轮询"),clearInterval(this.timer),e.banButton=!1,e.isPaid=!0,uni.showToast({title:e.$t("pages.fee.cashier.支付成功"),icon:"none",duration:2e3});var n="/pages/successPage/successPage?msg="+e.$t("pages.fee.unifiedPaymentCashier.支付成功")+"&objType=3003";uni.navigateTo({url:n})}else uni.showToast({title:e.$t("pages.fee.cashier.查询中"),icon:"none",duration:2e3}),e.banButton=!0}catch(i){console.error("解析支付状态响应失败:",i)}},fail:function(e){console.error("支付状态请求失败:",e)}}))},selectPaymentMethod:function(e){this.payment_option=e},toggleMorePayment:function(){this.showMorePayment=!this.showMorePayment},startQueryTimer:function(){var e=this;if(1===this.queryTime&&(this.notice_Backend(),console.log("通知后台成功")),!this.isPaid&&!this.timer&&this.queryTime>=1){this.timer=setInterval((function(){e.get_train_status(),(e.isPaid||Date.now()>=e.order_lifetime_timestamp)&&(clearInterval(e.timer),e.timer=null,console.log("定时器停止,原因:",e.isPaid?"支付成功":"订单已过期"))}),3e3)}},clearQueryTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},_loadAppId:function(e){var t=this;(0,s.getCommunityWechatAppId)({communityId:this.communityId,objType:"1100"}).then((function(a){t.appId=a.data,e()}))},_refreshWechatOpenId:function(){var e=window.location.href;(0,s.refreshUserOpenId)({redirectUrl:e,wAppId:this.appId}).then((function(e){0!=e.code||(window.location.href=e.data.openUrl)}))},_refreshWechatMiniOpenId:function(){var e=this;wx.login({success:function(t){if(t.code){var a=uni.getAccountInfoSync(),n=a.miniProgram.appId;(0,s.getWechatMiniOpenId)({code:t.code,appId:n}).then((function(t){0==t.code?e.openId=t.data:uni.showToast({icon:"none",title:t.msg})}))}},fail:function(e){console.log("调用wx.login获取code失败"),console.log(e)}})},_submit:function(){if(this.appId){this.banButton=!0;var e=this.data;e.business=this.business,e.tradeType="JSAPI",e.appId=this.appId,e.cashierUserId=this.cashierUserId,e.openId="122132132132",e.paymentOption=this.payment_option,e.useIntegral=this.useIntegral,(0,c.cashierPayFee)(this,e)}else uni.showToast({icon:"none",title:this.$t("pages.fee.cashier.小区未配置支付信息")})},_loadUserIntegral:function(){var e=this;(0,l.queryUserIntegral)({page:1,row:1}).then((function(t){e.integral=t.integral,e.integralMoney=t.integralMoney}))},toggleQr:function(){this.showQrToast=!this.showQrToast},gotoABA:function(){var e=this;this.showQrToast=!1,null!=window.Telegram.WebApp.initDataUnsafe.user?window.open(this.abadeeplink,"_blank"):uni.showModal({title:this.$t("pages.fee.cashier.提示"),content:this.$t("pages.fee.cashier.未检测到已安装应用,是否前往下载?"),confirmText:this.$t("pages.fee.cashier.去下载"),cancelText:this.$t("pages.fee.cashier.取消"),success:function(t){t.confirm&&uni.showActionSheet({itemList:["Go To App Store Download","Go To Google Play Download"],success:function(t){0===t.tapIndex?window.open(e.app_store,"_blank"):1===t.tapIndex&&window.open(e.play_store,"_blank")}})}})},notice_Backend:function(){var e={order_id:this.order_id_query,tran_id:this.aba_train_id};(0,f.requestNoAuth)({url:p.default.abaCallBackAppUser,method:"POST",data:e,success:function(e){console.log("刷新订单状态返回结果:",e),(0,o.isNotNull)(e)&&"OK"===e.data?uni.showToast({title:e.data,icon:"none",duration:1500}):uni.showToast({title:"通知后台成功",icon:"none",duration:1500})},fail:function(e){console.error("刷新订单请求失败:",e)}})},_checkIntegral:function(e){console.log(e);var t=e.detail.value;if(!t||t.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 e=this.$t("pages.fee.cashier.您可以到商城购物或者物业缴费的方式获取积分积分可以用来物业缴费和商城购物");this.$refs.tipRef.openTip(this.$t("pages.fee.cashier.如何获取积分"),e)}}};t.default=m},"20e0":function(e,t,a){"use strict";var n=a("bee0"),i=a.n(n);i.a},"597f":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",[a("v-uni-view",{staticClass:"cu-modal",class:1==e.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"},[e._v(e._s(e.title))]),a("v-uni-view",{staticClass:"action",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._cancleTip()}}},[a("v-uni-text",{staticClass:"cuIcon-close text-red"})],1)],1),a("v-uni-view",{staticClass:"padding-xl"},[a("v-uni-view",[e._v(e._s(e.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(t){arguments[0]=t=e.$handleEvent(t),e._cancleTip()}}},[e._v(" "+e._s(e.$t("pages.fee.unifiedPaymentCashier.关闭")))])],1)],1)],1)],1)},i=[]},7021:function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"tips",data:function(){return{showTips:!1,title:"",content:""}},methods:{openTip:function(e,t){this.title=e,this.content=t,this.showTips=!0,console.log("openTip",this.showTips)},_cancleTip:function(){this.showTips=!1}}};t.default=n},"8a86":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var n={uniIcons:a("24e5").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;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"},[e._v(" "+e._s(e.$t("pages.fee.cashier.订单金额")))]),a("v-uni-view",{staticClass:"money-value"},[e._v(e._s(e.money))])],1),a("v-uni-view",{staticClass:"padding-sm"},[a("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("pages.fee.cashier.使用积分")))]),a("v-uni-checkbox-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e._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"}},[e.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"},[e._v(e._s(e.integral)+" "+e._s(e.$t("pages.fee.cashier.个积分")))])],1)],1)],1)],1),a("v-uni-view",{staticClass:"text-right",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._viewGetIntegral()}}},[e._v(" "+e._s(e.$t("pages.fee.cashier.如何获取积分")))])],1),a("v-uni-view",{staticClass:"padding-sm"},[a("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("pages.fee.cashier.选择支付方式")))]),a("v-uni-view",{staticClass:"payment-methods"},[a("v-uni-view",{staticClass:"payment-container"},[e._l(e.paymentMethods.filter((function(e){return["abapay_khqr","alipay","wechat"].includes(e.value)})),(function(t){return a("v-uni-view",{key:t.value,staticClass:"payment-item",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.selectPaymentMethod(t.value)}}},[a("v-uni-view",{staticClass:"payment-icon"},[a("v-uni-image",{staticClass:"icon-img",attrs:{src:t.icon,mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"payment-label"},[e._v(e._s(e.$t("pages.fee.cashier."+t.label)))]),a("v-uni-view",{staticClass:"payment-radio"},[a("v-uni-view",{staticClass:"radio-circle",class:{"radio-checked":e.payment_option===t.value}},[e.payment_option===t.value?a("v-uni-view",{staticClass:"radio-dot"}):e._e()],1)],1)],1)})),e._l(e.paymentMethods.filter((function(e){return["google_pay","cards"].includes(e.value)})),(function(t){return e.showMorePayment?a("v-uni-view",{key:t.value,staticClass:"payment-item",on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.selectPaymentMethod(t.value)}}},[a("v-uni-view",{staticClass:"payment-icon"},[a("v-uni-image",{staticClass:"icon-img",attrs:{src:t.icon,mode:"widthFix"}})],1),a("v-uni-view",{staticClass:"payment-label"},[e._v(e._s(t.label))]),a("v-uni-view",{staticClass:"payment-radio"},[a("v-uni-view",{staticClass:"radio-circle",class:{"radio-checked":e.payment_option===t.value}},[e.payment_option===t.value?a("v-uni-view",{staticClass:"radio-dot"}):e._e()],1)],1)],1):e._e()}))],2),a("v-uni-view",{staticClass:"more-payment-toggle",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleMorePayment.apply(void 0,arguments)}}},[a("v-uni-text",[e._v(e._s(e.showMorePayment?e.$t("pages.fee.cashier.收起更多"):e.$t("pages.fee.cashier.更多支付方式")))]),a("v-uni-view",{staticClass:"toggle-icon",class:{"toggle-rotate":e.showMorePayment}},[a("uni-icons",{attrs:{type:"down",size:"16"}})],1)],1)],1)],1),e.appId?a("v-uni-view",{staticClass:"cu-bar btn-group",staticStyle:{"margin-top":"30px"}},[e.showQRButton?a("v-uni-button",{staticClass:"cu-btn bg-green shadow-blur round lg",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleQr.apply(void 0,arguments)}}},[e._v(" "+e._s(e.$t("pages.fee.cashier.展示二维码"))+" ")]):e._e(),a("v-uni-button",{staticClass:"cu-btn bg-blue shadow-blur round lg",attrs:{disabled:e.banButton},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._submit.apply(void 0,arguments)}}},[e._v(" "+e._s(e.$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"}},[e._v(" "+e._s(e.$t("pages.fee.cashier.确认支付"))+" ")])],1),a("tips",{ref:"tipRef"}),e.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(t){arguments[0]=t=e.$handleEvent(t),e.toggleQr.apply(void 0,arguments)}}},[e._v("×")]),a("v-uni-view",{staticClass:"qr-toast__title"},[e._v(e._s(e.$t("pages.fee.cashier.你是H5环境,请扫码支付哟")))]),a("v-uni-image",{staticClass:"qr-toast__image",attrs:{src:e.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(t){arguments[0]=t=e.$handleEvent(t),e.close_qr()}}},[e._v(" "+e._s(e.$t("pages.fee.cashier.已经支付"))+" ")]),a("v-uni-button",{staticClass:"qr-toast__btn qr-toast__btn--aba",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.gotoABA.apply(void 0,arguments)}}},[e._v(" "+e._s(e.$t("pages.fee.cashier.去ABA支付"))+" ")])],1)],1)],1):e._e()],1)},o=[]},a6b0:function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.cashierPayFee=function(e,t,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.requestNoAuth)({url:o.default.cashier,method:"POST",data:t,success:function(t){if("扣费为0回调成功"===t.data.msg){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})}uni.showToast({title:t.data.msg,duration:2e3}),console.log(t),console.log();var a=t.data.returnData.abapay_deeplink,n=t.data.orderId;e.aba_train_id=t.data.returnData.status.tran_id,e.order_id_query=t.data.orderId;var i=Date.now(),o=60*t.data.lifetime*1e3;e.order_lifetime_timestamp=i+o,e.qrImage=t.data.returnData.qrImage,e.abadeeplink=t.data.returnData.abapay_deeplink,e.app_store=t.data.returnData.app_store,e.play_store=t.data.returnData.play_store,"undefined"!==typeof plus?(plus.runtime.openURL(a,(function(t){console.log("打开结果:",t),t&&t.code&&(e.showQrToast=!0)})),e.banButton=!1):null!=window.Telegram.WebApp.initDataUnsafe.user?(window.open(a,"_blank"),e.banButton=!1):(e.showQrToast=!0,e.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:e.aba_train_id,qr_image:e.qrImage,abapayDeeplink:a,money:e.money,des:e.data.feeName,time:Date.now(),feeIds:e.data.feeIds}),console.log("order list:"),console.log(s);try{uni.setStorageSync("order_list",s),console.log("列表存储成功")}catch(c){console.log("列表存储失败",c)}},fail:function(t){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3}),e.banButton=!1}})},t.computeObjFee=function(e){return new Promise((function(t,a){(0,i.request)({url:o.default.computeObjFee,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.computePayFeeCoupon=function(e){return new Promise((function(t,a){(0,i.request)({url:o.default.computePayFeeCoupon,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.couponPropertyUserGiftCar=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.couponPropertyUserGiftCar,method:"POST",data:JSON.stringify(e),success:function(e){0!=e.data.code?a():t(e.data)},fail:function(e){a()}})}))},t.generatorCouponQrcode=function(e){return new Promise((function(t,a){(0,i.request)({url:o.default.generatorCouponQrcode,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.getCouponUsers=function(e,t){return new Promise((function(a,n){(0,i.requestNoAuth)({url:o.default.queryCouponUser,method:"GET",data:e,success:function(e){if(200==e.statusCode)return t=e.data,t.length<1&&n(),void a(t);n()},fail:function(e){n()}})}))},t.getFeeDiscounts=function(e){return new Promise((function(t,a){(0,i.request)({url:o.default.computeFeeDiscount,method:"GET",data:e,success:function(e){if(200!=e.statusCode)a();else{var n=e.data.data;t(n)}},fail:function(e){a()}})}))},t.getParkingCarCoupon=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.listParkingCouponCar,method:"GET",data:e,success:function(e){var n=e.data;0!=n.code?a(n.msg):t(n.data)},fail:function(e){a()}})}))},t.getQrCodeData=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.getNativeQrcodePayment,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.getRoomFees=function(e,t){return new Promise((function(a,n){var r=[];(0,i.request)({url:o.default.queryFeeByOwner,method:"GET",data:e,success:function(e){if(200==e.statusCode){var i=e.data.fees;return i.length<1&&n(),i.forEach((function(e){t=JSON.parse(JSON.stringify(t)),t.endTime=(0,s.dateTimeStringToDateString)(e.endTime);var a=new Date;e.endTime>a?t.feeStateName="正常":t.feeStateName="欠费",t.additionalAmount=e.additionalAmount,t.squarePrice=e.squarePrice,t.amount=e.feePrice,t.feeId=e.feeId,t.feeName=e.feeName,t.feeFlag=e.feeFlag,t.paymentCycle=e.paymentCycle,t.preDegrees=e.preDegrees,t.curDegrees=e.curDegrees,t.preReadingTime=e.preReadingTime,t.curReadingTime=e.curReadingTime,t.feeState=e.state,t.deadlineTime=e.deadlineTime,t.amountOwed=e.amountOwed,t.startTime=e.startTime,t.payOnline=e.payOnline,r.push(t)})),void a(r)}n()},fail:function(e){n()}})}))},t.getRoomOweFees=function(e){return new Promise((function(t,a){(0,i.request)({url:o.default.listOweFees,method:"GET",data:e,success:function(e){if(200==e.statusCode){var n=e.data.data;return n.length<1&&a(),n.forEach((function(e){e.endTime=(0,s.dateTimeStringToDateString)(e.endTime),e.deadlineTime=(0,s.dateTimeStringToDateString)(e.deadlineTime)})),void t(n)}a()},fail:function(e){a()}})}))},t.getTempCarFeeOrder=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.getTempCarFeeOrder,method:"GET",data:e,success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.payFeeApp=function(e,t){wx.showLoading({title:"支付中"}),(0,i.request)({url:o.default.preOrder,method:"POST",data:t,success:function(e){if(wx.hideLoading(),"0"==e.data.code){var t;e.data;return t=JSON.stringify({}),void uni.requestPayment({provider:"wxpay",orderInfo:t,success:function(e){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})},fail:function(e){console.log("fail:"+JSON.stringify(e))}})}if("100"==e.data.code){e.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(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},t.payFeeWechat=function(e,t,a){a||(a="/pages/successPage/successPage?msg=支付成功&objType=3003");wx.showLoading({title:"支付中"}),(0,i.request)({url:o.default.unifiedPayment,method:"POST",data:t,success:function(e){if(wx.hideLoading(),"0"!=e.data.code){if(200==e.statusCode&&"100"==e.data.code){e.data;return uni.showToast({title:"支付成功",duration:2e3}),void setTimeout((function(){uni.navigateBack({})}),2e3)}wx.showToast({title:"缴费失败"+e.data.msg,icon:"none",duration:2e3})}else{var t=e.data;WexinPayFactory.wexinPay(t,(function(){uni.navigateTo({url:a})}))}},fail:function(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},t.receiveParkingCoupon=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.saveParkingCouponCar,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.toAliPayTempCarFee=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.alipayPayTempCarFee,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},t.toPayTempCarFee=function(e){return new Promise((function(t,a){(0,i.requestNoAuth)({url:o.default.cashier,method:"POST",data:JSON.stringify(e),success:function(e){200!=e.statusCode?a():t(e.data)},fail:function(e){a()}})}))},a("bf0f"),a("2797"),a("d4b5"),a("aa9c");var i=a("a7bc"),o=n(a("79d4")),s=a("fcd3")},b14e:function(e,t,a){"use strict";a.r(t);var n=a("19b2"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},bee0:function(e,t,a){var n=a("fbc4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("f6136842",n,!0,{sourceMap:!1,shadowMode:!1})},bf7d:function(e,t,a){"use strict";a.r(t);var n=a("597f"),i=a("c046");for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);var s=a("828b"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"d88db4ee",null,!1,n["a"],void 0);t["default"]=r.exports},c046:function(e,t,a){"use strict";a.r(t);var n=a("7021"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},c8b3:function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.isShowLaterTime=function(){var e=uni.getStorageSync("later_time"),t=Date.now();if(!e)return!0;return t>e},t.setShowLaterTime=function(){var e=Date.now(),t=e+3e5;console.log("延迟5min"),uni.setStorageSync("later_time",t)}},fbc4:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";.block__title[data-v-ecb58d7e]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?0?% %?30?% %?20?%}.money-info[data-v-ecb58d7e]{height:%?400?%;margin:%?20?%}.money-info .money-black[data-v-ecb58d7e]{height:%?120?%}.money-info .money-title[data-v-ecb58d7e]{font-size:%?32?%}.money-info .money-value[data-v-ecb58d7e]{color:#e54d42;margin-top:%?20?%;font-size:%?64?%}.payment-methods[data-v-ecb58d7e]{padding:%?10?% %?30?%}.payment-methods .payment-row[data-v-ecb58d7e]{display:flex;flex-direction:column;\n /* 改为纵向排列 */gap:%?15?%;margin-bottom:%?20?%}.payment-methods .payment-item[data-v-ecb58d7e]{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-ecb58d7e]:hover{background-color:#eee}.payment-methods .payment-item[data-v-ecb58d7e]:has(.radio-checked){background-color:#e8f4fd;border:1px solid #007aff}.payment-methods .payment-icon[data-v-ecb58d7e]{width:%?50?%;\n /* 适当放大图标 */height:%?50?%;margin-right:%?20?%}.payment-methods .payment-icon .icon-img[data-v-ecb58d7e]{width:100%;height:100%;object-fit:contain}.payment-methods .payment-label[data-v-ecb58d7e]{flex:1;font-size:%?28?%;\n /* 放大文字 */white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.payment-methods .payment-radio .radio-circle[data-v-ecb58d7e]{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-ecb58d7e]{width:%?20?%;\n /* 放大选中点 */height:%?20?%;border-radius:50%;background-color:#007aff}.payment-methods .payment-radio .radio-checked[data-v-ecb58d7e]{border-color:#007aff}.payment-methods .more-payment-toggle[data-v-ecb58d7e]{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-ecb58d7e]{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-ecb58d7e]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.payment-methods .more-payment[data-v-ecb58d7e]{-webkit-animation:fadeIn-data-v-ecb58d7e .3s;animation:fadeIn-data-v-ecb58d7e .3s}@-webkit-keyframes fadeIn-data-v-ecb58d7e{from{opacity:0;-webkit-transform:translateY(%?10?%);transform:translateY(%?10?%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeIn-data-v-ecb58d7e{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-ecb58d7e]{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-ecb58d7e]{position:relative;background:#fff;border-radius:12px;padding:20px;width:260px;display:flex;flex-direction:column;align-items:center}\n/* 右上角关闭 */.qr-toast__close-icon[data-v-ecb58d7e]{position:absolute;top:10px;right:10px;font-size:20px;color:#999;cursor:pointer}\n/* 提示文字 */.qr-toast__title[data-v-ecb58d7e]{font-size:16px;color:#333;margin-bottom:15px;text-align:center}\n/* 二维码 */.qr-toast__image[data-v-ecb58d7e]{width:200px;height:auto;background:#fff;padding:10px;border-radius:8px;margin-bottom:20px}\n/* 底部按钮区:竖排 */.qr-toast__actions[data-v-ecb58d7e]{display:flex;flex-direction:column;gap:10px;width:100%}\n/* 通用按钮 */.qr-toast__btn[data-v-ecb58d7e]{padding:10px;font-size:14px;border-radius:6px;border:none;width:100%}\n/* 灰色按钮:确定支付 */.qr-toast__btn--confirm[data-v-ecb58d7e]{background:#666;color:#fff}\n/* 蓝色按钮:打开ABA */.qr-toast__btn--aba[data-v-ecb58d7e]{background:#007aff;color:#fff}',""]),e.exports=t}}]); |