/*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ function clipboard_info(f,V){f=$(f.trigger);var g="";b=f.html(),b!=V&&(g=b,f.html(V)),g&&setTimeout(function(){f.html(g)},3e3)}!function(f,V){"object"==typeof exports&&"object"==typeof module?module.exports=V():"function"==typeof define&&define.amd?define([],V):"object"==typeof exports?exports.ClipboardJS=V():f.ClipboardJS=V()}(this,function(){return g={},f.m=V=[function(f,V){f.exports=function(f){var V;if("SELECT"===f.nodeName)f.focus(),V=f.value;else if("INPUT"===f.nodeName||"TEXTAREA"===f.nodeName){var g=f.hasAttribute("readonly");g||f.setAttribute("readonly",""),f.select(),f.setSelectionRange(0,f.value.length),g||f.removeAttribute("readonly"),V=f.value}else{f.hasAttribute("contenteditable")&&f.focus();var e=window.getSelection(),c=document.createRange();c.selectNodeContents(f),e.removeAllRanges(),e.addRange(c),V=e.toString()}return V}},function(f,V){function g(){}g.prototype={on:function(f,V,g){var e=this.e||(this.e={});return(e[f]||(e[f]=[])).push({fn:V,ctx:g}),this},once:function(f,V,g){var e=this;function c(){e.off(f,c),V.apply(g,arguments)}return c._=V,this.on(f,c,g)},emit:function(f){for(var V=[].slice.call(arguments,1),g=((this.e||(this.e={}))[f]||[]).slice(),e=0,c=g.length;e8||8==V[0]&&V[1]>0||8==V[0]&&0==V[1]&&V[2]>=15?(V=!1,V=!0):V=!0:V=!1,{isWx:V}}();function ly_tk_Path(){var f=document.currentScript.src,V=f.split("/");f="";for(let index=0;index
'),$("#hw-layer").fadeIn(),$(".hw-text").html(f),$(".hw-wrap").fadeIn(),$(".hw-text img").length>0?$(".hw-text img").load(function(){(V=($(window).height()-$(".hw-wrap").height())/2-10)<0&&(V=0),$(".hw-wrap").css({top:V})}):$(document).ready(function(){(V=($(window).height()-$(".hw-wrap").height())/2-10)<0&&(V=0),$(".hw-wrap").css({top:V})})}function ms_alert(f,V){V=V||1,0==$(".ms-alert").length&&$("body").append('
'),f&&($(".ms-text").html(f),$(".ms-text").css({"font-size":V+"rem"}),$(".ms-alert").fadeIn(),setTimeout('$(".ms-alert").fadeOut();',2e3))}function lytk_list_html(f,V,g){g=g.result_list;var e="";for(var c in e+='
',g){var L=g[c],eL=L.coupon_share_url?L.coupon_share_url:L.url;L.item_description=L.item_description?L.item_description:"";var a='
';L.coupon_amount?(a+='
'+L.coupon_amount+"券
",a+='
¥'+Number(Number(L.zk_final_price-L.coupon_amount).toFixed(2))+"
"):a+='
¥'+L.zk_final_price+"
",a+="
",e+='"}e+="
",f.after(e)}function lytk_list_data(f,V,g,e){$.ajax({url:ly_tk_Path+"zb_users/plugin/ly_tk/main.php?plugin=ly_tk&iid="+f+"&num="+g+"&page=1&kid=2&tag="+encodeURI(V),dataType:"jsonp",success:function(f){},timeout:1e4}).done(function(f){f.iid?$.ajax({url:"https://eco.taobao.com/router/rest",dataType:"jsonp",cache:1,jsonp:"-",jsonpCallback:"jQuery",data:f.iid,success:function(V){if(V.result_list){var g=V.result_list[0],c=g.coupon_share_url?g.coupon_share_url:g.url,L="去购买";g.coupon_amount&&(L="去领"+g.coupon_amount+"券");var eL=$("#ly_tk").attr("data-hot"),a="";a+='",e.prepend(a)}else f.item&&$.ajax({url:"https://eco.taobao.com/router/rest",dataType:"jsonp",cache:1,jsonp:"-",jsonpCallback:"jQuery",data:f.item,success:function(V){V.result_list?lytk_list_html(e,f,V):f.tag&&$.ajax({url:"https://eco.taobao.com/router/rest",dataType:"jsonp",cache:1,jsonp:"-",jsonpCallback:"jQuery",data:f.tag,success:function(V){V.result_list&&lytk_list_html(e,f,V)},timeout:3e3})},timeout:3e3})},timeout:3e3}):f.tag&&$.ajax({url:"https://eco.taobao.com/router/rest",dataType:"jsonp",cache:1,jsonp:"-",jsonpCallback:"jQuery",data:f.tag,success:function(f){},error:function(f){},timeout:1e4}).done(function(V){V.result_list&&lytk_list_html(e,f,V)})})}$(document).on("click",".lytk_list li a,.lytk_detail .dd a",function(){if(os.isWx){var f,V=$(this).attr("href");if(V)return-1===V.indexOf("://")&&(V="https:"+V),$.ajax({type:"post",url:ly_tk_Path+"zb_users/plugin/ly_tk/main.php?plugin=ly_tk",data:"iid="+encodeURI(V)+"&kid=1",success:function(f){$.ajax({url:"https://eco.taobao.com/router/rest",dataType:"jsonp",cache:1,jsonp:"-",jsonpCallback:"jQuery",data:f,success:function(f){if(f.data){var g="";g+='
',g+='
',g+="

点、复制淘口令,再打开手机淘宝自动弹出
",g+="

或者、点右上角 菜单,再选择在浏览器打开

",g+='',alertx(g+='
')}},timeout:3e3})},timeout:5e3}),!1}}),$(function(){$("head").append('');var f=2,V=1,g="",e="",c=[],L='
',eL=[];$(".lytk_tag").length>0?$(".lytk_tag").each(function(){return e=$(this).text(),c=$(this).parents("p"),e&&lytk_list_data(g,e,f,c),e="",!1}):$("#ly_tk").length>0&&(e=$("#ly_tk").attr("data-tag"))&&(eL=e.split("|"),e=eL[0],f=eL[2],V=eL[3],g=eL[5],$(eL[1]).length>0&&(1==eL[4]?$(eL[1]).before(L):2==eL[4]?$(eL[1]).prepend(L):3==eL[4]?$(eL[1]).append(L):4==eL[4]&&$(eL[1]).after(L),c=$("#ly_tk_items"),eL=e.split(","),e=eL[Math.floor(Math.random()*eL.length)])),c.length>0&&(g||e)&&lytk_list_data(g,e,f,c)});