@@ -62,7 +62,7 @@
},
onLoad(options) {
this.videoType = options.videoType
- this.roomID = options.roomID
+ this.roomID = options.roomId
NET.request(API.getLiveGoodsDetail + options.liveId, {}, 'GET').then(res => {
this.goodsList = res.data
}).catch(res => {
@@ -46,13 +46,10 @@
wx.setKeepScreenOn({
keepScreenOn: true
}); // 获取 rtcroom 实例
-
this.trtcComponent = this.$refs['trtc-component']; // 监听TRTC Room 关键事件
this.bindTRTCRoomEvent(); // 将String 类型的 true false 转换成 boolean
options.template = '1v1';
this.options = options; // querystring 只支持传递 String 类型, 注意类型转换
this.enterRoom({
roomID: this.roomId,
userID: uni.getStorageSync("userData").userId, //设置为用户id