页面优化

This commit is contained in:
bayi
2018-05-16 13:30:49 +08:00
parent eeddd19c10
commit f033ba52e9
3 changed files with 167 additions and 160 deletions
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>城市涨幅排行</title>
<title>城市均价排行</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -18,6 +18,10 @@
color: #999;
text-align: center;
}
.list-block.cityList .item-subtitle div img {
width: 1rem;
margin: 0 auto;
}
</style>
</head>
@@ -211,6 +215,11 @@ $(function() {
.then(function (response) {
tableList.end = response.data.data.end;
tableList.list = tableList.list.concat(response.data.data.list);
if(pageBean.pageNo==1){
tableList.avgPrice = response.data.data.list[0].avgPrice;
tableList.city = response.data.data.list[0].city;
tableList.markup = response.data.data.list[0].markup;
}
pageBean.pageNo=pageBean.pageNo+1;
})
.catch(function (error) {