1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| /**
| 入驻小区
| **/
| (function (vc) {
| var DEFAULT_PAGE = 1;
| var DEFAULT_ROWS = 10;
| vc.extends({
| data: {
| carStructureInfo: {
| cars: []
| }
| },
| _initMethod: function () {
| },
| _initEvent: function () {
| vc.on('carStructure', 'switchUnit', function (_param) {
| $that._loadCars(_param.unitId)
| });
| },
| methods: {
| _loadCars: function (_unitId) {
| let param = {
| params: {
| page: 1,
| row: 100,
| unitId: _unitId,
| communityId: vc.getCurrentCommunity().communityId
| }
| }
| vc.http.apiGet('/car.listCarStructure',
| param,
| function (json, res) {
| let listCarData = JSON.parse(json);
| $that.carStructureInfo.cars = listCarData.data;
| },
| function (errInfo, error) {
| console.log('请求失败处理');
| }
| );
| },
| _getBgColor: function (car) {
| if (!car.ownerName) {
| return "#1AB394";
| }
| if (car.oweAmount > 0) {
| return "#DC3545";
| }
| return "#1296db"
| },
| _toSimplifyAcceptance: function (_car) {
| let _date = new Date();
| vc.saveData("JAVA110_IS_BACK", _date.getTime());
| vc.saveData('simplifyAcceptanceSearch', {
| searchType: '1',
| searchValue: _car.floorNum + "-" + _car.unitNum + "-" + _car.roomNum,
| searchPlaceholder: '请输入房屋编号 楼栋-单元-房屋 如1-1-1',
| })
| vc.jumpToPage('/#/pages/property/simplifyAcceptance?tab=业务受理');
| }
| }
| });
| })(window.vc);
|
|