[图片][图片] 或者更应该这样 [图片][图片]
channel-live 组件不显示?wxml代码 <view> <view>直播组件测试</view> <button bind:tap="openLive">跳转直播</button> <view class="live-component-wrap"> <channel-live class="live-component" :feed-id="feedId" :finder-user-name="finderUserName" ></channel-live> </view> </view> js代码 Page({ data: { feedId: '', finderUserName: 'sphxxxxxxxxx' }, onLoad() { this.getLiveInfo() }, getLiveInfo() { const _this = this wx.getChannelsLiveInfo({ finderUserName: _this.data.finderUserName, success(res) { _this.setData({ feedId: res.feedId }) }, fail(err) { }, }) }, openLive() { const _this = this wx.openChannelsLive({ finderUserName: _this.data.finderUserName }) } }) 页面渲染结果 已经反复确认小程序主体与视频号主体是一致的! [图片] wx.getChannelsLiveInfo调用均正常,能正常返回结果 [图片] 基础版本库3.0.0 [图片]
04-10