Fix:5926 【商城小程序】多规格商品默认组合无库存时,组成该组合的两个规格属性因各自均无可售组合,导致全部规格按钮置灰。
This commit is contained in:
@@ -35,8 +35,7 @@
|
||||
v-for="(subItem, subIndex) in item.attrValue"
|
||||
:key="subIndex"
|
||||
:class="{
|
||||
'actived': subItem.check,
|
||||
'disabled': !subItem.canUsed
|
||||
'actived': subItem.check
|
||||
}"
|
||||
class="itemn v12-radius-40"
|
||||
@click="tapAttr(index, subIndex, subItem)"
|
||||
@@ -218,9 +217,9 @@ export default {
|
||||
},
|
||||
tapAttr(index, subIndex, subItem) {
|
||||
// 缺货的点击了没效果
|
||||
if (!subItem.canUsed || subItem.check) {
|
||||
return
|
||||
}
|
||||
// if (!subItem.canUsed || subItem.check) {
|
||||
// return
|
||||
// }
|
||||
this.attrObj.productAttr[index].attrValue.map((subItem, subIdx) => {
|
||||
subItem.check= false
|
||||
if (subIndex === subIdx) {
|
||||
|
||||
Reference in New Issue
Block a user