Skip to content

Commit e1715da

Browse files
committed
首页开发中
1 parent 0711c93 commit e1715da

5 files changed

Lines changed: 135 additions & 24 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<div class="row">
2+
3+
<div class="col-lg-12">
4+
<div class="ibox ">
5+
<div class="ibox-title">
6+
<h5>欠费信息</h5>
7+
<div class="ibox-tools">
8+
</div>
9+
</div>
10+
<div class="ibox-content">
11+
<div class="row">
12+
<div class="col-sm-9 m-b-xs">
13+
<div data-toggle="buttons" class="btn-group btn-group-toggle">
14+
<label class="btn btn-sm btn-white active"> <input type="radio" id="option1" name="options"> 物业费 </label>
15+
<label class="btn btn-sm btn-white "> <input type="radio" id="option2" name="options"> 停车费 </label>
16+
</div>
17+
</div>
18+
<div class="col-sm-3">
19+
<div class="input-group mb-3">
20+
<input type="text" class="form-control form-control-sm" placeholder="请输入业主名称">
21+
<div class="input-group-append">
22+
<button class="btn btn-sm btn-primary" type="button">查询</button>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
<div class="table-responsive">
28+
<table class="table table-striped">
29+
<thead>
30+
<tr>
31+
<th>费用ID </th>
32+
<th>业主名称 </th>
33+
<th>联系电话 </th>
34+
<th>房屋编号 </th>
35+
<th>费用开始时间 </th>
36+
<th>到期时间 </th>
37+
</tr>
38+
</thead>
39+
<tbody>
40+
<tr>
41+
<td>Project <small>This is example of project</small></td>
42+
<td>Patrick Smith</td>
43+
<td>0800 051213</td>
44+
<td>Inceptos Hymenaeos Ltd</td>
45+
<td><span class="pie">0.52/1.561</span></td>
46+
<td>20%</td>
47+
</tr>
48+
49+
50+
</tbody>
51+
</table>
52+
<!-- 分页 -->
53+
<vc:create name="pagination"></vc:create>
54+
</div>
55+
56+
</div>
57+
</div>
58+
</div>
59+
60+
</div>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
(function(vc){
2+
var DEFAULT_PAGE = 1;
3+
var DEFAULT_ROWS = 10;
4+
vc.extends({
5+
data:{
6+
indexArrearsInfo:{
7+
arrears:[],
8+
total:0,
9+
records:1
10+
}
11+
},
12+
_initMethod:function(){
13+
//vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
14+
},
15+
_initEvent:function(){
16+
17+
},
18+
methods:{
19+
_listOwnerData:function(_page,_row){
20+
var param = {
21+
params:{
22+
page:_page,
23+
row:_row,
24+
communityId:vc.getCurrentCommunity().communityId,
25+
ownerTypeCd:'1001'
26+
}
27+
}
28+
29+
//发送get请求
30+
vc.http.get('listOwner',
31+
'list',
32+
param,
33+
function(json,res){
34+
var listOwnerData =JSON.parse(json);
35+
36+
vc.component.listOwnerInfo.total = listOwnerData.total;
37+
vc.component.listOwnerInfo.records = listOwnerData.records;
38+
vc.component.listOwnerInfo.owners = listOwnerData.owners;
39+
40+
vc.emit('pagination','init',{
41+
total:vc.component.listOwnerInfo.records,
42+
currentPage:_page
43+
});
44+
},function(errInfo,error){
45+
console.log('请求失败处理');
46+
}
47+
);
48+
49+
}
50+
}
51+
})
52+
})(window.vc);

WebService/src/main/resources/components/index-context/indexContext.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<h5>业主</h5>
99
</div>
1010
<div class="ibox-content">
11-
<h1 class="no-margins">40 886,200</h1>
12-
<div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i></div>
11+
<h1 class="no-margins">{{indexContextInfo.ownerCount}}</h1>
12+
<div class="stat-percent font-bold text-success">{{indexContextInfo.noEnterRoomCount}} <i class="fa fa-bolt"></i></div>
1313
<small>未迁入</small>
1414
</div>
1515
</div>
@@ -21,8 +21,8 @@ <h1 class="no-margins">40 886,200</h1>
2121
<h5>房屋</h5>
2222
</div>
2323
<div class="ibox-content">
24-
<h1 class="no-margins">275,800</h1>
25-
<div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i></div>
24+
<h1 class="no-margins">{{indexContextInfo.roomCount}}</h1>
25+
<div class="stat-percent font-bold text-info">{{indexContextInfo.freeRoomCount}} <i class="fa fa-level-up"></i></div>
2626
<small>空闲</small>
2727
</div>
2828
</div>
@@ -34,8 +34,8 @@ <h1 class="no-margins">275,800</h1>
3434
<h5>停车位</h5>
3535
</div>
3636
<div class="ibox-content">
37-
<h1 class="no-margins">106,120</h1>
38-
<div class="stat-percent font-bold text-navy">44% <i class="fa fa-level-up"></i></div>
37+
<h1 class="no-margins">{{indexContextInfo.parkingSpaceCount}}</h1>
38+
<div class="stat-percent font-bold text-navy">{{indexContextInfo.freeParkingSpaceCount}} <i class="fa fa-level-up"></i></div>
3939
<small>空闲</small>
4040
</div>
4141
</div>
@@ -44,16 +44,17 @@ <h1 class="no-margins">106,120</h1>
4444
<div class="ibox ">
4545
<div class="ibox-title">
4646
<span class="label label-danger float-right">总数</span>
47-
<h5></h5>
47+
<h5>商铺</h5>
4848
</div>
4949
<div class="ibox-content">
50-
<h1 class="no-margins">80,600</h1>
51-
<div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i></div>
52-
<small>In first month</small>
50+
<h1 class="no-margins">{{indexContextInfo.shopCount}}</h1>
51+
<div class="stat-percent font-bold text-danger">{{indexContextInfo.freeShopCount}} <i class="fa fa-level-down"></i></div>
52+
<small>空闲</small>
5353
</div>
5454
</div>
5555
</div>
5656
</div>
5757

58+
<vc:create name="indexArrears"></vc:create>
5859

5960
</div>

WebService/src/main/resources/components/index-context/indexContext.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@
44
vc.extends({
55
data:{
66
indexContextInfo:{
7-
owners:[],
8-
total:0,
9-
records:1,
10-
errorInfo:""
7+
ownerCount:'1000',
8+
noEnterRoomCount:'90',
9+
roomCount:'2000',
10+
freeRoomCount:'100',
11+
parkingSpaceCount:'3000',
12+
freeParkingSpaceCount:'110',
13+
shopCount:'70',
14+
freeShopCount:'10'
15+
1116
}
1217
},
1318
_initMethod:function(){
1419
//vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
1520
},
1621
_initEvent:function(){
17-
vc.on('listOwner','listOwnerData',function(){
18-
vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
19-
});
20-
vc.on('pagination','page_event',function(_currentPage){
21-
vc.component._listOwnerData(_currentPage,DEFAULT_ROWS);
22-
});
22+
2323
},
2424
methods:{
2525
_listOwnerData:function(_page,_row){
2626
var param = {
2727
params:{
2828
page:_page,
2929
row:_row,
30-
communityId:vc.getCurrentCommunity().communityId,
31-
ownerTypeCd:'1001'
30+
communityId:vc.getCurrentCommunity().communityId
3231
}
3332
}
3433

WebService/src/main/resources/components/list-owner/listOwner.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
listOwnerInfo:{
77
owners:[],
88
total:0,
9-
records:1,
10-
errorInfo:""
9+
records:1
1110
}
1211
},
1312
_initMethod:function(){

0 commit comments

Comments
 (0)