...
|
...
|
@@ -240,6 +240,61 @@ define('channel', function(require, exports) { |
|
|
$('.slide-navigator').hide();
|
|
|
$('.slide-control').hide();
|
|
|
}
|
|
|
if (parseInt($("#right_banner").attr("num")) > 0) {
|
|
|
$("#img_flow").find(".layout-item").eq(2).before($("#right_banner").html());
|
|
|
}
|
|
|
//设置瀑布流
|
|
|
exports.setFlowLayout = setFlowLayout = function() {
|
|
|
$('.fluid-list-inner').freetile({
|
|
|
animate: false,
|
|
|
elementDelay: 0
|
|
|
});
|
|
|
imgTransform($(".image-box img"));
|
|
|
}
|
|
|
//图片转换
|
|
|
var imgTransform = function(obj) {
|
|
|
obj.bind("mousemove", function() {
|
|
|
if ($(this).attr("disopen") == 1) { //禁止
|
|
|
return false;
|
|
|
}
|
|
|
//图片变大
|
|
|
if ($(this).attr("isopen") != 1) {
|
|
|
$(this).css({
|
|
|
'-webkit-transition': '-webkit-transform .5s ease-in',
|
|
|
'-moz-transition': '-moz-transform .5s ease-in',
|
|
|
'-ms-transition': '-ms-transform .5s ease-in',
|
|
|
'-o-transition': '-o-transform .5s ease-in',
|
|
|
'transition': 'transform .5s ease-in',
|
|
|
'-webkit-transform': 'scale(1.2)',
|
|
|
'-moz-transform': 'scale(1.2)',
|
|
|
'-ms-transform': 'scale(1.2)',
|
|
|
'-o-transform': 'scale(1.2)',
|
|
|
'transform': 'scale(1.2)'
|
|
|
});
|
|
|
$(this).attr("isopen", 1);
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
|
obj.bind("mouseout", function() {
|
|
|
if ($(this).attr("isopen") == 1) {
|
|
|
//图片还原
|
|
|
$(this).css({
|
|
|
'-webkit-transition': '-webkit-transform .5s ease-in',
|
|
|
'-moz-transition': '-moz-transform .5s ease-in',
|
|
|
'-ms-transition': '-ms-transform .5s ease-in',
|
|
|
'-o-transition': '-o-transform .5s ease-in',
|
|
|
'transition': 'transform .5s ease-in',
|
|
|
'-webkit-transform': 'scale(1)',
|
|
|
'-moz-transform': 'scale(1)',
|
|
|
'-ms-transform': 'scale(1)',
|
|
|
'-o-transform': 'scale(1)',
|
|
|
'transform': 'scale(1)'
|
|
|
});
|
|
|
$(this).attr("isopen", 0);
|
|
|
}
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
var sortPos = 0;
|
|
|
var productGenders = [];
|
|
|
var currentGenderPos = 0;
|
...
|
...
|
|