Commit 04a484fa authored by hbcui1984's avatar hbcui1984

Android平台支持qq分享

parent 52771921
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
initImgPreview(); initImgPreview();
},500); },500);
}); });
//分享链接点击事件 //分享链接点击事件
document.getElementById("share").addEventListener('tap', function() { document.getElementById("share").addEventListener('tap', function() {
var ids = [{ var ids = [{
id: "weixin", id: "weixin",
...@@ -513,6 +513,8 @@ ...@@ -513,6 +513,8 @@
id: "sinaweibo" id: "sinaweibo"
}, { }, {
id: "tencentweibo" id: "tencentweibo"
},{
id:"qq"
}], }],
bts = [{ bts = [{
title: "发送给微信好友" title: "发送给微信好友"
...@@ -522,15 +524,9 @@ ...@@ -522,15 +524,9 @@
title: "分享到新浪微博" title: "分享到新浪微博"
}, { }, {
title: "分享到腾讯微博" title: "分享到腾讯微博"
}]; },{
if (plus.os.name == "iOS") {
ids.push({
id: "qq"
});
bts.push({
title: "分享到QQ" title: "分享到QQ"
}); }];
}
plus.nativeUI.actionSheet({ plus.nativeUI.actionSheet({
cancel: "取消", cancel: "取消",
buttons: bts buttons: bts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment