效果图:
接口数据返回数组如下:
goodList:{
specs: [ {
specId: 8,
specName: “颜色”,
specValueList: [{id: 74, label: “白色”, value: “74”}, {id: 75, label: “蓝色”, value: “75”}]
},
{
specId: 9,
specName: “尺寸”,
specValueList: [{id: 82, label: “小”, value: “82”}, {id: 80, label: “大”, value: “80”}]
}
]
}
html部分
<view class="SpecificationsBox">
<view class="SpecificationsItem" v-for="(item,inde