|  |  | @@ -96,8 +96,22 @@ Page({ | 
		
	
		
			
			|  |  |  | this.getLocation(); | 
		
	
		
			
			|  |  |  | this.updateScene(); | 
		
	
		
			
			|  |  |  | this.getRoomId(); | 
		
	
		
			
			|  |  |  | this.getRoomList(); | 
		
	
		
			
			|  |  |  | console.log(wx.getExtConfigSync()) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | //获取房间列表 | 
		
	
		
			
			|  |  |  | getRoomList(){ | 
		
	
		
			
			|  |  |  | debugger | 
		
	
		
			
			|  |  |  | Http.get({ | 
		
	
		
			
			|  |  |  | url: config.api.getRoomList, | 
		
	
		
			
			|  |  |  | data: { | 
		
	
		
			
			|  |  |  | token: app.globalData.token, | 
		
	
		
			
			|  |  |  | appId:config.weapp.AppId | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }).then(res => { | 
		
	
		
			
			|  |  |  | console.log(res) | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | getRoomId() { | 
		
	
		
			
			|  |  |  | let roomId = [3] // 填写具体的房间号,可通过下面【获取直播房间列表】 API 获取 | 
		
	
		
			
			|  |  |  | let customParams = encodeURIComponent(JSON.stringify({ path: 'pages/index/index', pid: 1 })) // 开发者在直播间页面路径上携带自定义参数(如示例中的path和pid参数),后续可以在分享卡片链接和跳转至商详页时获取,详见【获取自定义参数】、【直播间到商详页面携带参数】章节(上限600个字符,超过部分会被截断) | 
		
	
	
		
			
				|  |  | 
 |