uniapp webview 跳回小程序 填坑

h5配置里面配置下index  不懂的话点  后面的参考 看官方提示
 

然后index.html里面引入微信的jssdk
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script>
//wx.换成jWeixin.

jWeixin.miniProgram.getEnv(function(res) {  
    jWeixin.miniProgram.reLaunch({  
    	url: '/pages/add/add'  
    })  
})

猜你喜欢

转载自www.cnblogs.com/tolingsoft/p/12578909.html