收藏
回答

uni.navigateToMiniProgram跳转其他小程序违规问题?加急!

版本 3.15.2 点击跳转报由于小程序违规该功能无法使用 站内无违规信息 appid:wxfd51df3602d47b67

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

4 个回答

  • 罐梨脆紫柿
    罐梨脆紫柿
    06-05

    小程序涉及实物交易被限制跳转,满足全部条件后可支持跳入跳出功能。

    详细规则见:实物交易类小程序跳转规范https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=11736404407Ko3H2&version=1&lang=zh_CN&platform=2


    06-05
    有用
    回复
  • 路人
    路人
    06-05

    06-05
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    06-05
    有用
  • Q
    Q
    06-05
        selectService(service) {
                    if (service.appId) {
                        uni.showModal({
                            title: '提示',
                            content: `即将跳转至「${service.name}」缴费小程序,是否继续?`,
                            success: (res) => {
                                if (res.confirm) {
                                    uni.navigateToMiniProgram({
                                        appId: service.appId,
                                        path: service.pagePath,
                                        success: () => {
                                            console.log('跳转小程序成功')
                                        },
                                        fail: (err) => {
                                            console.error('跳转小程序失败', err)
                                            uni.showToast({
                                                title: '跳转失败',
                                                icon: 'none'
                                            })
                                        }
                                    })
                                }
                            }
                        })
                    } else {
                        uni.showToast({
                            title: `正在跳转至「${service.name}」缴费小程序...`,
                            icon: 'none',
                            duration: 2000
                        })
                    }
                }
    
    06-05
    有用
    回复 1
    • Q
      Q
      06-05
      在开发中也不能进行跳转吗
      06-05
      回复
登录 后发表内容