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