diff --git a/packageA/livePlayback/livePlayback.vue b/packageA/livePlayback/livePlayback.vue index 7364031..bd8df0e 100644 --- a/packageA/livePlayback/livePlayback.vue +++ b/packageA/livePlayback/livePlayback.vue @@ -2,31 +2,133 @@ - - - + + + + + + + + + + + + + +关注 + + + + + + + + {{videoDetail.goodsLists.length}} - - +关注 - + + + + + + + + + + {{videoDetail.goodsLists.length}} - - - + + @@ -61,14 +163,13 @@ - --> - - + + @@ -138,20 +239,29 @@ console.log("方法注册失败:", errMsg); }, }); - // this.createdLive() + this.createdLive() } this.getDetail() } }, destroyed() { - let promise = this.tim.logout(); - promise.then(function(imResponse) { - console.log(imResponse.data); // 登出成功 - }).catch(function(imError) { - console.warn('logout error:', imError); - }) + if (this.tim) { + let promise = this.tim.logout(); + promise.then(function(imResponse) { + console.log(imResponse.data); // 登出成功 + }).catch(function(imError) { + console.warn('logout error:', imError); + }) + } }, methods: { + play(e) { + console.log(e) + }, + statechange(e) { + console.log(e) + console.log('live-player code:', e.detail.code) + }, async createdLive () { let options = { SDKAppID: 1400435566 @@ -316,7 +426,7 @@ } - + + \ No newline at end of file diff --git a/pages.json b/pages.json index 4e40ce2..390e3ba 100644 --- a/pages.json +++ b/pages.json @@ -762,7 +762,8 @@ "navigationBarTextStyle": "black", "navigationBarTitleText": "", "navigationBarBackgroundColor": "#FFFFFF", - "backgroundColor": "#F8F8F8" + "backgroundColor": "#F8F8F8", + "renderingMode": "mixed" }, "tabBar": { "color": "#7A7E83",