Authored by 姜枫

在新窗口打开详情页

... ... @@ -140,13 +140,13 @@ var YohoListPage = {
$('.goods-area > .goods').click(function() {
var url = $(this).data('url');
location.href = url;
YohoListPage.openWin(url);
});
$('.goods-wrapper > .goods').click(function() {
var url = $(this).data('url');
location.href = url;
YohoListPage.openWin(url);
});
$('.goods-area > .goods').mouseenter(function(e) {
... ... @@ -325,9 +325,7 @@ var YohoListPage = {
$('.goods .goods-img img', YohoListPage.goodsWrapper).attr('src', $(this).attr('src'));
});
$('.goods-img-list img', this.goodsWrapper).click(function() {
if ($(this).data('url')) {
location.href = $(this).data('url');
}
YohoListPage.openWin($(this).data('url'));
});
}
},
... ... @@ -340,6 +338,11 @@ var YohoListPage = {
var qs = $.extend(common.queryString(), q);
location.search = $.param(qs);
},
openWin: function(url) {
if (url) {
window.open(url);
}
}
};
... ...