// 需要引入weixin的文件 https://res.wx.qq.com/open/js/jweixin-1.3.2.js
// 然后在需要跳回的逻辑中添加如下代码
wx.miniProgram.navigateTo({ "url": "../index/index" })
// 这里的路径一定要是..开头 官方说的和小程序入参一致不准确 我这边怎么尝试都不行 最后换成..就可以了。
02-10
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-04
527
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-07
4979
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-08