Authored by xuhongyun

详情页和封面图中,不能带imageview2

... ... @@ -31,9 +31,15 @@ require("../util/jquery-ui.min");
$.each($imgs, function (index, node) {
$(node).removeAttr("width").removeAttr("height");
// 去除url中的imageview
var orignal_src = node.src;
if (orignal_src.indexOf('?') != -1) {
orignal_src = orignal_src.substring(0, orignal_src.indexOf('?'));
}
return arr.push({
_src: node.src,
src: node.src
_src: orignal_src,
src: orignal_src
});
});
... ...
... ... @@ -425,6 +425,11 @@ $(document).on('click', '.use-img', function() {
$(this).parent("a").removeClass("select_img");
var index=$(this).data("i");
var src=$(this).attr("src");
// 去除url中的imageview
if (src.indexOf('?') != -1) {
src = src.substring(0, src.indexOf('?'));
}
if(!uesImgMap.hasOwnProperty(index)){
uesImgMap[index]=src;
}else{
... ...