作者 lihongjuan

1

... ... @@ -187,8 +187,8 @@
this.editsel = !this.editsel;
this.cartid = [];
this.arr = [],
this.data = [],
this.seldelall = false;
this.data = [],
this.seldelall = false;
this.selall = false;
this.getcartlist()
},
... ... @@ -602,11 +602,14 @@
})
that.data3 = that.data3;
console.log(that.data3)
that.$forceUpdate()
that.data.forEach(function(value,index,array){
that.data3.forEach(function(valuek,indexk,arrayk){
console.log(value,valuek)
if(value.goods_id==valuek.goods_id){
valuek.number=value.number
value.number=valuek.number;
console.log(valuek.number)
}
})
... ... @@ -614,6 +617,7 @@
that.data=that.data;
that.data3=that.data3;
} else if (item.type == 1) {
that.data2.forEach(function(value, index, array) {
... ... @@ -631,7 +635,7 @@
that.data2.forEach(function(valuek,indexk,arrayk){
console.log(value,valuek)
if(value.goods_id==valuek.goods_id){
valuek.number=value.number
value.number=valuek.number
}
})
... ... @@ -656,7 +660,7 @@
that.data1.forEach(function(valuek,indexk,arrayk){
console.log(value,valuek)
if(value.goods_id==valuek.goods_id){
valuek.number=value.number
value.number=valuek.number
}
})
... ...