Showing
1 changed file
with
4 additions
and
4 deletions
@@ -76,7 +76,7 @@ function choiceOut(data) { | @@ -76,7 +76,7 @@ function choiceOut(data) { | ||
76 | } | 76 | } |
77 | }).then(function(d) { | 77 | }).then(function(d) { |
78 | if (d.code === 200) { | 78 | if (d.code === 200) { |
79 | - window.history.go(0); | 79 | + window.location.reload(); |
80 | } | 80 | } |
81 | }); | 81 | }); |
82 | } | 82 | } |
@@ -433,7 +433,7 @@ function cartDel(data, delUrl, cookieList) { | @@ -433,7 +433,7 @@ function cartDel(data, delUrl, cookieList) { | ||
433 | path: '/' | 433 | path: '/' |
434 | }); | 434 | }); |
435 | } | 435 | } |
436 | - window.history.go(0); | 436 | + window.location.reload(); |
437 | } else if (d.code === 300) { | 437 | } else if (d.code === 300) { |
438 | $('.loading').hide(); | 438 | $('.loading').hide(); |
439 | new Alert(d.message).show(); | 439 | new Alert(d.message).show(); |
@@ -631,7 +631,7 @@ function countAJAX(data) { | @@ -631,7 +631,7 @@ function countAJAX(data) { | ||
631 | data: data | 631 | data: data |
632 | }).then(function(d) { | 632 | }).then(function(d) { |
633 | if (d.code === 200) { | 633 | if (d.code === 200) { |
634 | - window.history.go(0); | 634 | + window.location.reload(); |
635 | } else { | 635 | } else { |
636 | new Alert(d.message === '' ? '加入购物车失败哦~~' : d.message).show(); | 636 | new Alert(d.message === '' ? '加入购物车失败哦~~' : d.message).show(); |
637 | } | 637 | } |
@@ -683,7 +683,7 @@ function addcart(data, cookieList) { | @@ -683,7 +683,7 @@ function addcart(data, cookieList) { | ||
683 | data: data | 683 | data: data |
684 | }).then(function(d) { | 684 | }).then(function(d) { |
685 | if (d.code === 200) { | 685 | if (d.code === 200) { |
686 | - window.history.go(0); | 686 | + window.location.reload(); |
687 | if (cookieList) { | 687 | if (cookieList) { |
688 | window.setCookie('cart-del-list', JSON.stringify(cookieList), { | 688 | window.setCookie('cart-del-list', JSON.stringify(cookieList), { |
689 | domain: '.yohobuy.com', | 689 | domain: '.yohobuy.com', |
-
Please register or login to post a comment