Browse Source

优惠券

zhengjinyi 3 years ago
parent
commit
0ce69ccdd4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/static/js/shopping/cart.js

+ 1 - 1
src/main/resources/static/js/shopping/cart.js

@@ -264,7 +264,7 @@ var shoppingCart = new Vue({
             _self.listData.forEach(function(shop,index){
             _self.listData.forEach(function(shop,index){
                 shop.cartList.forEach(function(pros){
                 shop.cartList.forEach(function(pros){
                     if(_self.submitIds.includes(pros.productId*1)){
                     if(_self.submitIds.includes(pros.productId*1)){
-                        _self.totalCouponList.map(function (coupon,index){//循环优惠券
+                        _self.totalCouponList.forEach(function (coupon,index){//循环优惠券
                             switch(coupon.couponType){
                             switch(coupon.couponType){
                                 case 0:// 活动券
                                 case 0:// 活动券
                                     if(coupon.productType == 1){// 活动券-全商城商品
                                     if(coupon.productType == 1){// 活动券-全商城商品