diff --git a/src/pages/goods/index.vue b/src/pages/goods/index.vue index 44388e94..f1873be5 100644 --- a/src/pages/goods/index.vue +++ b/src/pages/goods/index.vue @@ -148,6 +148,8 @@ export default { if (login()) { this.userInfo = login(); } + console.log(this.$root.$mp.query.id); + this.id = this.$root.$mp.query.id; this.openId = getStorageOpenid(); @@ -165,7 +167,6 @@ export default { imageUrl: this.gallery[0].img_url //拿第一张商品的图片 }; }, - mounted() { }, data() { return { allnumber: 0,