From 5ec97e99b89859526462461ed5a7ae9ee84699f9 Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Tue, 16 Dec 2025 19:47:44 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A4726=20=E3=80=90=E6=97=85=E5=B1=85?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E2=80=9C=E4=BA=A7=E5=93=81=E2=80=9D=E7=B1=BB=E7=9B=AE?= =?UTF-8?q?=E4=B8=8B=E6=96=B9=E5=95=86=E5=93=81=E7=9A=84=E5=8A=A0=E8=B4=AD?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=90=8E=EF=BC=8C=E5=8D=83=E5=8E=BF=E6=94=BB?= =?UTF-8?q?=E7=95=A5=E3=80=81=E8=B5=84=E8=AE=AF=E7=B1=BB=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mixins/goCartMixins.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mixins/goCartMixins.js b/mixins/goCartMixins.js index 6b84eef..3ae1a2e 100644 --- a/mixins/goCartMixins.js +++ b/mixins/goCartMixins.js @@ -14,7 +14,7 @@ export default { isOpen: false, attrTxt: '', attrValue: '', - id: null, + m_id: null, productValueArr: [], attr: { cartAttr: false, @@ -51,7 +51,7 @@ export default { } }, getSkuActiveStatus(selectedSku) { - getProductSkuBySelected({ id: this.id, selectedSku }).then(res => { + getProductSkuBySelected({ id: this.m_id, selectedSku }).then(res => { const { success, data } = res if (success) { for (const key in data) { @@ -75,7 +75,7 @@ export default { }) }, productCon() { - getProductDetail(this.id).then(res => { + getProductDetail(this.m_id).then(res => { const { data } = res this.storeInfo = {...data.storeInfo} if(data.storeInfo.stock === 0) { @@ -235,7 +235,7 @@ export default { // 点击加入购物车按钮 addToCart(item, id = 'id') { console.log(item, 'addToCart --------- item'); - this.id = item[id] + this.m_id = item[id] this.$nextTick(() => { this.productCon() @@ -259,7 +259,7 @@ export default { return } const q = { - productId: this.id, + productId: this.m_id, cartNum: this.attr.productSelect.cart_num, new: 0, uniqueId: this.attr.productSelect !== undefined ? this.attr.productSelect.unique : ''