(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-contractFeeList"],{"04d3":function(t,e,a){var n=a("6a77");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("967d").default;o("abce63dc",n,!0,{sourceMap:!1,shadowMode:!1})},"09c4":function(t,e,a){"use strict";var n=a("7f0c"),o=a.n(n);o.a},1186:function(t,e,a){"use strict";var n=a("04d3"),o=a.n(n);o.a},3754:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getContracts=function(){return new Promise((function(t,e){(0,r.getCurOwner)().then((function(a){(0,o.request)({url:i.default.queryContract,method:"GET",data:{communityId:a.communityId,objId:a.ownerId,page:1,row:50},success:function(n){if(200==n.statusCode){if(n.data["owner"]=a,0==n.data.data.length)return void e("业主没有合同信息");t(n.data)}else e("查询合同失败")},fail:function(t){e(t)}})}))}))},e.getCurContract=function(t){return t.page=1,t.row=1,new Promise((function(e,a){(0,r.getCurOwner)().then((function(n){t.communityId=n.communityId,(0,o.request)({url:i.default.queryContract,method:"GET",data:t,success:function(t){if(200==t.statusCode){if(0==t.data.data.length)return void a("业主没有合同信息");e(t.data.data[0])}else a("查询合同失败")},fail:function(t){a(t)}})}))}))},a("bf0f");var o=a("a7bc"),i=n(a("79d4")),r=(n(a("bce4")),a("1803"))},"6a77":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".ppfl_footer[data-v-06b6333e]{text-align:right}.ppfl_footer .ppfl_footer_his[data-v-06b6333e]{margin-right:%?20?%}.ppfl_c[data-v-06b6333e]{padding:%?0?% %?20?% %?20?% %?20?%}.block__title[data-v-06b6333e]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.ppfl_context[data-v-06b6333e]{padding:%?20?% %?40?% %?40?% %?40?%;font-size:%?28?%;color:#8a8a8a}.ppfl_context .ppfl_context_row[data-v-06b6333e]{margin-top:%?30?%}.button_up_blank[data-v-06b6333e]{height:%?40?%}.solid-bottom[data-v-06b6333e]::after{border-bottom:%?2?% solid rgba(0,0,0,.1)}.solid-top[data-v-06b6333e]::after{border-top:%?2?% solid rgba(0,0,0,.1)}.margin-header-top[data-v-06b6333e]{height:%?100?%}\n.header_fixed[data-v-06b6333e]{position:fixed;top:%?0?%;left:0;width:100%;z-index:2}\n.cu-btn.lgplus[data-v-06b6333e]{padding:0 20px;font-size:18px;height:%?100?%}.cu-btn.sharp[data-v-06b6333e]{border-radius:%?0?%}.line-height[data-v-06b6333e]{line-height:%?100?%}",""]),t.exports=e},"73ff":function(t,e,a){"use strict";a.r(e);var n=a("f4a0"),o=a("8199");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("1186");var r=a("828b"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"06b6333e",null,!1,n["a"],void 0);e["default"]=u.exports},"7f0c":function(t,e,a){var n=a("8140");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("967d").default;o("6fdd22c2",n,!0,{sourceMap:!1,shadowMode:!1})},8140:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".no-data-icon[data-v-332247a6]{font-size:%?200?%}.margin-top-100[data-v-332247a6]{margin-top:%?200?%}",""]),t.exports=e},8199:function(t,e,a){"use strict";a.r(e);var n=a("f8e3"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"82c9":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"NoDataPage",data:function(){return{}},methods:{}}},a0a9:function(t,e,a){"use strict";a.r(e);var n=a("82c9"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.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,o.requestNoAuth)({url:i.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 o=Date.now(),i=60*e.data.lifetime*1e3;if(t.order_lifetime_timestamp=o+i,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:t.$t("pages.fee.unifiedPaymentCashier.提示"),content:t.$t("pages.fee.unifiedPaymentCashier.是否打开ABA应用完成支付")+"?",showCancel:!0,cancelText:t.$t("pages.fee.unifiedPaymentCashier.取消"),confirmText:t.$t("pages.fee.unifiedPaymentCashier.打开"),success:function(e){console.log("用户点击了确认按钮:",e),e.confirm&&window.open(a,"_blank"),console.log(" _that.startQueryTimer();"),t.startQueryTimer(),t.showQrToast=!0},fail:function(e){console.error("弹窗交互失败:",e),t.startQueryTimer(),t.showQrToast=!0}});var r=[];try{var u=uni.getStorageSync("order_list");u?r=u:console.log("存储数据为空,使用默认空列表")}catch(s){console.log("无存储数据,使用默认空列表",s)}r.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(r);try{uni.setStorageSync("order_list",r),console.log("列表存储成功")}catch(s){console.log("列表存储失败",s)}}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,o.request)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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 u=[];(0,o.request)({url:i.default.queryFeeByOwner,method:"GET",data:t,success:function(t){if(200==t.statusCode){var o=t.data.fees;return o.length<1&&n(),o.forEach((function(t){e=JSON.parse(JSON.stringify(e)),e.endTime=(0,r.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,u.push(e)})),void a(u)}n()},fail:function(t){n()}})}))},e.getRoomOweFees=function(t){return new Promise((function(e,a){(0,o.request)({url:i.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,r.dateTimeStringToDateString)(t.endTime),t.deadlineTime=(0,r.dateTimeStringToDateString)(t.deadlineTime)})),void e(n)}a()},fail:function(t){a()}})}))},e.getTempCarFeeOrder=function(t){return new Promise((function(e,a){(0,o.requestNoAuth)({url:i.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,o.request)({url:i.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,o.request)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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,o.requestNoAuth)({url:i.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 o=a("a7bc"),i=n(a("79d4")),r=a("fcd3")},acb8:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[e("v-uni-view",{staticClass:" text-center margin-top-100"},[e("v-uni-view",{},[e("v-uni-text",{staticClass:" cuIcon-warnfill light text-orange no-data-icon"})],1),e("v-uni-view",{},[e("v-uni-text",{staticClass:"text-gray"},[this._v(" "+this._s(this.$t("components.no-data-page.no-data-page.当前没有数据")))])],1)],1)],1)},o=[]},b703:function(t,e,a){"use strict";a.r(e);var n=a("acb8"),o=a("a0a9");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("09c4");var r=a("828b"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"332247a6",null,!1,n["a"],void 0);e["default"]=u.exports},f4a0:function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={noDataPage:a("b703").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"header_fixed"},[t.contracts.length<5&&t.contracts.length>1?a("v-uni-scroll-view",{staticClass:"bg-white nav"},[a("v-uni-view",{staticClass:"flex text-center"},t._l(t.contracts,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.contractId==t.curContract.contractId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchContract(e)}}},[t._v(" "+t._s(e.contractName)+" ")])})),1)],1):t._e(),t.contracts.length>4?a("v-uni-scroll-view",{staticClass:"bg-white nav",attrs:{"scroll-x":!0,"scroll-with-animation":!0,"scroll-left":"true"}},t._l(t.contracts,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.contractId==t.curContract.contractId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchContract(e)}}},[t._v(" "+t._s(e.contractName)+" ")])})),1):t._e()],1),1==t.contracts.length?a("v-uni-view",{staticClass:"block__title"},[t._v(t._s(t.contracts[0].contractName))]):t._e(),t.contracts.length>1?a("v-uni-view",{staticClass:"margin-header-top"}):t._e(),0==t.noData?a("v-uni-view",t._l(t.moreContracts,(function(e,n){return t.moreContracts.length>0?a("v-uni-view",{key:n,staticClass:"cu-list menu",attrs:{"data-item":e},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.payFee(e)}}},[a("v-uni-view",{staticClass:"cu-item arrow"},[a("v-uni-view",{staticClass:"content padding-tb-sm"},[a("v-uni-view",[a("v-uni-view",{staticClass:"text-cut",staticStyle:{width:"220px"}},[t._v(t._s(e.feeName))])],1)],1)],1)],1):t._e()})),1):a("v-uni-view",[a("no-data-page")],1)],1)},i=[]},f8e3:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("bf0f"),a("2797"),a("d4b5");var o=n(a("d5d0")),i=n(a("b703")),r=a("3754"),u=a("a6b0"),s=(o.default.constant,{data:function(){return{contracts:[],curContract:{},moreContracts:[],needFefresh:!0,noData:!1}},components:{noDataPage:i.default},onLoad:function(t){o.default.onLoad(t)},onShow:function(){var t=this,e=this;this.needFefresh?(this.noData=!1,(0,r.getContracts)().then((function(a){var n=a.data;t.contracts=n;var o=a.owner;e.moreContracts=[],0!=n.length?(n.forEach((function(t){t.communityId=o.communityId,t.communityName=o.communityName})),e.curContract=n[0],e._loadContractFee()):e.noData=!0}))):this.needFefresh=!0},methods:{payFee:function(t){wx.navigateTo({url:"/pages/fee/contractFee?fee="+JSON.stringify(t)})},_loadContractFee:function(){var t=this,e=this.curContract,a={page:1,row:30,payerObjId:e.contractId,communityId:e.communityId,state:"2008001"};t.moreContracts=[],(0,u.getRoomFees)(a,e).then((function(e){t.moreContracts=e,t.noData=!1}),(function(){t.noData=!0}))},switchContract:function(t){this.curContract=t,this.noData=!1,this._loadContractFee()},toContractOweFee:function(){this.vc.isEmpty(this.curContract.contractId)?uni.showToast({icon:"none",title:"没有房屋"}):this.vc.navigateTo({url:"/pages/fee/contractOweFee?contractId="+this.curContract.contractId})}}});e.default=s}}]);