break; case 'sqq': if(isMobile()){ shareUrl = 'mqqwpa://im/chat?chat_type=wpa&uin=&version=1&src_type=web'; } else { shareUrl = 'https://connect.qq.com/widget/shareqq/index.html?url='+url+'&title='+title; } break; case 'douban': shareUrl = 'https://www.douban.com/share/service?href='+url+'&name='+title; break; case 'baidu': shareUrl = 'https://tieba.baidu.com/f/commit/share/openShareApi?url='+url+'&title='+title; break; case 'weixin': if(isMobile()){ window.location.href = 'weixin://dl/moments'; } else { $('#wxShare').show(); $('#qrcode').empty(); new QRCode(document.getElementById("qrcode"), { text: window.location.href, width: 200, height: 200 }); } return; default: alert('暂未支持该分享方式'); return; } window.open(shareUrl, '_blank'); }); // 关闭微信二维码弹窗 $('#closeWxQR').click(function(){ $('#wxShare').hide(); }); });