Commit cf48065ce4d0f062a3fdf2d0cd1442f6ac77d649
1 parent
6a897269
购物车测试优化
Showing
2 changed files
with
7 additions
and
3 deletions
packageE/pages/cart/cart2/cart2.js
pages/cart/cart/cart.js
| ... | ... | @@ -1809,11 +1809,15 @@ Page({ |
| 1809 | 1809 | sele_arr[i] = !sele; |
| 1810 | 1810 | } |
| 1811 | 1811 | |
| 1812 | + th.data.pitems=-1; | |
| 1813 | + if (!sele) { | |
| 1814 | + th.data.pitems=pitems; | |
| 1815 | + } | |
| 1816 | + | |
| 1817 | + | |
| 1812 | 1818 | //-- 回调判断活动有没有冲突 -- |
| 1813 | 1819 | this.cx_check_ok(pitems, sele_arr, function (the_res) { |
| 1814 | 1820 | if (the_res.code == 0) { |
| 1815 | - | |
| 1816 | - | |
| 1817 | 1821 | //-- 门店是所有的商品都要选择 -- |
| 1818 | 1822 | for (var i = 0; i < item.length; i++) { |
| 1819 | 1823 | var txt0 = "requestData[" + pitems + "].goods[" + i + "].selected"; | ... | ... |