diff --git a/static/js/product/detail/detail.js b/static/js/product/detail/detail.js index f82f352..cda3a3c 100644 --- a/static/js/product/detail/detail.js +++ b/static/js/product/detail/detail.js @@ -75,8 +75,14 @@ $('#nav-tab li').on('click', function() { $('.goodsDiscount .dropdown').on('click', function() { if ($('.goodsDiscount .discount-folder').is(':hidden')) { + $('.goodsDiscount .first-item span').removeClass('icon-down'); + $('.goodsDiscount .first-item span').addClass('icon-up'); + $('.goodsDiscount .first-item span').html(''); $('.goodsDiscount .discount-folder').slideDown(); } else { + $('.goodsDiscount .first-item span').removeClass('icon-up'); + $('.goodsDiscount .first-item span').addClass('icon-down'); + $('.goodsDiscount .first-item span').html(''); $('.goodsDiscount .discount-folder').slideUp(); } }); diff --git a/template/m.yohobuy.com/actions/product/detail/index.phtml b/template/m.yohobuy.com/actions/product/detail/index.phtml index c8b29b5..d5636a8 100644 --- a/template/m.yohobuy.com/actions/product/detail/index.phtml +++ b/template/m.yohobuy.com/actions/product/detail/index.phtml @@ -45,7 +45,7 @@ <div class="goodsDiscount"> {{#each list}} {{#if @first}} - <h1>{{this}}<span class="iconfont dropdown"></span></h1> + <h1 class="first-item">{{this}}<span class="icon-down iconfont dropdown"></span></h1> <div class="discount-folder"> {{else}} <h1 class="folder-item">{{this}}</h1>