|
@@ -88,6 +88,7 @@
|
|
|
this.liveId = options.liveId
|
|
|
this.userData = uni.getStorageSync("userData");
|
|
|
this.userId = this.userData.userId;
|
|
|
+ this.userName = this.userData.userName;
|
|
|
let info = uni.getSystemInfoSync();
|
|
|
this.windowWidth = info.windowWidth;
|
|
|
this.windowHeight = info.windowHeight;
|
|
@@ -140,8 +141,8 @@
|
|
|
init() {
|
|
|
NET.request(API.startStream + 2, 'GET').then(res => {
|
|
|
this.avatar = res.data.imgUrl;
|
|
|
- this.name = res.data.liveName;
|
|
|
- this.roomId = Number(res.data.roomId);
|
|
|
+ this.title = res.data.liveName;
|
|
|
+ this.roomId = String(res.data.roomId);
|
|
|
this.$nextTick(() => this.enterRoom());
|
|
|
}).catch(res => {
|
|
|
uni.showToast({
|