11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

uniapp app跳转小程序并打开相应的页面

uniapp app跳转小程序并打开相应的页面
plus.share.getServices(res => {
       this.sweixin = res.find(i => i.id === 'weixin')
       if (this.sweixin) {
        this.sweixin.launchMiniProgram({
         id: 'gh_****',//小程序原始ID
         path:"pages/home/home",
         type:0//可取值: 0-正式版; 1-测试版; 2-体验版。 默认值为0。
        }, res => { 
         console.log('res', JSON.stringify(res))
        }, err => {
         console.log('err', JSON.stringify(err))
        })
       } else {
        // 没有获取到微信分享服务
       }
      }, err => {
       // 获取分享服务列表失败
      });
-->