页面优化

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
+10 -1
View File
@@ -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) {
@@ -218,7 +227,7 @@ $(function() {
});
}
//预先加载10条
addItems(1, 10);
addItems(pageBean.pageNo, pageBean.pageSize);
// 上次加载的序号
var lastIndex = 10;