Fix(特产):[#1828]页面滑动商品后搜索功能无效
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="searchHandle"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="icon"
|
class="icon"
|
||||||
:src="webUrl+'/20220903142935869059.png'"
|
:src="webUrl+'/20220903142935869059.png'"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
@click="search"></image>
|
@click="searchHandle"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line-location flex ai-center">
|
<view class="line-location flex ai-center">
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
this.cityName = memCityName
|
this.cityName = memCityName
|
||||||
uni.removeStorageSync('cityName')
|
uni.removeStorageSync('cityName')
|
||||||
}
|
}
|
||||||
this.search()
|
this.search(1)
|
||||||
},
|
},
|
||||||
onLower() {
|
onLower() {
|
||||||
if (this.loading) {
|
if (this.loading) {
|
||||||
@@ -94,6 +94,11 @@ export default {
|
|||||||
this.page++
|
this.page++
|
||||||
this.search()
|
this.search()
|
||||||
},
|
},
|
||||||
|
searchHandle() {
|
||||||
|
// fix bug#1828
|
||||||
|
this.page = 1
|
||||||
|
this.search()
|
||||||
|
},
|
||||||
search() {
|
search() {
|
||||||
const _this = this
|
const _this = this
|
||||||
_this.loading = true
|
_this.loading = true
|
||||||
|
|||||||
Reference in New Issue
Block a user