$(document).ready(function() { share(); select(); if($(window).width()<768){ if($(".news-tit .swiper-container").length>0){ var newstit_Swiper = new Swiper('.news-tit .swiper-container',{ slidesPerView : 3, prevButton:'.swiper-button-prev', nextButton:'.swiper-button-next', }) } } }) function share(){ $(".share_wb").click(function () { var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "http://service.weibo.com/share/share.php?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op) }) $(".share_kj").click(function () { var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op) }) $(".share_qq").click(function () { var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "http://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + ""; window.open(op); }) $(".share_in").click(function () {//linkedin var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "//www.linkedin.com/uas/login?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op); }) $(".share_zhihu").click(function () {//鐭ヤ箮 var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "https://www.zhihu.com/signin?next=%2F?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op); }) $(".share_toutiao").click(function () {//澶存潯 var url = $(this).data("txt"); var url = window.location.href; var title = document.title; var op = "https://mp.toutiao.com/auth/page/login?title=" + title + "&url=" + encodeURIComponent(url) + ""; window.open(op); }) $(".share_wx").attr("data-qrcode","http://www.xinhongru.com/qrcode/qrcode.php?content="+window.location.href); //$(".share_wx").attr("data-qrcode", "/qrCode/Index.aspx?url=" + window.location.href); $(".share_wx").click(function () { //var url = "/qrCode/Index.aspx?url=" + window.location.href; var url = $(this).attr("data-qrcode") console.log(url) var title = "" title += "
鎵竴鎵?/p>" title += "