...
|
...
|
@@ -11,6 +11,10 @@ define('yohood', function(require, exports) { |
|
|
//图片转换
|
|
|
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',
|
...
|
...
|
@@ -29,6 +33,7 @@ define('yohood', function(require, exports) { |
|
|
});
|
|
|
$(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',
|
...
|
...
|
@@ -102,7 +107,10 @@ define('yohood', function(require, exports) { |
|
|
part, topClass = '';
|
|
|
if (data.code == 200 && product != "") {
|
|
|
$.each(product, function(i, v) {
|
|
|
//http://img05.static.yohobuy.com/thumb/2014/08/01/02/015008fea15e6a7c44afc0a6293e87b594-0150x0200-2-goodsimg.jpg
|
|
|
pic = v.pic.split('|')[0].replace(/-(\w+)-/g, '-0150x0200-');
|
|
|
//http://img12.static.yhbimg.com/goodsimg/2015/05/27/09/0235d475f72b11a24128a02c7fc24d4cfc.jpg?imageView/2/w/100/h/100
|
|
|
pic = pic.replace('imageView/2/w/100/h/100','imageView/2/w/200/h/200');
|
|
|
parts = v.price.split('.');
|
|
|
topClass = pos > 2 ? '' : 'red';
|
|
|
html += '<li><a href="' + v.url + '" target="_blank" title="' + v.name + '">' +
|
...
|
...
|
@@ -460,6 +468,10 @@ define('yohood', function(require, exports) { |
|
|
$(this).css({width:"650px"});
|
|
|
}
|
|
|
});
|
|
|
//图片一张时,没有左右按钮
|
|
|
if($(".box").size() == 1) {
|
|
|
$(".slide-shadow").remove();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//详情页资讯
|
...
|
...
|
@@ -474,7 +486,7 @@ define('yohood', function(require, exports) { |
|
|
var titleStyle = '';
|
|
|
var html = '<div class="layout-item clearfix">'+
|
|
|
'<div class="image-box">'+
|
|
|
'<a href="'+url+'">' +
|
|
|
'<a href="'+url+'" target="_blank">' +
|
|
|
'<img src="'+img+'" alt="" style="height:230px;width:230px;">'+
|
|
|
'{playIcon}'+
|
|
|
'</a>'+
|
...
|
...
|
|