'; ss += '
'; ss += "
"; ss += '
扫一扫 分享到微信
'; ss += "
"; $(".yunmiaohui20244_ind09 .con ul li").eq(index).find(".share").append(ss); var ua = "canvas"; if (navigator.userAgent.indexOf("MSIE") > -1) { ua = "table" } jQuery("#codeqr1").qrcode({ render: ua, foreground: "#000", background: "#FFF", width: 102, height: 102, text: url }); } } $('body').click(function(e) { var target = $(e.target); if(!target.is('#codeqr1')&&!target.is('.yunmiaohui20244_ind09 .con ul li .bottom .share a.weixin')){ $(".yunmiaohui20244_ind09 .ind01cntvshare_weixin").remove() } }); var ind09index=1 var ind09liLen = $(".yunmiaohui20244_ind09 .con ul li").length; function showLi09(curPage, obj, pageSize) { // 获得ul下所有的li var lis = $(obj).find("ul li"); // 根据curPage计算出beginLi和endLi 就是要显示的li从那一条开始,到哪一条结束 var beginLi = (curPage - 1) * pageSize;// 从0开始 var endLi = beginLi + pageSize - 1; if (endLi >= lis.length - 1) { endLi = lis.length; } for (var i = beginLi; i <= endLi; i++) { $(lis).eq(i).css("display", "block"); } if (endLi >= lis.length - 1) { $(obj).find(".bot").remove() } } if(window.innerWidth<1024){ showLi09(ind09index, ".yunmiaohui20244_ind09 .con", 6) } $(".yunmiaohui20244_ind09 .con .bot span.load").click(function(){ if (ind09index <= Math.ceil(ind09liLen / 6)) { ind09index++; showLi09(ind09index, ".yunmiaohui20244_ind09 .con", 6) }else{ $(".yunmiaohui20244_ind09 .con .bot").remove() } })