uniapp微信小程序内部跳转其他微信小程序

 

 

 

 uniapp小程序内点击某个按钮跳转另外一个小程序连接,具体实现步骤如下:

<view class="home-Item" @click="goNativeindex">
      <image class="home-Item-img" src="../../static/images/icon1.png" mode=""></image>
      <view class="home-Item-name">水费缴纳</view>
</view>
复制代码
goNativeindex(){
    uni.navigateToMiniProgram({
        appId:'wxd2ade0f25a874ee2',// 此为生活缴费appid
        path:'main/pages/nativeindex/nativeindex',// 此为生活缴费首页路径
        envVersion:"release",
        success: res => {
             // 打开成功
             console.log("打开成功", res);
        },
        fail: err => {
             console.log(err);
        }
    })
}
复制代码

好啦,完成啦!~

需要记住的是,需要填写另外一个小程序的AppID哦!~

 

posted @   IT小姐姐  阅读(2888)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示