fix(goodsDetail): 商品详情规格点击问题处理
This commit is contained in:
parent
79ceaa468c
commit
c299b9f54a
|
@ -121,7 +121,10 @@
|
|||
</div>
|
||||
<!-- 规格 -->
|
||||
<div class="gui">
|
||||
<div v-for="item in filteredProductParams" :key="item.productId">
|
||||
<div
|
||||
v-for="(item, index) in filteredProductParams"
|
||||
:key="item.productId"
|
||||
>
|
||||
<div class="gui_t">
|
||||
<div class="gui_th">规格:</div>
|
||||
<div class="gui_y">
|
||||
|
@ -765,6 +768,11 @@ export default {
|
|||
);
|
||||
} else {
|
||||
let ggNum = 0;
|
||||
console.log(
|
||||
this.goodDetail.productParams,
|
||||
index,
|
||||
"this.goodDetail.productParams[index].waresItemsParamsList"
|
||||
);
|
||||
this.goodDetail.productParams[index].waresItemsParamsList.forEach(
|
||||
(item) => {
|
||||
ggNum += item.quantity;
|
||||
|
|
Loading…
Reference in New Issue