邓洁 : 修改搜索框bug

This commit is contained in:
dengj
2023-11-22 10:41:43 +08:00
parent 424d0bb7fa
commit 4bd637e4e9
8 changed files with 81 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="root">
<InputAndSwiper @getQueryInfo="getInput" :bannerURL="swiperList"></InputAndSwiper>
<InputAndSwiper @getQueryInfo="getInput" :bannerURL="swiperList" :refresh="isRefresh"></InputAndSwiper>
<view>
<view class="dropdown-bug">
@@ -29,14 +29,15 @@
},
data() {
return {
pageSize: 3,
pageSize: 4,
pageNum: 1,
searchInfoList: [],
swiperList: [],
customQuery: {},
searchListLength: '',
showNull: false,
refresh: false
refresh: false,
isRefresh: false
}
},
onPullDownRefresh() {
@@ -56,6 +57,7 @@
},
onReachBottom() {
if (!this.refresh && this.searchListLength !== 0) {
this.isRefresh = true
this.pageNum++
this.getShopList()
console.log("触底加载");