{ if (res.errMsg === "get_wx.openchan">
当前位置:   article > 正文

小程序跳转视频号_wx.openchannelsuserprofile

wx.openchannelsuserprofile
aa(){
     // finderUserName 从视频号后台拿
     // 打开视频号主页
      wx.openChannelsUserProfile({
        finderUserName: "sphfCHdvTc9a0FLxx",
      });

	// 获取直播信息
      wx.getChannelsLiveInfo({
        finderUserName: "sphfCHdvTc9a0FLxx",
        success: res => {
        if (res.errMsg === "getChannelsLiveInfo:ok") {
          console.log('1111111',res)
          // this.setData({
          //   isLive:res.status
          // })
          console.log('noticeId',res.nonceId);
        
          // 返回内容
          // feedId:直播 feedId
          // nonceId:直播 nonceId
          // description:直播主题
          // status:直播状态,2直播中,3直播结束
          // headUrl:直播封面
          // nickname:视频号昵称
        }
        },
        fail: res => {
          console.log(res)
        }
     })
    },
    bb(){
     // 打开直播间
      wx.openChannelsLive({
        finderUserName: "sphfCHdvTc9a0FLxx",
        feedId:'export/UzFfAgtgekIEAQAAAAAAPCQ2CpnCJQAAAAstQy6ubaLX4KHWvLEZgBPEnINQMwVUUdyDzNPgMIuuMtOVbMuYpzjNyxpj-14G',
        nonceId: '7094985480186566196',
        success: rs => {
          onsole.log('2222',rs)
        },
        fail: fa => {
          console.log('fa222',fa)
        }
      })
    },
  // 跳转指定视频号的某个视频
    wx.openChannelsActivity({
      finderUserName:'',
      feedId:'',
    }) 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/322622
推荐阅读
相关标签
  

闽ICP备14008679号