From 59625546271581965b0eaf51954f7888c2bc7969 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sat, 2 Apr 2022 16:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=A0=E9=99=A4=E8=B4=B9?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/deleteFee/deleteFee.js | 5 +- .../property/carStructure/carStructure.html | 21 ++++++ .../property/carStructure/carStructure.js | 70 +++++++++++++++++++ 3 files changed, 94 insertions(+), 2 deletions(-) create mode 100644 public/pages/property/carStructure/carStructure.html create mode 100644 public/pages/property/carStructure/carStructure.js diff --git a/public/components/property/deleteFee/deleteFee.js b/public/components/property/deleteFee/deleteFee.js index 3e621a7a7..169f6c9ae 100755 --- a/public/components/property/deleteFee/deleteFee.js +++ b/public/components/property/deleteFee/deleteFee.js @@ -28,7 +28,8 @@ }, function(json, res) { //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); - if (res.status == 200) { + let _json = JSON.parse(json); + if (_json.code == 0) { //关闭model $('#deleteFeeModel').modal('hide'); vc.emit('listRoomFee', 'notify', {}); @@ -40,7 +41,7 @@ vc.toast("删除费用成功"); return; } - vc.toast(json); + vc.toast(_json.msg); }, function(errInfo, error) { console.log('请求失败处理'); diff --git a/public/pages/property/carStructure/carStructure.html b/public/pages/property/carStructure/carStructure.html new file mode 100644 index 000000000..8908a7a44 --- /dev/null +++ b/public/pages/property/carStructure/carStructure.html @@ -0,0 +1,21 @@ +
+ +
+
+ +
+
+
+ +
+
{{room.floorNum}}-{{room.unitNum}}-{{room.roomNum}}
+
{{room.stateName}}
+
{{room.ownerName?room.ownerName:'无'}}
+
欠费:{{room.oweAmount}}元
+
+
+
+ +
+ +
\ No newline at end of file diff --git a/public/pages/property/carStructure/carStructure.js b/public/pages/property/carStructure/carStructure.js new file mode 100644 index 000000000..6014e31ea --- /dev/null +++ b/public/pages/property/carStructure/carStructure.js @@ -0,0 +1,70 @@ +/** + 入驻小区 + **/ +(function(vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + roomStructureInfo: { + rooms: [], + + } + }, + _initMethod: function() { + + }, + _initEvent: function() { + + vc.on('roomStructure', 'switchUnit', function(_param) { + $that._loadRooms(_param.unitId) + }); + + }, + methods: { + + _loadRooms: function(_unitId) { + let param = { + params: { + page: 1, + row: 100, + unitId: _unitId, + communityId: vc.getCurrentCommunity().communityId + } + } + vc.http.apiGet('/room.listRoomStructure', + param, + function(json, res) { + let listRoomData = JSON.parse(json); + $that.roomStructureInfo.rooms = listRoomData.data; + }, + function(errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _getBgColor: function(room) { + if (!room.ownerName) { + return "#1AB394"; + } + if (room.oweAmount > 0) { + return "#DC3545"; + } + return "#1296db" + }, + _toSimplifyAcceptance: function(_room) { + let _date = new Date(); + vc.saveData("JAVA110_IS_BACK", _date.getTime()); + vc.saveData('simplifyAcceptanceSearch', { + searchType: '1', + searchValue: _room.floorNum + "-" + _room.unitNum + "-" + _room.roomNum, + searchPlaceholder: '请输入房屋编号 楼栋-单元-房屋 如1-1-1', + }) + + vc.jumpToPage('/#/pages/property/simplifyAcceptance?tab=业务受理'); + + } + + } + }); +})(window.vc); \ No newline at end of file