');});var wechatClose = $(".dwechat-close");var wechatBox = $(".dwechat-box");var dWeChat = $(".dWeChat");var dOpenWeChat = $('.dOpenWeChat');var clipboard = new Clipboard('.dWeChat',{ text: function() { return 'xiangha100';} });clipboard.on('success', function(e) { wechatBox.show();_czc.push(['_trackEvent','微信导流','详情页导流步骤','复制成功']);});clipboard.on('error', function(e) { _czc.push(['_trackEvent','微信导流','详情页导流步骤','复制失败']);alert('复制失败,请直接在微信中搜索公众号 xiangha100');});wechatClose.on('click',function(){ _czc.push(['_trackEvent','微信导流','详情页打开微信弹框','关闭']);wechatBox.hide();});dOpenWeChat.on("click",function(){ _czc.push(['_trackEvent','微信导流','详情页打开微信弹框','点击']);window.location.href="weixin://";var hiddenProperty = 'hidden' in document ? 'hidden' : 'webkitHidden' in document ? 'webkitHidden' : 'mozHidden' in document ? 'mozHidden' : null;var timers = setTimeout(function(){ if (!document[hiddenProperty]) { if(timers){ clearTimeout(timers);} _czc.push(['_trackEvent','微信导流','详情页打开微信弹框','打开失败']);alert('打开微信失败,请直接去微信中粘贴并搜索公众号');} },1500);});