H5 分享
无    2020-04-22 14:36:15    514    0    0
xianglijiaxing

 

一、分享至QQ:

微信、手机QQ、 QQ 空间 App内, 使用JsSdk:

https://open.mobile.qq.com/index

 

其他App 或者网页:

https://wiki.open.qq.com/wiki/%E3%80%90QQ%E7%99%BB%E5%BD%95%E3%80%91JS_SDK%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E

 

注意事项:

https://wiki.open.qq.com/wiki/website/API%E5%88%97%E8%A1%A8

https://wiki.open.qq.com/wiki/website/add_share

 

 

 

二、分享至微信

在微信App 内分享,使用JsSdk;

 

其他情况下,提示在微信打开或者复制链接;

 

 

三、分享至微博

 

1.通用方案: 微博组件  https://open.weibo.com/widgets?cat=wb   

微博发布器:

文档: http://jssdk.sinaapp.com/widget/publish.php

实例: https://open.weibo.com/widget/js#publisher

移动端:

https://widget.weibo.com/dialog/PublishMobile.php?mid=zplRTnk1e&refer=y&language=zh_cn&uniqueID=15828790415097&app_src=6ByAFV&button=publish

PC端:

https://widget.weibo.com/dialog/PublishWeb.php?mid=zplRTnk1e&refer=y&language=zh_cn&uniqueID=15828791454577&app_src=6ByAFV&button=publish

测试后发现: 只有弹出式发布器可用;

 

 

 

分享按钮: http://jssdk.sinaapp.com/widget/share.php

在线配置:

https://open.weibo.com/sharebutton?sudaref=jssdk.sinaapp.com&display=0&retcode=6102

实例:<wb:share-button appkey="2230968672" addition="text" type="button"></wb:share-button>

要求必须使用审核过的AppKey;

 

分享示例中,在PC 及微博App 内不显示分享按钮;  可能为微博官方提倡原创采取的措施;

 

2. 微博App内JsSdk   https://open.weibo.com/wiki/index.php/Weibo-JS_V2   http://jssdk.sinaapp.com/start.php

即js 函数调用微博组件的功能;

 

 

      


 

 

 

 

微博开发应用申请:

https://open.weibo.com/service

 

 

 

QQ 互联

https://wiki.connect.qq.com/sdk%E4%B8%8B%E8%BD%BD

腾讯移动Web 开发平台:

https://open.mobile.qq.com/api/component/share

坑点: https://blog.csdn.net/sinat_40257787/article/details/79747426

  function init(opts) {
    var ua = navigator.userAgent;
    var isWX = ua.match(/MicroMessenger\/([\d\.]+)/), isQQ = ua.match(/QQ\/([\d\.]+)/), isQZ = ua.indexOf("Qzone/") !== -1;
    isWX && _initWX(opts);
    isQQ && _initQQ(opts);
    isQZ && _initQZ(opts);
  }

 

uri 打开QQApp 指定页面:

https://jingyan.baidu.com/article/656db918e14312e381249ca9.html

 

 

腾讯地图 微信小程序js SDK

https://www.npmjs.com/package/qqmap-wx-jssdk

 

自定义域名一键分享:

https://blog.csdn.net/weixin_38930535/article/details/79377943

https://blog.csdn.net/weixin_43856422/article/details/100564537

https://blog.csdn.net/lowkeyway/article/details/7963603

 https://blog.csdn.net/lxw1844912514/article/details/100028918

 

1.分享到QQ空间接口:

https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=你的网址&sharesource=qzone&title=你的分享标题&pics=你的分享图片&summary=你的分享描述信息

2.分享给QQ好友接口:(显示的为网页版的联系人页面)

http://connect.qq.com/widget/shareqq/index.html?url=你的分享网址&sharesource=qzone&title=你的分享标题&pics=你的分享图片地址&summary=你的分享描述&desc=你的分享简述

 

https://connect.qq.com/widget/shareqq/index.html?url=http://www.bshare.cn/?utm_source=bshare&utm_campaign=bshare&utm_medium=qqim&bsh_bid=5486526830&desc=bShare分享快乐 中国最强大的社会化分享分享工具,邀请您来体验!&pics=&site=bshare

3.分享到新浪微博接口:(正常可以使用的微博账号提示未开通

http://service.weibo.com/share/share.php?url=你的分享网址&sharesource=weibo&title=你的分享标题&pic=你的分享图片&appkey=你的key,需要在新浪微博开放平台中申请


https://blog.csdn.net/weixin_42895400/article/details/87799262

唤醒QQ:

https://blog.csdn.net/qq_42221334/article/details/98946179

tencent://message/?uin=*********&Site=hexun.com/ngdao&Menu=yes 




NativeShare:

https://fa-ge.github.io/NativeShare/demo/index.html

 

BShare:

http://www.bshare.cn/

ShareSDK: (仅适用于PC 端使用)

http://www.mob.com/mobService/sharesdk

示例:http://f1.webshare.mob.com/code/demo/

 

 

 

移动端和PC 端的判断:

https://blog.csdn.net/ZFL_123456/article/details/86651316?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

 

浏览器兼容性问题:

https://blog.csdn.net/DeepLies/article/details/77334166?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

http://overtrue.me/share.js/

 

在线二维码生成

 

 

 

 

 

上一篇: Linter

下一篇: 跨域后端处理

514 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航