(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-oweFeeGarden"],{4283:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,".ppf_item[data-v-180401f5]{padding:%?0?% %?0?% %?0?% %?0?%}.block__title[data-v-180401f5]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.button_up_blank[data-v-180401f5]{height:%?40?%}.block__bottom[data-v-180401f5]{height:%?180?%}.fee-last[data-v-180401f5]{margin-bottom:%?200?%}.cu-btn.lgplus[data-v-180401f5]{padding:0 20px;font-size:18px;height:%?100?%}.cu-btn.sharp[data-v-180401f5]{border-radius:%?0?%}.line-height[data-v-180401f5]{line-height:%?100?%}",""]),e.exports=t},"56ef":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("bf0f"),a("2797"),a("aa9c"),a("e838");var o=n(a("d5d0")),i=a("93db"),u=(a("fcd3"),a("1c9a"),a("a6b0")),s=a("1803"),r=(o.default.constant,{data:function(){return{scrollLeft:0,amount:0,receivableAmount:0,communityId:"",communityName:"",appId:"",fees:[],feeRooms:[],roomId:"",storeId:""}},onLoad:function(e){var t=this;o.default.onLoad(e),(0,s.getCurOwner)().then((function(e){t.communityId=e.communityId,t.communityName=e.communityName,t.ownerId=e.ownerId,t._loadOweFee()}))},methods:{_loadOweFee:function(){var e=this,t={ownerId:this.ownerId,page:1,row:50,communityId:this.communityId};(0,u.getRoomOweFees)(t).then((function(t){return e.fees=t,t&&t.length>0&&(e.storeId=t[0].incomeObjId),t}),(function(e){uni.showToast({icon:"none",title:this.$t("pages.fee.oweFeeGarden.没有应缴费用")})})).then((function(t){t.forEach((function(t){e.receivableAmount+=t.feePrice,e.hasInFeeRoom(t)})),e.receivableAmount=e.receivableAmount.toFixed(2)}))},hasInFeeRoom:function(e){var t=null;this.feeRooms.forEach((function(a){a.payerObjName==e.payerObjName&&(t=a)})),t?(t.feePrice=parseFloat(t.feePrice)+parseFloat(e.feePrice),t.feePrice=t.feePrice.toFixed(2)):this.feeRooms.push(e)},onPayFee:function(){(0,i.payOweFee)(this)}}});t.default=r},7576:function(e,t,a){var n=a("4283");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=a("967d").default;o("15240249",n,!0,{sourceMap:!1,shadowMode:!1})},"82ae":function(e,t,a){"use strict";var n=a("7576"),o=a.n(n);o.a},"84c8":function(e,t,a){"use strict";a.r(t);var n=a("9f9a"),o=a("fd73");for(var i in o)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(i);a("82ae");var u=a("828b"),s=Object(u["a"])(o["default"],n["b"],n["c"],!1,null,"180401f5",null,!1,n["a"],void 0);t["default"]=s.exports},"93db":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.payOweFee=function(e){var t=e.receivableAmount;wx.showLoading({title:"支付中"});var a={business:"oweFee",cycles:e.feeMonth,communityId:e.communityId,ownerId:e.ownerId,feeName:"物业费",receivedAmount:t,tradeType:"JSAPI",appId:uni.getStorageSync(u.default.W_APP_ID),storeId:e.storeId};o.default.request({url:s.default.unifiedPayment,header:o.default.getHeaders(),method:"POST",data:a,success:function(e){if(200==e.statusCode&&"0"==e.data.code){var t=e.data;return i.default.wexinPay(t,(function(){uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})})),void wx.hideLoading()}wx.hideLoading(),wx.showToast({title:"缴费失败",icon:"none",duration:2e3})},fail:function(e){wx.hideLoading(),wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})};var o=n(a("d5d0")),i=n(a("14e5")),u=n(a("bce4")),s=n(a("79d4"))},"9f9a":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),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-scroll-view",{staticStyle:{"padding-bottom":"200rpx"},attrs:{"scroll-y":!0}},[e.fees.length>0?a("v-uni-view",{staticClass:"block__title"},[e._v(" "+e._s(e.$t("pages.fee.oweFeeGarden.应缴费用")))]):e._e(),e._l(e.feeRooms,(function(t,n){return a("v-uni-view",{key:n,staticClass:"cu-list menu",attrs:{"data-item":t}},[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:"150px"}},[e._v(e._s(t.payerObjName))])],1)],1),a("v-uni-view",{staticClass:"action"},[a("v-uni-text",{staticClass:"text-grey text-sm"},[e._v(" "+e._s(e.$t("pages.fee.oweFeeGarden.应缴"))+":¥"+e._s(t.feePrice))])],1)],1)],1)}))],2),e.fees.length>0?a("v-uni-view",{staticClass:"bg-white border flex justify-end",staticStyle:{position:"fixed",width:"100%",bottom:"0"}},[a("v-uni-view",{staticClass:"action text-orange margin-right line-height"},[e._v(" "+e._s(e.$t("pages.fee.oweFeeGarden.合计"))+":"+e._s(e.receivableAmount)+"元 ")]),a("v-uni-view",{staticClass:"btn-group"},[a("v-uni-button",{staticClass:"cu-btn bg-red shadow-blur lgplus sharp",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onPayFee()}}},[e._v(" "+e._s(e.$t("pages.fee.oweFeeGarden.缴费")))])],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,o.requestNoAuth)({url:i.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 o=Date.now(),i=60*t.data.lifetime*1e3;if(e.order_lifetime_timestamp=o+i,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,void 0!=e.abadeeplink){if("undefined"!==typeof plus)plus.runtime.openURL(a,(function(t){console.log("打开结果:",t),t&&t.code&&(e.showQrToast=!0)})),e.banButton=!1;else try{var u=window.open(a,"_blank");if(!u)return;setTimeout((function(){u&&!u.closed&&(u.close(),e.showQrToast=!0,e.showQRButton=!0)}),2e3)}catch(d){console.error("window.open 错误:",d)}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)}}else uni.showModal({title:"Error",content:t.data.returnData.status.message,showCancel:!1})},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,o.request)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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 s=[];(0,o.request)({url:i.default.queryFeeByOwner,method:"GET",data:e,success:function(e){if(200==e.statusCode){var o=e.data.fees;return o.length<1&&n(),o.forEach((function(e){t=JSON.parse(JSON.stringify(t)),t.endTime=(0,u.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,s.push(t)})),void a(s)}n()},fail:function(e){n()}})}))},t.getRoomOweFees=function(e){return new Promise((function(t,a){(0,o.request)({url:i.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,u.dateTimeStringToDateString)(e.endTime),e.deadlineTime=(0,u.dateTimeStringToDateString)(e.deadlineTime)})),void t(n)}a()},fail:function(e){a()}})}))},t.getTempCarFeeOrder=function(e){return new Promise((function(t,a){(0,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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 o=a("a7bc"),i=n(a("79d4")),u=a("fcd3")},fd73:function(e,t,a){"use strict";a.r(t);var n=a("56ef"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=o.a}}]);