以下是我调用的方式,帮忙看下,谢谢
useDidShow(() => {
// 立即跳转,不延迟
Taro.navigateToMiniProgram({
appId: "wxfae9e8b96aea0726",
path: "", // 可选:指定目标小程序的页面路径
envVersion: "release", // 指定版本: develop(开发版), trial(体验版), release(正式版)
success: () => {},
fail: (err) => {
Taro.showToast({
title: "跳转失败,请稍后重试",
icon: "none",
});
// 跳转失败后返回首页
setTimeout(() => {
Taro.switchTab({
url: "/pages/index/index",
});
}, 1500);
},
});
});

看不懂啊。我在文章里发微信小店的小程序,说“该小程序未发布,无法添加”,应该怎么弄啊。浓浓的绝望,真不懂
小程序中无法直接使用api跳转微信小店,官方提供了组件方式:https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html
跳微信小店只能用组件:https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html
appid=wxfae9e8b96aea0726 是一个微信小店,并没有找到在哪里有发布开关
错误信息:
Error: fail to open
at new <anonymous> (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at Function.fail (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at p (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at Object.fail (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at bp (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at kp (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at WAServiceMainContext.js?t=wechat&v=3.10.2:1
at r (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at s (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at index.js:1(env: macOS,mp,1.06.2504030; lib: 3.10.2)
Error: MiniProgramError
{"errMsg":"navigateToMiniProgram:fail fail to open"}
at Object.errorReport (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at Function.thirdErrorReport (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at Object.thirdErrorReport (WAServiceMainContext.js?t=wechat&v=3.10.2:1)
at i (VM1452 WASubContext.js:1)
at Object.cb (VM1452 WASubContext.js:1)
at Z._privEmit (VM1452 WASubContext.js:1)
at Z.emit (VM1452 WASubContext.js:1)
at VM1452 WASubContext.js:1
at n (VM1452 WASubContext.js:1)
at Ge (VM1452 WASubContext.js:1)(env: macOS,mp,1.06.2504030; lib: 3.10.2)