feat: 选品广场放开多规格

This commit is contained in:
2026-07-09 14:38:22 +08:00
parent edf992bf3a
commit f85a676742
@@ -419,16 +419,11 @@
? getGoodsNum(list[0].id)
: 1);
state.selectedSku = list[0];
// 按钮不能点击
if (propertyList.length && propertyList[0].values.length) {
const inStockList = skuList.value.filter((sku) => Number(sku?.stock) > 0);
propertyList[0].values.forEach((e) => {
let show = false;
list.forEach((e1) => {
if (e1.value_id_array.includes(e.id)) {
show = true;
}
});
e.disabled = !show;
const enabled = inStockList.some((sku) => sku.value_id_array.includes(e.id));
e.disabled = !enabled;
});
}
}