收藏
回答

我的微信小程序跳转微信小店一直提示,小程序尚未发布,如何发布呢?

AppID
wxf87ce4a6e0bad031

以下是我调用的方式,帮忙看下,谢谢

  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);

      },

    });

  });


回答关注问题邀请回答
收藏

5 个回答

  • 开琴之音
    开琴之音
    12-03

    看不懂啊。我在文章里发微信小店的小程序,说“该小程序未发布,无法添加”,应该怎么弄啊。浓浓的绝望,真不懂

    12-03
    有用
    回复 1
    • 开琴之音
      开琴之音
      12-03
      看不懂啊。我在文章里发微信小店的小程序,说“该小程序未发布,无法添加”,应该怎么弄啊。浓浓的绝望,真不懂
      12-03
      回复
  • peng
    peng
    12-03

    小程序中无法直接使用api跳转微信小店,官方提供了组件方式:https://developers.weixin.qq.com/miniprogram/dev/component/store-home.html

    12-03
    有用
    回复
  • 卢伟军@荟到(微信小店推客机构)
    卢伟军@荟到(微信小店推客机构)
    12-03

    跳微信小店只能用组件:https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html

    12-03
    有用
    回复
  • JamesWu
    JamesWu
    12-03

    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)

    12-03
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    12-03
    有用
    回复 1
    • 开琴之音
      开琴之音
      12-03
      看不懂啊。我在文章里发微信小店的小程序,说“该小程序未发布,无法添加”,应该怎么弄啊。浓浓的绝望,真不懂
      12-03
      回复
登录 后发表内容
问题标签