Commit b77d9480e2d32b703a71f993b70b348929ca6b3b
Merge branch 'dev' into 'test'
全额预售 不可以使用包邮券 See merge request !803
Showing
1 changed file
with
3 additions
and
10 deletions
packageC/pages/presell/cart/cart2.js
@@ -472,7 +472,7 @@ Page({ | @@ -472,7 +472,7 @@ Page({ | ||
472 | wx.showToast({title: "未找到商品", icon: 'none', duration: 3000}); | 472 | wx.showToast({title: "未找到商品", icon: 'none', duration: 3000}); |
473 | return false; | 473 | return false; |
474 | } | 474 | } |
475 | - | 475 | + |
476 | //这个位置要拿活动的预售价 | 476 | //这个位置要拿活动的预售价 |
477 | t.data.data.shop_price = prelist.presell_money; | 477 | t.data.data.shop_price = prelist.presell_money; |
478 | th.setData({ | 478 | th.setData({ |
@@ -1975,20 +1975,13 @@ Page({ | @@ -1975,20 +1975,13 @@ Page({ | ||
1975 | var txt = ""; | 1975 | var txt = ""; |
1976 | var txt1 = ""; | 1976 | var txt1 = ""; |
1977 | var quan_item = null; | 1977 | var quan_item = null; |
1978 | - if (th.data.is_b_now) { | 1978 | + |
1979 | quan_item = this.data.get_by_quan_list[ind]; | 1979 | quan_item = this.data.get_by_quan_list[ind]; |
1980 | txt = "get_by_quan_list[" + ind + "].show_red"; | 1980 | txt = "get_by_quan_list[" + ind + "].show_red"; |
1981 | var obj = {}; | 1981 | var obj = {}; |
1982 | obj[txt] = 1; | 1982 | obj[txt] = 1; |
1983 | this.setData(obj); | 1983 | this.setData(obj); |
1984 | - } else { | ||
1985 | - txt = "by_quan_list_cart[" + ind + "].show_red"; | ||
1986 | - quan_item = th.data.by_quan_list_cart[ind]; | ||
1987 | - var obj = {}; | ||
1988 | - obj[txt] = 1; | ||
1989 | - this.setData(obj); | ||
1990 | - th.data.get_by_quan_list_cart[pickid] = JSON.parse(JSON.stringify(th.data.by_quan_list_cart)); //要把选中的弄回数组 | ||
1991 | - } | 1984 | + |
1992 | 1985 | ||
1993 | if (using_quan[th.data.selected_quan_pick]) { | 1986 | if (using_quan[th.data.selected_quan_pick]) { |
1994 | using_quan[th.data.selected_quan_pick].is_nouse_red = 0; | 1987 | using_quan[th.data.selected_quan_pick].is_nouse_red = 0; |