# shareMsg

分享功能,直接触发分享(微信,QQ,微博等)

  • 参数描述:
Prop Type Required Default Description
param Object Y {}
属性:
type:{
Type: String,
Default: N/A,
Description:
wx 微信分享
qq QQ分享
sms 短信分享
weibo 微博分享
qzone QQ空间
wxTimeline 微信朋友圈
(分享类型)

}
title:{
Type: String,
Default: N/A,
Description: 分享的标题
}
desc:{
Type: String,
Default: N/A,
Description: 分享的文本内容
}
imgUrl:{
Type: String,
Default: N/A,
Description: 分享的图片链接
}
link:{
Type: String,
Default: N/A,
Description: 分享的跳转链接
}
msgType:{ //^5.10.0
Type: String,
Default: web,
Description: web 图文 / img图片(为 img 时,imgurl 为分享图片的链接)
}
请求参数

# 接口调用示例


this.$bridge
    .shareMsg(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })
1
2
3
4
5
6
7
8
9
Last Updated: 10/27/2020, 4:35:43 PM