提交 6f7d8beb authored 作者: 王鹏飞's avatar 王鹏飞

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

上级 03426ea1
......@@ -68,8 +68,7 @@ export default {
methods: {
/* 退出登录 - 跳转方法 */
logout() {
cAction.Others
.outLogin()
cAction.Others.outLogin()
.then(str => {
window.G.UserInfo = {}
this.$router.push({ path: '/login/index' })
......@@ -80,8 +79,7 @@ export default {
},
getNewLiveMsg() {
// 获取最新直播提醒
cAction.Player
.getNewLiveMsg()
cAction.Player.getNewLiveMsg()
.then(response => {
if (response.status === 200) {
this.latest = response.data
......@@ -93,8 +91,7 @@ export default {
},
getLiveList() {
// 获取最新直播列表
cAction.Player
.getLiveList()
cAction.Player.getLiveList()
.then(response => {
if (response.status === 200) {
this.dataList = response.data
......@@ -161,6 +158,8 @@ export default {
openCloudClass(data, message) {
// https://doc.bokecc.com/class/developer/api/login.html
const liveStatus = data.live_status
data.viewer_name =
data.viewer_name || window.G.UserInfo.student_info.personal_name
if (liveStatus === 1) {
// 进行中
const url = `http://view.csslcloud.net/api/view/index?roomid=${data.room_id}&userid=${data.user_id}&autoLogin=true&viewername=${data.username}&viewertoken=${data.password}`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论