当前地址:/pages/user/user
代码:
onShareAppMessage: function () {
return {
title: '从用户页转发,打开时跳转到首页',
path: '/pages/index/index?id=' + id,
success: function (res) { },
fail: function (res) { }
}
}
问题:转发打开小程序后,没有打开/pages/index/index(也就是首页),而是打开了/pages/user/user页。
期待结果:转发打开/pages/index/index页。
请大神回答一下,如何解决。
你是自己分享,然后自己点的把? 小程序还在后台运行中?
会不会因为首页是
switchTab
所以不能跳转?{
"pages": [
"pages/index/index",
"pages/cards/cards",
"pages/card-detail/card-detail",
"pages/shop/shop",
]
}
app.json pages 中是有的
app.json pages 中有没有 /pages/index/index