<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> </head> <body> <div id="btn">点击打开</div> <script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> <script> document.getElementById('btn').onclick = () => { wx.navigateToMiniProgram({ appId:'wx7cfe21fe4e8782c5', //携保的appid path:'/pages/Setting/Setting?totalPrice=price&ordernum=ordernum&domain=domain&partnerId=partnerId' }) } </script> </body> </html>