@文心快码uniapp launchminiprogram bad_param 文心快码 在uni-app中使用uni.navigateToMiniProgram时遇到“bad_param”错误,通常是由于传递的参数不符合要求导致的。 在使用uni-app开发小程序时,如果尝试通过uni.navigateToMiniProgram接口跳转到另一个小程序,并遇到了“bad_param”错误,这通常意味着传递给该接口的参数有...
sweixin.launchMiniProgram({ id: 'gh_8888888', //这里写你的小程序原始id(以gh开头) type: 0,//这里是不同的环境(默认0) path:'/pages/shop/index?storeId=123456'//这里是指定页的路径,如需传参直接字符串拼接(首页可以省略) }); } },function(res){ console.log(JSON.stringify(res)); }); ...
if(sweixin){ sweixin.launchMiniProgram({ id: 'gh_8888888', //这里写你的小程序原始id(以gh开头) type: 0,//这里是不同的环境(默认0) path:'/pages/shop/index?storeId=123456'//这里是指定页的路径,如需传参直接字符串拼接(首页可以省略) }); } },function(res){ console.log(JSON.stringify(r...