@@ -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}`