Browse Source

搜索优化

master
wanghongjun 2 years ago
parent
commit
149728981d
  1. 5
      pages/search/index.vue

5
pages/search/index.vue

@ -112,13 +112,13 @@
* 搜索提交 * 搜索提交
*/ */
async onSearch() { async onSearch() {
await this.getGoodsList() await this.upCallback()
await this.getHomeListImage() await this.getHomeListImage()
}, },
// tab // tab
async changeTab(val) { async changeTab(val) {
this.tabKey = val this.tabKey = val
await this.getGoodsList() await this.upCallback()
await this.getHomeListImage() await this.getHomeListImage()
}, },
/** /**
@ -131,6 +131,7 @@
// //
await app.getGoodsList(page.num) await app.getGoodsList(page.num)
.then(list => { .then(list => {
console.log(list)
const curPageLen = list.data.length const curPageLen = list.data.length
const totalSize = list.data.total const totalSize = list.data.total
app.mescroll.endBySize(curPageLen, totalSize) app.mescroll.endBySize(curPageLen, totalSize)

Loading…
Cancel
Save