Skip to content

Commit 0711c93

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

4 files changed

Lines changed: 119 additions & 4 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<div id="component" class="wrapper wrapper-content">
2+
3+
<div class="row">
4+
<div class="col-lg-3">
5+
<div class="ibox ">
6+
<div class="ibox-title">
7+
<span class="label label-success float-right">总数</span>
8+
<h5>业主</h5>
9+
</div>
10+
<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>
13+
<small>未迁入</small>
14+
</div>
15+
</div>
16+
</div>
17+
<div class="col-lg-3">
18+
<div class="ibox ">
19+
<div class="ibox-title">
20+
<span class="label label-info float-right">总数</span>
21+
<h5>房屋</h5>
22+
</div>
23+
<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>
26+
<small>空闲</small>
27+
</div>
28+
</div>
29+
</div>
30+
<div class="col-lg-3">
31+
<div class="ibox ">
32+
<div class="ibox-title">
33+
<span class="label label-primary float-right">总数</span>
34+
<h5>停车位</h5>
35+
</div>
36+
<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>
39+
<small>空闲</small>
40+
</div>
41+
</div>
42+
</div>
43+
<div class="col-lg-3">
44+
<div class="ibox ">
45+
<div class="ibox-title">
46+
<span class="label label-danger float-right">总数</span>
47+
<h5></h5>
48+
</div>
49+
<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>
53+
</div>
54+
</div>
55+
</div>
56+
</div>
57+
58+
59+
</div>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
(function(vc){
2+
var DEFAULT_PAGE = 1;
3+
var DEFAULT_ROWS = 10;
4+
vc.extends({
5+
data:{
6+
indexContextInfo:{
7+
owners:[],
8+
total:0,
9+
records:1,
10+
errorInfo:""
11+
}
12+
},
13+
_initMethod:function(){
14+
//vc.component._listOwnerData(DEFAULT_PAGE,DEFAULT_ROWS);
15+
},
16+
_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+
});
23+
},
24+
methods:{
25+
_listOwnerData:function(_page,_row){
26+
var param = {
27+
params:{
28+
page:_page,
29+
row:_row,
30+
communityId:vc.getCurrentCommunity().communityId,
31+
ownerTypeCd:'1001'
32+
}
33+
}
34+
35+
//发送get请求
36+
vc.http.get('listOwner',
37+
'list',
38+
param,
39+
function(json,res){
40+
var listOwnerData =JSON.parse(json);
41+
42+
vc.component.listOwnerInfo.total = listOwnerData.total;
43+
vc.component.listOwnerInfo.records = listOwnerData.records;
44+
vc.component.listOwnerInfo.owners = listOwnerData.owners;
45+
46+
vc.emit('pagination','init',{
47+
total:vc.component.listOwnerInfo.records,
48+
currentPage:_page
49+
});
50+
},function(errInfo,error){
51+
console.log('请求失败处理');
52+
}
53+
);
54+
55+
}
56+
}
57+
})
58+
})(window.vc);

WebService/src/main/resources/components/nav/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav id="nav" class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
1+
<nav id="nav" class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
22
<div class="navbar-header">
33
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
44
<form role="search" class="navbar-form-custom" action="search_results.html">

WebService/src/main/resources/views/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
<vc:create name="nav"></vc:create>
2020
</div>
2121

22-
<div id="component">
23-
24-
</div>
22+
<vc:create name="indexContext"></vc:create>
2523

2624

2725
<vc:create name="copyright"></vc:create>

0 commit comments

Comments
 (0)