提交 6884d7a3 编写于 作者: chengxiang.li's avatar chengxiang.li

debug

上级 82f9d15a
......@@ -114,6 +114,7 @@
noMore: false,
totalPageNum: 0,
isInputResponse: false,
searchFlagTimer: null,
}
},
computed: {
......@@ -178,6 +179,7 @@
},
handleSearchListBlur() {
this.searchList = [];
clearTimeout(this.searchFlagTimer);
// console.log('blur.....')
},
handleSearchWrapScroll() {
......@@ -204,6 +206,8 @@
},
// 搜索框中输入文字 时 page=1 pageSize=30
handleInputSearch() {
// debugger;
clearTimeout(this.searchFlagTimer);
let that = this;
that.page = 1;
that.isInputResponse = false;
......@@ -217,6 +221,7 @@
page: 1,
pageSize: 30,
};
this.searchFlagTimer = setTimeout(() => {
goToSearch(params).then(res => {
console.log('>>>>>>*********** search: ', res)
if(res.code == '000000'){
......@@ -243,14 +248,19 @@
});
}
})
}, 300)
},
// 上拉加载更多
loadMore() {
// debugger;
console.log('loadmore...')
let that = this;
if( !that.isInputResponse ){
return;
}
if( !(that.searchList && that.searchList.length > 0) ){
return;
}
that.busy = true;
that.page += 1;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册