Browse Source

Signed-off-by: liuboyan <632697560@qq.com>
roomId

liuboyan 4 years ago
parent
commit
4b4811c08b
2 changed files with 1 additions and 4 deletions
  1. 1 1
      pagesGood/liveDetail.vue
  2. 0 3
      pagesGood/pickVideo.vue

+ 1 - 1
pagesGood/liveDetail.vue

@@ -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 => {

+ 0 - 3
pagesGood/pickVideo.vue

@@ -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