提交 4d53eadd authored 作者: 王鹏飞's avatar 王鹏飞

云直播跳转url添加默认用户昵称

上级 7fef7605
......@@ -82,8 +82,7 @@ export default {
},
getNewLiveMsg() {
// 获取最新直播提醒
cAction.Player
.getNewLiveMsg()
cAction.Player.getNewLiveMsg()
.then(response => {
if (response.status === 200) {
if (!Array.isArray(response.data)) {
......@@ -97,8 +96,7 @@ export default {
},
getLiveList() {
// 获取最新直播列表
cAction.Player
.getLiveList()
cAction.Player.getLiveList()
.then(response => {
if (response.status === 200) {
this.dataList = response.data
......@@ -185,6 +183,8 @@ export default {
openCloudLive(data, message) {
// https://doc.bokecc.com/live/Appendix_1.html
const liveStatus = data.live_status
data.viewer_name =
data.viewer_name || window.G.UserInfo.student_info.personal_name
if (liveStatus === 1) {
// 进行中
const url = `https://view.csslcloud.net/api/view/index?roomid=${data.room_id}&userid=${data.user_id}&autoLogin=true&viewername=${data.viewer_name}&viewertoken=${data.viewer_token}`
......@@ -300,7 +300,7 @@ body {
width: 0.9rem;
/* height: 0.3rem; */
}
.head .logo:nth-child(2){
.head .logo:nth-child(2) {
margin-left: 0.1rem;
}
.head .user {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论