From 39a94a51ec1744350f6c2b12944faf455e2bee6b Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Thu, 14 May 2026 10:15:50 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5265=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9=E5=87=BB=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E6=8C=89=E9=92=AE=E9=80=89=E6=8B=A9=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E6=B4=BB=E5=8A=A8=E5=95=86=E5=93=81=EF=BC=8C=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=B8=8B=E5=8D=95=E9=A1=B5=E9=9D=A2=E6=97=B6=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=95=B0=E9=87=8F=E4=BB=8D=E6=98=BE=E7=A4=BA=E4=B8=BA?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg-video/views/county-lottery.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 || '' }