小程序
小游戏
企业微信
微信支付
扫描小程序码分享
代码片段如上,由输出结果可以知道调用的确实是这个函数,但是样式就是无法修改,连标题和路径都无法修改,有大佬知道是怎么回事吗??球球了
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onshareappmessageobject-object
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
onShareAppMessage: function (res) {
let that = this;
// 来自页面按钮的分享
if (res.form == 'button') {
console.log(res.target, res)
}
return {
title: '科研优选互动平台',
path: '/pages/index/index',
imageUrl: '../../image/sharePng.png'
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
参考下文档:onShareAppMessage(Object object)
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onshareappmessageobject-object
onShareAppMessage: function (res) {
let that = this;
// 来自页面按钮的分享
if (res.form == 'button') {
console.log(res.target, res)
}
return {
title: '科研优选互动平台',
path: '/pages/index/index',
imageUrl: '../../image/sharePng.png'
}
}