sharePeerToPeer 点对点分享到第三方平台
sharePeerToPeer ^6.8
点对点分享到第三方平台
#请求参数
| Prop | Type | Default | Comment | 
|---|---|---|---|
| title | String | N/A | 标题 | 
| link | String | N/A | 分享链接 | 
| platformType | String | N/A | 默认微信会话,'wx'微信会话,'wxTimeline'微信朋友圈,'qq','qzone'qq空间,'weibo'微博 | 
| desc | String | N/A | 描述 | 
| imgUrl | String | N/A | 头像 | 
#接口调用示例
const params = {
  platformType: 'wx', //默认微信会话,'wx'微信会话,'wxTimeline'微信朋友圈,'qq','qzone'qq空间,'weibo'微博
  title: 'hello', //标题
  desc: '真好玩呢嗷嗷', //描述
  imgUrl:'https://www.smartmidea.net/activity/202011/bigMember/img/introduce.040999a9.png', //头像
  link: 'https://mp.weixin.qq.com/s/5aFIUj8KU2VJLhYso0QaKQ', //分享链接
}
this.$bridge
  .sharePeerToPeer(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
#返回参数
- 成功时返回
- 失败时返回
 
                    
                     
                    
                 
                    
                 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号