zs 2 years ago
parent
commit
7ea757e3c6
2 changed files with 4 additions and 4 deletions
  1. 2 2
      pagesMy/collection/market.vue
  2. 2 2
      pagesMy/collection/shop.vue

+ 2 - 2
pagesMy/collection/market.vue

@@ -140,11 +140,10 @@
 				scrollTop: 0
 			};
 		},
-		onLoad: function() {
+		onShow: function() {
 			const that = this;
 			that.searchConfig();
 			that.watchLogin();
-			
 		},
 		methods: {
 			// 查询基本设置
@@ -170,6 +169,7 @@
 			// 购买
 			toView(e) {
 				const that = this;
+				that.clearPage();
 				uni.navigateTo({
 					url: `/pagesHome/order/detail?id=${e._id}`
 				})

+ 2 - 2
pagesMy/collection/shop.vue

@@ -120,11 +120,10 @@
 				scrollTop: 0
 			};
 		},
-		onLoad: function() {
+		onShow: function() {
 			const that = this;
 			that.searchConfig();
 			that.watchLogin();
-			
 		},
 		methods: {
 			// 查询基本设置
@@ -251,6 +250,7 @@
 			// 详细信息
 			toView(e) {
 				const that = this;
+				that.clearPage();
 				uni.navigateTo({
 					url: `/pagesHome/shop/index?id=${e._id}`
 				})