diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index b2bd15f..afb8657 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -900,14 +900,14 @@ export default { handleLoginFailure() return } - console.log(this.storeInfo); + console.log(this.attr); const params = { goodsId: this.id, goodsName: this.attr.productSelect.store_name, skuStr: this.attrValue, price: this.attr.productSelect.price, seckillId: this.activityId, - cover: this.attr.productSelect.image, + cover: this.attr.productSelect.image || this.storeInfo.image, goodsData: '', seckillData: '', isNegotiable: this.storeInfo.isNegotiable @@ -1276,7 +1276,7 @@ export default { 'store_name', this.storeInfo.storeName ) - this.$set(this.attr.productSelect, 'image', productSelect.image) + this.$set(this.attr.productSelect, 'image', productSelect.image || this.storeInfo.image) this.$set(this.attr.productSelect, 'price', productSelect.price) this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice) this.$set(this.attr.productSelect, 'stock', productSelect.stock) @@ -1403,7 +1403,7 @@ export default { subItem.check = true } }) - this.$set(this.attr.productSelect, 'image', productSelect.image) + this.$set(this.attr.productSelect, 'image', productSelect.image || this.storeInfo.image) this.$set(this.attr.productSelect, 'price', productSelect.price) this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice) this.$set(this.attr.productSelect, 'stock', productSelect.stock)