微信分享到朋友圈事件,安卓可以使用,有的iphone用不了
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta name="apple-touch-fullscreen" content="yes">
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/share.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".showbox1").click(function () {
$("#TB_overlayBG").css({
display: "block", height: $(document).height()
});
$(".box1").css({
display: "block"
});
});
$(".close").click(function () {
$("#TB_overlayBG").css("display", "none");
$(".box1 ").css("display", "none");
});
})
</script>
</head>
<body>
<div class="page">
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<p class="bc_logo">
<img src="images/2(1)_01.jpg" /></p>
<div style="background: url(images/2_02.jpg) no-repeat; background-size: 100%">
<div class="abc">
<p class="tx">
<%=fromwxopenid_img %></p>
<p class="jt">
<img src="images/jt.png" /></p>
<p class="txt" id="jp_str">
<span id="help_count"></span>
</p>
</div>
</div>
<div class="content">
<p class="yybhb" id="jp_img">
<%=lb_img%><%--<img onclick="hdkj()" src="images/sdx.jpg"/>--%></p>
<p class="rr">
</p>
<p>
<img src="images/gf222.png"/></p>
<p>
<img onclick="tcsm()" src="images/gfb.png" /></p>
</div>
<p>
<img src="images/2_03_02.png" /></p>
<div class="hdgz">
<p class="hdgz_yyb">
<a href="javascript:void(0);" class="showbox1">
<img src="images/2(1)_06.jpg" /></a></p>
<div id="TB_overlayBG">
</div>
<div class="box1" style="display: none">
<h2 style="height: auto">
<img class="hd_yyb" src="images/g_06.png" /><a class="close"><img src="images/g_03.png" /></a></h2>
<div class="mainlist" style="">
<ul>
</ul>
</div>
<p style="width: 100%">
<img src="images/g_14.png" /></p>
</div>
<p class="aniu_yyb">
<a href="http://mp.weixin.qq.com/s?__biz=MjM5NzYyNjA0MA==&mid=201847387&idx=1&sn=5d8482914c006eff7b085dc5d1448373#rd">
<img src="images/2(1)_10.jpg" /></a></p>
<div class="yyb_hy">
<div class="yyb_hylist" id="help_str">
<%=str_md%>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
// 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
// 发送给好友
WeixinJSBridge.on('menu:share:appmessage', function (argv) {
shareFriend();
});
// 分享到朋友圈
WeixinJSBridge.on('menu:share:timeline', function (argv) {
WeiXinShareBtn();
//alert("分享");
});
}, false);
function WeiXinShareBtn() {
if (typeof WeixinJSBridge == "undefined") {
alert(" 请先通过微信搜索 ");
} else {
WeixinJSBridge.invoke('shareTimeline', {
"title": "笑嘻嘻笑嘻嘻系",
"link": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2f6a8ec4921f1229&redirect_uri=http://wxcar4s.com/yyb_active2/index1.aspx?fromwxopenid=<%=now_wxopenid%>&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect",
"desc": "笑嘻嘻笑嘻嘻系!",
"img_url": "http://game.wxcar4s.com/yyb_active/share.jpg"
}, function (d) {
});
}
}
function shareFriend() {
WeixinJSBridge.invoke('sendAppMessage', {
"img_url": "http://game.wxcar4s.com/yyb_active/share.jpg",
"img_width": "200",
"img_height": "200",
"link": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2f6a8ec4921f1229&redirect_uri=http://wxcar4s.com/yyb_active2/index1.aspx?fromwxopenid=<%=now_wxopenid%>&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect",
"desc": "我的车子要保养了,快来帮我抢个免单!",
"title": "我的车子要保养了,快来帮我抢个免单!"
}, function (res) {
//_report('send_msg', res.err_msg);
})
}
// function shareFriend() {
// alert(11);
// alert("<%=now_wxopenid%>");
// WeixinJSBridge.invoke('sendAppMessage', {
// "img_url": "http://game.wxcar4s.com/yyb_active/share.jpg",
// "img_width": "200",
// "img_height": "200",
// "link": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2f6a8ec4921f1229&redirect_uri=http://wxcar4s.com/yyb_active2/index1.aspx?fromwxopenid=<%=now_wxopenid%>&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect",
// "desc": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2f6a8ec4921f1229&redirect_uri=http://wxcar4s.com/yyb_active2/index1.aspx?fromwxopenid=<%=now_wxopenid%>&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect",
// "title": " 我的车子要保养了,快来帮我抢个免单!"
// }, function (res) {
// //_report('send_msg', res.err_msg);
// })
// }
// function closewin() {
// WeixinJSBridge.call("closeWindow");
// }
</script>
...全文
相关推荐
HTML5中外部浏览器唤起微信分享功能的代码
- 检查是否为微信浏览器(通过正则表达式 `/micromessenger/i.test(UA)`)。 - 根据操作系统类型(iPhone或Android)进行判断。
微信营销 触摸精灵 LUA语言脚本+朋友圈自动点赞+ipad或iphone
朋友圈是微信中一个重要的社交功能,用户可以分享自己的生活动态,而通过点赞功能,营销者可以快速地与目标客户群体建立联系,增加互动。
卢松松博客iPhone和Android客户端发布.docx
**社交分享**:支持将文章分享至微博、短信、邮件或朋友圈等多种社交平台,方便用户跨设备阅读。#### 用户界面- **启动界面与文章列表**:简洁明了的启动界面,清晰展示最新文章列表。
iPhone说说发表系统
**同步分享**:用户发表的说说可以同步到多个社交平台,如微信朋友圈、QQ空间等,扩大了分享范围。4. **个性化设置**:允许用户自定义字体、颜色和背景,打造个性化的发表体验。5.
清大众筹项目,包括WEB端,Android,IOS,微信.zip
微信端的开发通常使用微信小程序技术,它集成了微信的社交功能,使得用户可以方便地通过朋友圈、微信聊天等途径分享和推广众筹项目。此外,微信支付的集成也大大简化了用户的支付流程,提高了众筹效率。


