// 选择规格
chooseitem (v, index, event, index3) {
let that = this;
let obj = {
firstIndex: index,
secondIndex: index3,
value: v
}
if (that.selectArr.length == 0) {
that.selectArr.push(obj)
} else {
let isFirst = that.selectArr.find(item => {
return item.firstIndex == obj.firstIndex
})
let isSecond = that.selectArr.find(row => {
return row.secondIndex == obj.secondIndex
})
if (isFirst == undefined && isSecond == undefined) {
that.selectArr.push(obj)
} else if (isFirst != undefined && isSecond == undefined) {
that.selectArr.splice(that.selectArr.indexOf(isFirst), 1)
that.selectArr.push(obj)
} else if (isFirst = undefined && isSecond != undefined) {
that.selectArr.push(obj)
} else {
that.selectArr.splice(that.selectArr.indexOf(isSecond), 1)
}
}
},