鍒嗕韩鍒板井淇℃湅鍙嬪湀
× '
$('body').append(shareHtml)
var qrodeTextUrl = window.location.href
$('#qrodeText').val(qrodeTextUrl)
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 200,
height : 200,
background : "#ffffff", //浜岀淮鐮佺殑鍚庢櫙鑹
foreground : "#ff0000", //浜岀淮鐮佺殑鍓嶆櫙鑹
render : "canvas"//璁剧疆娓叉煋鏂瑰紡
})
function makeCode () {
var elText = document.getElementById("qrodeText");
if (!elText.value) {
alert("Input a text");
elText.focus();
return;
}
qrcode.makeCode(elText.value);
}
$('.bds_weixin,.b_weixin').click(function(){
$('.weChatBox').fadeIn(500);
makeCode();
})
$('.shareClose').click(function(){
$('.shareBox').fadeOut(500)
})
$('.bds_more').click(function(){
$('.shareBox').fadeIn(500);
})
$('.w-close').click(function(){
$('.weChatBox').fadeOut(500);
})