Authored by Lynnic

增加goodsDiscount按钮效果

@@ -75,8 +75,14 @@ $('#nav-tab li').on('click', function() { @@ -75,8 +75,14 @@ $('#nav-tab li').on('click', function() {
75 75
76 $('.goodsDiscount .dropdown').on('click', function() { 76 $('.goodsDiscount .dropdown').on('click', function() {
77 if ($('.goodsDiscount .discount-folder').is(':hidden')) { 77 if ($('.goodsDiscount .discount-folder').is(':hidden')) {
  78 + $('.goodsDiscount .first-item span').removeClass('icon-down');
  79 + $('.goodsDiscount .first-item span').addClass('icon-up');
  80 + $('.goodsDiscount .first-item span').html('');
78 $('.goodsDiscount .discount-folder').slideDown(); 81 $('.goodsDiscount .discount-folder').slideDown();
79 } else { 82 } else {
  83 + $('.goodsDiscount .first-item span').removeClass('icon-up');
  84 + $('.goodsDiscount .first-item span').addClass('icon-down');
  85 + $('.goodsDiscount .first-item span').html('');
80 $('.goodsDiscount .discount-folder').slideUp(); 86 $('.goodsDiscount .discount-folder').slideUp();
81 } 87 }
82 }); 88 });
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 <div class="goodsDiscount"> 45 <div class="goodsDiscount">
46 {{#each list}} 46 {{#each list}}
47 {{#if @first}} 47 {{#if @first}}
48 - <h1>{{this}}<span class="iconfont dropdown">&#xe609;</span></h1> 48 + <h1 class="first-item">{{this}}<span class="icon-down iconfont dropdown">&#xe609;</span></h1>
49 <div class="discount-folder"> 49 <div class="discount-folder">
50 {{else}} 50 {{else}}
51 <h1 class="folder-item">{{this}}</h1> 51 <h1 class="folder-item">{{this}}</h1>