塔吊倾倒公交提前减速险象环生 - 视频 - 法律与生活网

设为首页 | 收藏本页

塔吊倾倒公交提前减速险象环生
2017-09-12 15:02:23   来源:新京报   

<script type="text/javascript" src="http://static.bjnews.com.cn/www/v5/js/jquery.qrcode.min.js"></script><script type="text/javascript" src="http://static.bjnews.com.cn/www/v5/js/common.js"></script><script type="text/javascript" src="http://static.bjnews.com.cn/www/v5/js/content.js"></script><script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script><script> $(function(){ //检测访问设备 if (/iphone|nokia|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|wap|android|iPod/i.test(navigator.userAgent.toLowerCase())){ var result = location.search.match(new RegExp("[\?\&]type=([^\&]+)", "i")); if (result == null || result.length < 1) { //当前是手机访问 var wx_link=window.location.href; var wx_title=$(".nleft h1").text(); var wx_desc,wx_imgUrl; //分享图片 var htmltxt=$(".content").html(); var reg = /]*>/gi; if(reg.test(htmltxt)){ wx_imgUrl=$(".content").find("img").eq(0).attr("src") }else{ wx_imgUrl='http://img.tbnimg.com/icon/bjnews.jpg' } //分享描述 if($("#daoy").length>0){ wx_desc=$("#daoy").text() }else{ htmltxt=$(".content").text().toString().replace(/\s/g, ""); wx_desc=htmltxt.substring(0, 100) } $.ajax({ type:"GET", //url:"http://www.bjnews.com.cn/webapi/wxshare?app_id=wx4d8c625e1dbcf8f4&t=" + Math.random(), url:"http://www.bjnews.com.cn/webapi/wxshare?t=" + Math.random(), dataType: 'json', success:function(data) { var signpackage = data.signpackage; //console.log(signpackage) wx.config({ debug: false, appId: "wx4d8c625e1dbcf8f4", timestamp: signpackage.timestamp, nonceStr: signpackage.nonceStr, signature: signpackage.signature, jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage' ] }); } }); //分享 wx.ready(function(){ //分享到朋友圈 wx.onMenuShareTimeline({ title: wx_title, // 分享标题 link: wx_link, // 分享链接 imgUrl: wx_imgUrl // 分享图标 }); //分享给朋友 wx.onMenuShareAppMessage({ title: wx_title, // 分享标题 desc: wx_desc, // 分享描述 imgUrl: wx_imgUrl, // 分享图标 link: wx_link // 分享链接 }); }); }else { } } }) </script><script src="http://static.bjnews.com.cn/m/js/appbanner.js"></script>