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