Authored by htoooth

fix activity

... ... @@ -4,18 +4,19 @@
{{#if_cond activity.length '>' 3}}
<div class="activity-title">展开全部促销 <span class="iconfont index">&#xe610;</span> </div>
<div class="activity-container">
<ul class="activity">
{{#each activity}}
<li class="promotion-item">
<span class="ac-type">{{type}}</span>
<span class="ac-des">{{des}}</span>
</li>
{{/each}}
</ul>
</div>
{{/if_cond}}
<div class="activity-container">
<ul class="activity">
{{#each activity}}
<li class="promotion-item">
<span class="ac-type">{{type}}</span>
<span class="ac-des">{{des}}</span>
</li>
{{/each}}
</ul>
</div>
<div class="pull-left">
<ul class="activity">
{{#each activity}}
... ...
... ... @@ -30,7 +30,9 @@ var $main = $('.main'),
secKill = $main.data('seckill') === 'Y',
limitCode = $main.data('limitcode'),
isBundle = $main.data('type') === 2, // 量贩商品
goodsBaseNum = isBundle ? $main.data('count'): 1; // 每次购买最低件数
goodsBaseNum = isBundle ? $main.data('count') : 1; // 每次购买最低件数
var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
var SLIDETIME = 200;
... ... @@ -99,8 +101,6 @@ bindEvent.add(function() {
var isTicket = $('input[name="isTicket"]').length > 0 && $('input[name="isTicket"]').val() === 'true';
var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
var brandDomain = $('.home').attr('href');
var Alert = require('../common/dialog').Alert;
... ... @@ -234,8 +234,6 @@ bindEvent.add(function() {
$('.activity-title').click(function() {
$(this).toggleClass('active');
$('.activity-container').empty();
if ($(this).hasClass('active')) {
$(this).find('span').html(icon.fold);
$('.activity-container').slideDown(400);
... ... @@ -443,7 +441,7 @@ bindEvent.add(function() {
switchBtnStatus();
/// 到货通知:状态
// / 到货通知:状态
if ($this.data('notify') === 'Y') {
$enableNotifyYou.removeClass('hide');
... ... @@ -1069,7 +1067,7 @@ function fetchComment() {
$consultNum.text(res[0].total);
totalnum = Math.ceil(res[0].total / 10) * 20;
$consultsUl.empty().append(consultsTpl({
consults: res
}));
... ... @@ -1158,8 +1156,6 @@ function fetchComment() {
}
});
// 我要咨询
$('#consults-btn').click(function() {
... ...