Commit 6d088487ef1f4e1a19ef7a6c9fb673f04f3686ac
1 parent
01ef0532
搭配购优化
Showing
1 changed file
with
9 additions
and
8 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -628,15 +628,16 @@ Page({ |
628 | 628 | |
629 | 629 | if (!collocation_list) return null; |
630 | 630 | |
631 | - var new_arr = []; | |
632 | - for (let i = 0; i < collocation_list.length; i++) { | |
633 | - var item0 = collocation_list[i]; | |
634 | - //判断物流配送一样的 | |
635 | - if (item0.distr_type == 0 || item0.distr_type == distr_t) { | |
636 | - new_arr.push(item0); | |
637 | - } | |
638 | - } | |
631 | + var new_arr = collocation_list; | |
632 | + // for (let i = 0; i < collocation_list.length; i++) { | |
633 | + // var item0 = collocation_list[i]; | |
634 | + // //判断物流配送一样的 | |
635 | + // if (item0.distr_type == 0 || item0.distr_type == distr_t) { | |
636 | + // new_arr.push(item0); | |
637 | + // } | |
639 | 638 | |
639 | + // } | |
640 | + | |
640 | 641 | if (!new_arr.length) return null; |
641 | 642 | if (arr) { |
642 | 643 | arr[index].collocationList = new_arr; | ... | ... |