Showing
1 changed file
with
8 additions
and
7 deletions
@@ -16,12 +16,11 @@ var noticeSuccess = false; | @@ -16,12 +16,11 @@ var noticeSuccess = false; | ||
16 | * @param {[type]} options) { if (v1 [description] | 16 | * @param {[type]} options) { if (v1 [description] |
17 | * @return {[type]} [description] | 17 | * @return {[type]} [description] |
18 | */ | 18 | */ |
19 | -handlebars.registerHelper("equalone", function(v1, options) { | 19 | +handlebars.registerHelper('equalone', function(v1, options) { |
20 | + | ||
20 | if (v1 === '1') { | 21 | if (v1 === '1') { |
21 | - //满足添加继续执行 | ||
22 | return options.fn(this); | 22 | return options.fn(this); |
23 | } else { | 23 | } else { |
24 | - //不满足条件执行{{else}}部分 | ||
25 | return options.inverse(this); | 24 | return options.inverse(this); |
26 | } | 25 | } |
27 | }); | 26 | }); |
@@ -632,7 +631,7 @@ function actionListenDelCarGoods() { | @@ -632,7 +631,7 @@ function actionListenDelCarGoods() { | ||
632 | goodsid = $delcargoods.attr('goodsid'); | 631 | goodsid = $delcargoods.attr('goodsid'); |
633 | cheapest = $delcargoods.attr('cheapest'); | 632 | cheapest = $delcargoods.attr('cheapest'); |
634 | delCartGoods(goodsid, cheapest); | 633 | delCartGoods(goodsid, cheapest); |
635 | - }) | 634 | + }); |
636 | } | 635 | } |
637 | /** | 636 | /** |
638 | * 监听点击更多打折商品 | 637 | * 监听点击更多打折商品 |
@@ -643,9 +642,9 @@ function actionListenCartMore() { | @@ -643,9 +642,9 @@ function actionListenCartMore() { | ||
643 | 642 | ||
644 | $(document).on('click', '.mycart_i_down', function(e) { | 643 | $(document).on('click', '.mycart_i_down', function(e) { |
645 | $morecart = $(this); | 644 | $morecart = $(this); |
646 | - $morecart.toggleClass("mycart_i_up"); | 645 | + $morecart.toggleClass('mycart_i_up'); |
647 | $('#mycartmore').slideToggle(300); | 646 | $('#mycartmore').slideToggle(300); |
648 | - }) | 647 | + }); |
649 | } | 648 | } |
650 | /** | 649 | /** |
651 | * 点击购物车 | 650 | * 点击购物车 |
@@ -816,6 +815,7 @@ function actionLoopUpdCartNum() { | @@ -816,6 +815,7 @@ function actionLoopUpdCartNum() { | ||
816 | */ | 815 | */ |
817 | function actionExeTemplate() { | 816 | function actionExeTemplate() { |
818 | var resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, ''); | 817 | var resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, ''); |
818 | + | ||
819 | $('#goodcartempwarpper').html(resulthtml); | 819 | $('#goodcartempwarpper').html(resulthtml); |
820 | } | 820 | } |
821 | /** | 821 | /** |
@@ -849,5 +849,6 @@ function init() { | @@ -849,5 +849,6 @@ function init() { | ||
849 | actionClickMiniCartBox(); //点击购物车跳转 | 849 | actionClickMiniCartBox(); //点击购物车跳转 |
850 | actionListenDelCarGoods(); //监听购物车删除 | 850 | actionListenDelCarGoods(); //监听购物车删除 |
851 | actionListenCartMore(); // | 851 | actionListenCartMore(); // |
852 | -}; | 852 | +} |
853 | + | ||
853 | init(); | 854 | init(); |
-
Please register or login to post a comment