<!-- DailyRanking -->
{% set totalDailyRanking = totalDailyRanking() %}
{% if totalDailyRanking %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>
(function ($) {
$(function () {
/*初期表示*/
$('#item-ranking .ranking-cont').hide();
$('#item-ranking .ranking-cont').eq(0).show();
$('#item-ranking .category-tab .tab').eq(0).addClass('is-active');
$('#item-ranking .category-tab .tab').each(function () {
$(this).on('click', function () {
var index = $('#item-ranking .category-tab .tab').index(this);
$('#item-ranking .category-tab .tab').removeClass('is-active');
$(this).addClass('is-active');
$('#item-ranking .ranking-cont').hide();
$('#item-ranking .ranking-cont').eq(index).show();
});
});
});
})($.noConflict(true));
</script>
<section class="mb60">
<div class="ranking-container">
<h2 class="simple-h2 mt40">人気ランキング</h2>
<ul class="ranking-wrapper mousedragscrollable">
{% for genre, rankingDataList in totalDailyRanking %}
<li>
<h3>{{ rankingDataList.1.goods_genre_text }}</h3>
<div class="ranking-box">
{% for ranking_no, rankingData in rankingDataList %}
<div class="ranking-box-block">
<a href="/item/{{ rankingData.item_id }}.html">
<img width="88" height="88" alt=""
class="item-img "
src="{{ rankingData.image_url }}">
<div class="ranking-box-block-right">
<p class="rank"><span>{{ ranking_no }}</span>位</p>
<h4 class="item-name">{{ rankingData.goods_name }}</h4>
<p class="price">
{{ ('<span class="get-price-ajax formed plain" data-item-id="' ~ rankingData.goods_id ~ '"></span><span class="yen">円(税込)</span>') | raw }}
</p>
</div>
</a>
</div>
{% endfor %}
</div>
</li>
{% endfor %}
</ul>
</div>
</section>
{% endif %}
<!-- /DailyRanking -->