Showing
1 changed file
with
7 additions
and
7 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', |
| @@ -927,10 +927,10 @@ $('.btn_account').on('click', function() { | @@ -927,10 +927,10 @@ $('.btn_account').on('click', function() { | ||
| 927 | var productId = []; | 927 | var productId = []; |
| 928 | $('.pay-wapper input:checked').parents('tr').each(function() { | 928 | $('.pay-wapper input:checked').parents('tr').each(function() { |
| 929 | if ($(this).attr('data-pid')) { | 929 | if ($(this).attr('data-pid')) { |
| 930 | - productId.push($(this).attr('data-pid')); | 930 | + productId.push($(this).attr('data-pid')); |
| 931 | } | 931 | } |
| 932 | }); | 932 | }); |
| 933 | - | 933 | + |
| 934 | // 结算点击埋点 | 934 | // 结算点击埋点 |
| 935 | window.addPoint('YB_SC_TOBUY_CLICK', {PRD_ID: productId.join(',')}); | 935 | window.addPoint('YB_SC_TOBUY_CLICK', {PRD_ID: productId.join(',')}); |
| 936 | 936 | ||
| @@ -957,4 +957,4 @@ $goodsDetail.on('selectstart', function() { | @@ -957,4 +957,4 @@ $goodsDetail.on('selectstart', function() { | ||
| 957 | scrollToFirst(); | 957 | scrollToFirst(); |
| 958 | 958 | ||
| 959 | // 购物车默认埋点 | 959 | // 购物车默认埋点 |
| 960 | -window.addPoint('YB_SC'); | ||
| 960 | +window.addPoint('YB_SC'); |
-
Please register or login to post a comment