Commit f4af3da410d6093b6db12ef83cb138f3217fbe6e
1 parent
a8752f36
搭配购的bug优化
Showing
1 changed file
with
1 additions
and
1 deletions
pages/cart/cart2/cart2.js
| @@ -5659,7 +5659,7 @@ Page({ | @@ -5659,7 +5659,7 @@ Page({ | ||
| 5659 | var item=this.data.all_collocation_list[e.index]; | 5659 | var item=this.data.all_collocation_list[e.index]; |
| 5660 | var coll_arr=this.data.collocation_goods; | 5660 | var coll_arr=this.data.collocation_goods; |
| 5661 | var find=coll_arr.findIndex(function (e){ | 5661 | var find=coll_arr.findIndex(function (e){ |
| 5662 | - e.goods_id=item.goods_id; | 5662 | + return e.goods_id==item.goods_id; |
| 5663 | }) | 5663 | }) |
| 5664 | coll_arr.splice(find,1); | 5664 | coll_arr.splice(find,1); |
| 5665 | 5665 |