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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
| /**
| 房源 组件
| **/
| (function (vc) {
|
| vc.extends({
| data: {
| rentingDetailInfo: {
| rentingFlows:[],
| fees:[],
| }
| },
| _initMethod: function () {
| //根据请求参数查询 查询 业主信息
| $that._loadRentingFlow();
| $that._loadRentingFee();
| },
| _initEvent: function () {
|
|
| },
| methods: {
|
| _loadRentingFlow:function(){
| let _rentingId = vc.getParam('rentingId');
|
| var param = {
| params: {
| communityId: vc.getCurrentCommunity().communityId,
| page: 1,
| row: 50,
| rentingId: _rentingId
| }
| };
|
| //发送get请求
| vc.http.apiGet('/rentingPoolFlow/queryRentingPoolFlow',
| param,
| function (json, res) {
| var _rentingFlow = JSON.parse(json);
| let total = _rentingFlow.total;
| if (total < 1) {
| return;
| }
| $that.rentingDetailInfo.rentingFlows = _rentingFlow.data;
|
| }, function (errInfo, error) {
| console.log('请求失败处理');
| }
| );
| },
| _loadRentingFee:function(){
| let _rentingId = vc.getParam('rentingId');
|
| var param = {
| params: {
| communityId: vc.getCurrentCommunity().communityId,
| page: 1,
| row: 50,
| rentingId: _rentingId
| }
| };
|
| //发送get请求
| vc.http.apiGet('/rentingFee/queryFee',
| param,
| function (json, res) {
| var _rentingFlow = JSON.parse(json);
| let total = _rentingFlow.total;
| if (total < 1) {
| return;
| }
| $that.rentingDetailInfo.fees = _rentingFlow.data;
|
| }, function (errInfo, error) {
| console.log('请求失败处理');
| }
| );
| },
| _getUserRole:function(_userRole){
|
| if(_userRole == 1){
| return "业主";
| }else if(_userRole == 2){
| return "租客";
| }{
| return "运营团队";
| }
| }
|
|
| }
| });
|
| })(window.vc);
|
|