...
|
...
|
@@ -222,6 +222,32 @@ bindEvent.add(function() { |
|
|
move(e);
|
|
|
});
|
|
|
|
|
|
//促销弹出框
|
|
|
var icon = {
|
|
|
unfold: '',
|
|
|
fold: ''
|
|
|
};
|
|
|
|
|
|
$('.activity-title').click(function() {
|
|
|
$(this).toggleClass('active');
|
|
|
$('.activity-container').empty();
|
|
|
|
|
|
if ($(this).hasClass('active')) {
|
|
|
$(this).find('span').html(icon.fold);
|
|
|
|
|
|
if (!$('.activity-container').html()) {
|
|
|
$('.activity-container').append($('.activity').clone().find('li').each(function() {
|
|
|
$(this).removeClass('hide');
|
|
|
}).end());
|
|
|
}
|
|
|
|
|
|
$('.activity-container').slideDown(400);
|
|
|
} else {
|
|
|
$(this).find('span').html(icon.unfold);
|
|
|
$('.activity-container').slideUp(400);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
function getCouponAsync(cid) {
|
|
|
var uid = getUid(); // eslint-disable-line
|
|
|
|
...
|
...
|
|