# 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)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
msg | String | N/A | |
code | Number | N/A |
- 失败时返回