调整个人中心js
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
$("#mf_ul").empty();
|
||||
$.init()
|
||||
//加载flag
|
||||
var mf_loading = false;
|
||||
//最多可加载的条目
|
||||
@@ -10,6 +8,7 @@ var mf_lastIndex = 0;
|
||||
var mf_itemsPerLoad = 8;
|
||||
var mf_curpage = 1;
|
||||
var mf_totalCount = 0;
|
||||
|
||||
function addEstate(number, lastIndex) {
|
||||
mf_curpage = mf_lastIndex/mf_itemsPerLoad + 1;
|
||||
axios.get("/rest/myCollection/loadCollections",{params:{pageSize:mf_itemsPerLoad,page:mf_curpage}}).then(function(response){
|
||||
@@ -55,7 +54,6 @@ function addEstate(number, lastIndex) {
|
||||
starStr+='<i class="icon icon-star"></i>'
|
||||
}
|
||||
}
|
||||
|
||||
html+= '<li>'+
|
||||
'<a onclick="clicked(\'${basePath}/district/details?city='+this.city+'®ion='+this.region+'&name='+this.name+'\',true)" class="item-content">'+
|
||||
'<div class="item-inner">'+
|
||||
@@ -87,9 +85,4 @@ function addEstate(number, lastIndex) {
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
});
|
||||
console.log(1)
|
||||
}
|
||||
|
||||
//预先加载8条
|
||||
addEstate(mf_itemsPerLoad, 0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user