const onShareTimeline = () => {
let goodId = 1,id = 2;
return {
title: app.globalData.shareTitle,
imageUrl: '/static/images/icon_mark.png',
query: "goodId=" + goodId+"&id=" +id,
path: '/pages/home/carList/index?s=9&e=5'
}
}
onLoad((e)=>{
// 从朋友圈点击进来 e 是空对象
})
3 个回复
Diligent_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序
分享给朋友呢,都试试
愿随风丶飘雪 - 勿在浮沙筑高台
分享朋友圈没有 path 这个参数 只能分享当前界面
愿随风丶飘雪 - 勿在浮沙筑高台
https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onShareTimeline