Skip to main content

更新当前页面分享数据

updateShareData

参数说明

属性类型默认值是否必填描述
titlestring分享标题
descstring分享描述
linkstring分享连接
imgUrlstring分享图片
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数(调用成功、失败都会执行)

示例代码

dsBridge.call(
'updateShareData',
{
title: '聚鞋优品',
desc: '分享描述',
link: 'https://render-dev.for1688.cn/',
imgUrl: 'https://render-dev.for1688.cn/shareLogo.png',
success(res) {
console.log(res)
}
}
)