$(function(){$(".goods-wall")[0]&&($.guang.goods.conf.justFlow=!0,$.guang.goods.init(),$(".ilike-m").live("click",function(){if($.guang.dialog.isLogin()){var a=$(this);if("disable"!=a.data("enable")){a.data("enable","disable");setTimeout(function(){a.data("enable","enable")},1E3);var h=a.attr("data-type"),d=a.attr("data-proid"),g=a.closest(".goods").find(".like-count:first"),e=null;$.guang.judgement.repeatIdentityClk=function(b){a.data("enable","enable");$("#cmtDialog")[0]&&(clearTimeout(e),$("#cmtDialog").remove());
var c;c='<div id="cmtDialog" class="c-dialog" style="width:180px"><p class="title clearfix"><a class="cmtclose fr" href="javascript:;">x</a>&gt;_&lt;\u559c\u6b22\u8fc7\u4e86~</p>'+('<a  href="' + GUANGER.path + "index.php?app=baobei&ac=" + d + '" class="sbl-btn speakmore" data-type="3" data-proid="'+d+'">\u518d\u8bf4\u4e24\u53e5</a>');$("body").append(c+"</div>");$(".cmt-txa").focus(function(){var a=$("#cmtDialog").offset().top;$("#cmtDialog").css({top:a-50+"px",height:104});$(this).height(50);$(".cmt-txa").unbind("focus")});b=$.guang.util.getPosition(b).topMid();
c=$("#cmtDialog").outerWidth();var f=$("#cmtDialog").outerHeight();$("#cmtDialog").css({left:b.x-c/2+"px",top:b.y-f-12+"px"}).fadeIn();e=setTimeout(function(){$("#cmtDialog").fadeOut().remove()},3E3);$("#J_CommentTag").unbind("click").bind("click",function(){$.guang.cmt.commentAndAddTagsSubmitOkClk=function(){};var b=a.prev().attr("title"),c=a.prev().find("img").attr("src"),d=a.prev().attr("href").indexOf("http")>=0?a.prev().attr("href"):"http://"+window.location.host+a.prev().attr("href");a.attr("data-type",
"3");$.guang.cmt.commentAndAddTags(a,"","",b,c,d,[],"fromNonDetail")})};$.guang.judgement.identityCallback=function(b){a.data("enable","enable");g.text(parseInt(g.text())+1);var c;c='<div id="cmtDialog" class="c-dialog"><p class="title clearfix"><a class="cmtclose fr" href="javascript:;">x</a>\u559c\u6b22\u4e86~</p>'+('<a  class="sbl-btn speakmore" data-type="0" data-proid="'+d+'" href="' + GUANGER.path + "index.php?app=baobei&ac=" + d + '">\u518d\u8bf4\u4e24\u53e5</a>');$("body").append(c+"</div>");$(".cmt-txa").focus(function(){var a=$("#cmtDialog").offset().top;
$("#cmtDialog").css({top:a-50+"px",height:104});$(this).height(50);$(".cmt-txa").unbind("focus")});b=$.guang.util.getPosition(b).topMid();c=$("#cmtDialog").outerWidth();var f=$("#cmtDialog").outerHeight();$("#cmtDialog").css({left:b.x-c/2+"px",top:b.y-f-12+"px"}).fadeIn();e=setTimeout(function(){$("#cmtDialog").fadeOut().remove()},3E3);$("#J_CommentTag").unbind("click").bind("click",function(){$.guang.cmt.commentAndAddTagsSubmitOkClk=function(){};var b=a.prev().attr("title"),c=a.prev().find("img").attr("src"),
d=0<=a.prev().attr("href").indexOf("http")?a.prev().attr("href"):"http://"+window.location.host+a.prev().attr("href");$.guang.cmt.commentAndAddTags(a,"","",b,c,d,[],"fromNonDetail")})};$.guang.judgement.identityOper(a,d,h);isLikeEnable="true"}}}))});
