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

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

上级 03426ea1
...@@ -68,8 +68,7 @@ export default { ...@@ -68,8 +68,7 @@ export default {
methods: { methods: {
/* 退出登录 - 跳转方法 */ /* 退出登录 - 跳转方法 */
logout() { logout() {
cAction.Others cAction.Others.outLogin()
.outLogin()
.then(str => { .then(str => {
window.G.UserInfo = {} window.G.UserInfo = {}
this.$router.push({ path: '/login/index' }) this.$router.push({ path: '/login/index' })
...@@ -80,8 +79,7 @@ export default { ...@@ -80,8 +79,7 @@ export default {
}, },
getNewLiveMsg() { getNewLiveMsg() {
// 获取最新直播提醒 // 获取最新直播提醒
cAction.Player cAction.Player.getNewLiveMsg()
.getNewLiveMsg()
.then(response => { .then(response => {
if (response.status === 200) { if (response.status === 200) {
this.latest = response.data this.latest = response.data
...@@ -93,8 +91,7 @@ export default { ...@@ -93,8 +91,7 @@ export default {
}, },
getLiveList() { getLiveList() {
// 获取最新直播列表 // 获取最新直播列表
cAction.Player cAction.Player.getLiveList()
.getLiveList()
.then(response => { .then(response => {
if (response.status === 200) { if (response.status === 200) {
this.dataList = response.data this.dataList = response.data
...@@ -161,6 +158,8 @@ export default { ...@@ -161,6 +158,8 @@ export default {
openCloudClass(data, message) { openCloudClass(data, message) {
// https://doc.bokecc.com/class/developer/api/login.html // https://doc.bokecc.com/class/developer/api/login.html
const liveStatus = data.live_status const liveStatus = data.live_status
data.viewer_name =
data.viewer_name || window.G.UserInfo.student_info.personal_name
if (liveStatus === 1) { 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}` 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论