Authored by xuhongyun

支持双击打开调用图片的原始大图

... ... @@ -12,7 +12,7 @@ var grayroute = require("./mid/grayrouter");
/*session 配置*/
var options = {
secret: 'yohobuy.portal', //session配置
cookie: {secure: false, maxAge: 7200000},
cookie: {secure: false, maxAge: 7200000, domain: '.yohobuy.com'},
resave: false,
saveUninitialized: true,
rolling: true
... ...
... ... @@ -456,6 +456,16 @@ require("../util/jquery-ui.min");
// 刷新选中图片的顺序编号
me.renderSelectIndex();
});
$(document).on("dblclick", ".edui-image-product .edui-product-content .edui-image-pic", function (e) {
var url = $(this).attr("src");
var original_url = url.split('?')[0];
if (original_url != "") {
window.open(original_url);
}
e.stopPropagation();
});
}
},
renderSelectIndex: function () {
... ...