diff --git a/pkg-video/views/county-lottery.vue b/pkg-video/views/county-lottery.vue index b3e4dd7..7fcc71c 100644 --- a/pkg-video/views/county-lottery.vue +++ b/pkg-video/views/county-lottery.vue @@ -360,7 +360,10 @@ export default { }, submitFromSku() { const productSelect = this.getAttrItemData(this.attrValue) - const currentSelect = productSelect || this.attr.productSelect || {} + const currentSelect = { + ...(productSelect || {}), + ...(this.attr.productSelect || {}) + } const isGiftOrder = Number(this.currentGoodsItem && this.currentGoodsItem.isGiftCard) === 1 const stock = Number(currentSelect.stock || 0) const hasNo = (this.attr.productAttr.length && !productSelect && this.isOpen) || stock <= 0 @@ -374,7 +377,7 @@ export default { } const q = { productId: this.m_id, - cartNum: Number(currentSelect.cart_num || 1), + cartNum: Number((this.attr.productSelect && this.attr.productSelect.cart_num) || currentSelect.cart_num || 1), new: 1, uniqueId: currentSelect.unique || '' }