openShare 打开系统的分享

openShare ^6.8

打开系统的分享

#请求参数

Prop Type Default Comment
imageUrl String N/A 图片地址(ios)
text String N/A 文本 (ios)
url String N/A 链接 (ios)
content String N/A (android)
title String N/A (android)

#接口调用示例

const params = {
  title: 'string', // (android)
  content: 'string', // (android)}
}
this.$bridge
  .openShare(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
msg String N/A
code Number N/A
  • 失败时返回
posted on 2024-12-22 09:20  AtlasLapetos  阅读(9)  评论(0)    收藏  举报