WechatOwnerService/unpackage/dist/build/h5/static/js/pages-payParkingFeeList-payParkingFeeList.a595c5d1.js
2020-06-17 09:58:09 +08:00

1 line
8.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-payParkingFeeList-payParkingFeeList"],{"11e8":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".ppfl_footer[data-v-6213cef8]{text-align:right}.ppfl_footer .ppfl_footer_his[data-v-6213cef8]{margin-right:%?20?%}.ppfl_c[data-v-6213cef8]{padding:%?0?% %?20?% %?20?% %?20?%}.block__title[data-v-6213cef8]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.ppfl_context[data-v-6213cef8]{padding:%?20?% %?40?% %?40?% %?40?%;font-size:%?28?%;color:#8a8a8a}.ppfl_context .ppfl_context_row[data-v-6213cef8]{margin-top:%?30?%}.button_up_blank[data-v-6213cef8]{height:%?40?%}.solid-bottom[data-v-6213cef8]::after{border-bottom:%?2?% solid rgba(0,0,0,.1)}.solid-top[data-v-6213cef8]::after{border-top:%?2?% solid rgba(0,0,0,.1)}.margin-header-top[data-v-6213cef8]{height:%?100?%}\n.header_fixed[data-v-6213cef8]{position:fixed;top:%?80?%;left:0;width:100%;z-index:2}\r\n",""]),t.exports=e},"40c0":function(t,e,a){"use strict";var n,i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:" text-center margin-top-100"},[a("v-uni-view",{},[a("v-uni-text",{staticClass:" cuIcon-warnfill light text-orange no-data-icon"})],1),a("v-uni-view",{},[a("v-uni-text",{staticClass:"text-gray"},[t._v("当前没有数据")])],1)],1)],1)},s=[];a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}))},"4cca":function(t,e,a){"use strict";var n=a("592b"),i=a.n(n);i.a},"592b":function(t,e,a){var n=a("83e8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("17a9e076",n,!0,{sourceMap:!1,shadowMode:!1})},6112:function(t,e,a){"use strict";a.r(e);var n=a("40c0"),i=a("b7a8");for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("4cca");var r,c=a("f0c5"),o=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"38c44226",null,!1,n["a"],r);e["default"]=o.exports},"7b13":function(t,e,a){"use strict";var n=a("ee27");a("4160"),a("ac1f"),a("5319"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("6112")),s=a("675c"),r=s.constant,c=s.util,o={data:function(){return{parkingSpaces:[],curParkingSpace:{},moreParkingSpaces:[],needFefresh:!0,noData:!1}},components:{noDataPage:i.default},onLoad:function(t){s.onLoad(t)},onReady:function(){},onShow:function(){var t=this;this.needFefresh?s.getOwner((function(e){t._loadParkingSpace(e)})):this.needFefresh=!0},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{payFee:function(t){uni.navigateTo({url:"/pages/payParkingFee/payParkingFee?fee="+JSON.stringify(t)})},_loadParkingSpace:function(t){var e=this;e.moreParkingSpaces=[];var a={page:1,row:10,ownerId:t.memberId,communityId:t.communityId};s.request({url:r.url.queryParkingSpacesByOwner,header:s.getHeaders(),method:"GET",data:a,success:function(t){if(console.log(t),200==t.statusCode){var a=t.data.parkingSpaces;if(e.parkingSpaces=a,0==a.length)return void(e.noData=!0);e.curParkingSpace=a[0],e._loadParkingSpaceFee()}},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},_loadParkingSpaceFee:function(){var t=this,e={page:1,row:30,payerObjId:t.curParkingSpace.psId,communityId:t.curParkingSpace.communityId};t.moreParkingSpaces=[],s.request({url:r.url.queryFeeByOwner,header:s.getHeaders(),method:"GET",data:e,success:function(e){if(200==e.statusCode){var a=e.data.fees;a.length<1&&(t.noData=!0),a.forEach((function(e){var a=e.endTime.replace(/\-/g,"/"),n=new Date(a);e.endTime=c.date.formatDate(n),e.num=t.curParkingSpace.num;var i=new Date;e.feeStateName=n>i?"正常":"欠费",t.moreParkingSpaces.push(e)}))}},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},payFeeDetail:function(t){uni.navigateTo({url:"/pages/payFeeDetail/payFeeDetail?fee="+JSON.stringify(t)})},switchParkingSpace:function(t){this.curParkingSpace=t,this.noData=!1,this._loadParkingSpaceFee()}}};e.default=o},"83e8":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".no-data-icon[data-v-38c44226]{font-size:%?200?%}.margin-top-100[data-v-38c44226]{margin-top:%?200?%}",""]),t.exports=e},8587:function(t,e,a){"use strict";a.r(e);var n=a("7b13"),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},b7a8:function(t,e,a){"use strict";a.r(e);var n=a("f612"),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},c146:function(t,e,a){"use strict";a.r(e);var n=a("ccc8"),i=a("8587");for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("d639");var r,c=a("f0c5"),o=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"6213cef8",null,!1,n["a"],r);e["default"]=o.exports},c233:function(t,e,a){var n=a("11e8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("632d57da",n,!0,{sourceMap:!1,shadowMode:!1})},ccc8:function(t,e,a){"use strict";var n={"no-data-page":a("6112").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",[a("v-uni-view",{staticClass:"header_fixed"},[t.parkingSpaces.length<5&&t.parkingSpaces.length>1?a("v-uni-scroll-view",{staticClass:"bg-white nav"},[a("v-uni-view",{staticClass:"flex text-center"},t._l(t.parkingSpaces,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.psId==t.curParkingSpace.psId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchParkingSpace(e)}}},[t._v(t._s(e.num)+"车位")])})),1)],1):t._e(),t.parkingSpaces.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.parkingSpaces,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.psId==t.curParkingSpace.psId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchParkingSpace(e)}}},[t._v(t._s(e.num)+"车位")])})),1):t._e()],1),1==t.parkingSpaces.length?a("v-uni-view",{staticClass:"block__title"},[t._v(t._s(t.parkingSpaces[0].num)+"车位")]):t._e(),t.parkingSpaces.length>1?a("v-uni-view",{staticClass:"margin-header-top"}):t._e(),0==t.noData?a("v-uni-view",t._l(t.moreParkingSpaces,(function(e,n){return a("v-uni-view",{key:n,staticClass:"bg-white margin-bottom margin-right-xs radius margin-left-xs padding-top padding-left padding-right"},[a("v-uni-view",{staticClass:"flex padding-bottom-xs solid-bottom justify-between"},[a("v-uni-view",[t._v(t._s(e.feeName))]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.feeStateName))])],1),a("v-uni-view",{staticClass:"flex margin-top justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("费用编码")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.feeId))])],1),a("v-uni-view",{staticClass:"flex margin-top justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("车牌号码")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(t.curParkingSpace.carNum))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("状态")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.stateName))])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("每月金额")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.feePrice)+"元")])],1),a("v-uni-view",{staticClass:"flex margin-top-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("到期时间")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.endTime))])],1),a("v-uni-view",{staticClass:"solid-top flex justify-end margin-top padding-top-sm padding-bottom-sm"},[a("v-uni-button",{staticClass:"cu-btn sm line-gray",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.payFeeDetail(e)}}},[t._v("历史缴费")]),a("v-uni-button",{staticClass:"cu-btn sm bg-green margin-left",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.payFee(e)}}},[t._v("缴费")])],1)],1)})),1):a("v-uni-view",[a("no-data-page")],1)],1)],1)},s=[];a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}))},d639:function(t,e,a){"use strict";var n=a("c233"),i=a.n(n);i.a},f612:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"NoDataPage",data:function(){return{}},methods:{}};e.default=n}}]);