guhongwei 2 years ago
parent
commit
b2cc58b27d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pages/home/index.vue

+ 2 - 1
pages/home/index.vue

@@ -244,8 +244,9 @@
 			},
 			// 购买
 			toBuy(e) {
+				console.log(e);
 				const that = this;
-				let id = that.market_type == '1' ? e._id : that.market_type == '2' ? e.goods._id : '';
+				let id = that.market_type == '1' ? e._id || e.id : that.market_type == '2' ? e.goods._id : '';
 				that.clearPage();
 				uni.navigateTo({
 					url: `/pagesHome/order/detail?id=${id}`