Fix(康养食材):[#1936]页面滑动后,无法进行搜索操作,只有刚进入页面未滑动过的状态才能搜索
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
type="text"
|
||||
placeholder="搜索内容"
|
||||
placeholder-style="color:#949494"
|
||||
@confirm="search"
|
||||
@confirm="searchClick"
|
||||
>
|
||||
<image
|
||||
:src="webUrl+'/20220903142935869059.png'"
|
||||
class="icon"
|
||||
mode="scaleToFill"
|
||||
@click="search"
|
||||
@click="searchClick"
|
||||
/>
|
||||
</view>
|
||||
<swiper
|
||||
@@ -178,7 +178,7 @@ export default {
|
||||
})
|
||||
fetchCity(4).then(({data}) => {
|
||||
this.asideList = data.group
|
||||
this.search()
|
||||
this.searchReq()
|
||||
})
|
||||
},
|
||||
changeTab(index) {
|
||||
@@ -187,13 +187,17 @@ export default {
|
||||
this.page = 1
|
||||
this.dataList = []
|
||||
this.tabIndex = index
|
||||
this.search()
|
||||
this.searchReq()
|
||||
},
|
||||
onLower() {
|
||||
this.page++
|
||||
this.search()
|
||||
this.searchReq()
|
||||
},
|
||||
search() {
|
||||
searchClick() {
|
||||
this.page = 1
|
||||
this.searchReq()
|
||||
},
|
||||
searchReq() {
|
||||
let param = {
|
||||
page: this.page,
|
||||
limit: 10,
|
||||
@@ -235,7 +239,7 @@ export default {
|
||||
this.asideIndex = index
|
||||
this.page = 1
|
||||
this.dataList = []
|
||||
this.search()
|
||||
this.searchReq()
|
||||
},
|
||||
goStore(id) {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user