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

1 line
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-roomFeeList-roomFeeList"],{"025b":function(t,e,a){"use strict";var n={"no-data-page":a("6112").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.rooms.length<5&&t.rooms.length>1?a("v-uni-scroll-view",{staticClass:"bg-white nav"},[a("v-uni-view",{staticClass:"flex text-center"},t._l(t.rooms,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.roomId==t.curRoom.roomId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchRoom(e)}}},[t._v(t._s(e.floorNum)+"栋"+t._s(e.roomNum)+"室")])})),1)],1):t._e(),t.rooms.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.rooms,(function(e,n){return a("v-uni-view",{key:n,staticClass:"cu-item flex-sub",class:e.roomId==t.curRoom.roomId?"text-green cur":"",attrs:{"data-id":n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.switchRoom(e)}}},[t._v(t._s(e.floorNum)+"栋"+t._s(e.roomNum)+"室")])})),1):t._e()],1),1==t.rooms.length?a("v-uni-view",{staticClass:"block__title"},[t._v(t._s(t.rooms[0].floorNum)+"栋"+t._s(t.rooms[0].roomNum)+"室")]):t._e(),t.rooms.length>1?a("v-uni-view",{staticClass:"margin-header-top"}):t._e(),0==t.noData?a("v-uni-view",t._l(t.moreRooms,(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-xs justify-between"},[a("v-uni-view",{staticClass:"text-gray"},[t._v("楼层")]),a("v-uni-view",{staticClass:"text-gray"},[t._v(t._s(e.layer)+"层")])],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.amount)+"元")])],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)},i=[];a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}))},"1bcf":function(t,e,a){"use strict";a.r(e);var n=a("025b"),o=a("6f40");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("fb89");var s,r=a("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"41812936",null,!1,n["a"],s);e["default"]=u.exports},"40c0":function(t,e,a){"use strict";var n,o=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)},i=[];a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}))},"4adf":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".ppfl_footer[data-v-41812936]{text-align:right}.ppfl_footer .ppfl_footer_his[data-v-41812936]{margin-right:%?20?%}.ppfl_c[data-v-41812936]{padding:%?0?% %?20?% %?20?% %?20?%}.block__title[data-v-41812936]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}.ppfl_context[data-v-41812936]{padding:%?20?% %?40?% %?40?% %?40?%;font-size:%?28?%;color:#8a8a8a}.ppfl_context .ppfl_context_row[data-v-41812936]{margin-top:%?30?%}.button_up_blank[data-v-41812936]{height:%?40?%}.solid-bottom[data-v-41812936]::after{border-bottom:%?2?% solid rgba(0,0,0,.1)}.solid-top[data-v-41812936]::after{border-top:%?2?% solid rgba(0,0,0,.1)}.margin-header-top[data-v-41812936]{height:%?100?%}\n.header_fixed[data-v-41812936]{position:fixed;top:%?80?%;left:0;width:100%;z-index:2}\r\n",""]),t.exports=e},"4cca":function(t,e,a){"use strict";var n=a("592b"),o=a.n(n);o.a},"592b":function(t,e,a){var n=a("83e8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("17a9e076",n,!0,{sourceMap:!1,shadowMode:!1})},6112:function(t,e,a){"use strict";a.r(e);var n=a("40c0"),o=a("b7a8");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("4cca");var s,r=a("f0c5"),u=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"38c44226",null,!1,n["a"],s);e["default"]=u.exports},"6f40":function(t,e,a){"use strict";a.r(e);var n=a("8c34"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"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},"8c34":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 o=n(a("6112")),i=a("675c"),s=i.constant,r=i.util,u={data:function(){return{rooms:[],curRoom:{},moreRooms:[],needFefresh:!0,noData:!1}},components:{noDataPage:o.default},props:{},onLoad:function(t){i.onLoad(t)},onReady:function(){},onShow:function(){var t=this,e=this;this.needFefresh?(this.noData=!1,i.getRooms().then((function(a){var n=a.data.rooms;t.rooms=n;var o=a.data.owner;e.moreRooms=[],0!=n.length?(n.forEach((function(t){t.communityId=o.communityId,t.communityName=o.communityName})),e.curRoom=n[0],e._loadRoomFee()):e.noData=!0}))):this.needFefresh=!0},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{payFee:function(t){wx.navigateTo({url:"/pages/roomFee/roomFee?fee="+JSON.stringify(t)})},_loadRoomFee:function(){var t=this,e=this.curRoom,a={page:1,row:30,payerObjId:e.roomId,feeTypeCd:"888800010001",communityId:e.communityId};t.moreRooms=[],i.request({url:s.url.queryFeeByOwner,header:i.getHeaders(),method:"GET",data:a,success:function(a){if(console.log(a),200==a.statusCode){var n=a.data.fees;n.length<1&&(t.noData=!0),n.forEach((function(a){var n=a.endTime.replace(/\-/g,"/"),o=new Date(n),i=JSON.parse(JSON.stringify(e));i.endTime=r.date.formatDate(o);var s=new Date;i.feeStateName=o>s?"正常":"欠费",i.additionalAmount=a.additionalAmount,i.squarePrice=a.squarePrice,i.amount=a.feePrice,i.feeId=a.feeId,i.feeName=a.feeName,t.moreRooms.push(i)}))}},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})},payFeeDetail:function(t){wx.navigateTo({url:"/pages/payFeeDetail/payFeeDetail?fee="+JSON.stringify(t)})},switchRoom:function(t){this.curRoom=t,this.noData=!1,this._loadRoomFee()}}};e.default=u},b7a8:function(t,e,a){"use strict";a.r(e);var n=a("f612"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},e635:function(t,e,a){var n=a("4adf");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("d6efd138",n,!0,{sourceMap:!1,shadowMode:!1})},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},fb89:function(t,e,a){"use strict";var n=a("e635"),o=a.n(n);o.a}}]);