diff --git a/pageB/search/searchGoods.vue b/pageB/search/searchGoods.vue
index 8b118f2..b4c3efc 100644
--- a/pageB/search/searchGoods.vue
+++ b/pageB/search/searchGoods.vue
@@ -11,7 +11,7 @@
好评
-
+
@@ -39,7 +39,10 @@ export default {
loadStatus: 'loadmore',
timer: true, // 防止上拉加载短时间内多次调用,
value:"",
- top:0
+ scrollTop: 0,
+ old: {
+ scrollTop: 0
+ }
}
},
watch: {
@@ -65,6 +68,9 @@ export default {
this.ShopSearch()
},
methods: {
+ scroll: function(e) {
+ this.old.scrollTop = e.detail.scrollTop; // 必要
+ },
setNavSearchInput(keyword) {
console.log(keyword);
// #ifdef APP-PLUS
@@ -133,7 +139,10 @@ export default {
switchCurrent(current) {
this.page = 1
if(current == 1 && this.current == 1) this.priceOrderAsc = !this.priceOrderAsc;
- this.top=0
+ this.scrollTop = this.old.scrollTop
+ this.$nextTick(function() {
+ this.scrollTop = 0
+ });
this.ShopSearch()
this.current = current;
},