更新当前页面分享数据
updateShareData
参数说明
| 属性 | 类型 | 默认值 | 是否必填 | 描述 |
|---|---|---|---|---|
title | string | 是 | 分享标题 | |
desc | string | 否 | 分享描述 | |
link | string | 是 | 分享连接 | |
imgUrl | string | 否 | 分享图片 | |
success | function | 否 | 接口调用成功的回调函数 | |
fail | function | 否 | 接口调用失败的回调函数 | |
complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
示例代码
dsBridge.call(
'updateShareData',
{
title: '聚鞋优品',
desc: '分享描述',
link: 'https://render-dev.for1688.cn/',
imgUrl: 'https://render-dev.for1688.cn/shareLogo.png',
success(res) {
console.log(res)
}
}
)