Commit 46017cfc authored by 李晓兵's avatar 李晓兵

'视频会话逻辑'

parent ca7521dc
......@@ -21,7 +21,6 @@ export default {
},
watch: { // 监听路由变化
$route (to, from) {
// debugger;
if (this.pathList.includes(to.path)) {
const index = (this.pathList.findIndex(() => {
return from.path
......@@ -32,7 +31,7 @@ export default {
this.pathList.push(to.path)
this.$router.isBack = false
}
if (to.path === '/tab/home') {
if (to.path === '/tab/home-page') {
this.$router.isBack = true
this.pathList = []
}
......
......@@ -107,7 +107,44 @@ export default {
this.tabNum = i
},
toSign () {
hlsPopup.showLongCenter('敬请期待')
let vm = this
// hlsPopup.showLongCenter('敬请期待')
var sendStr = 'xcmg'
hlsPopup.showConfirm({
title: '提示',
content: '模拟登录',
onConfirm: (data) => {
if (data) {
hls.cordova.cloudroom.CloudRoomService.loginCloudRoom(sendStr, function (data) {
vm.entrySign()
},
function (fail) {
hlsPopup.showLongCenter('登录失败')
})
} else {
}
},
})
},
entrySign () {
var sendStr = 'xcmg'
hlsPopup.showConfirm({
title: '提示',
content: '登录成功,进入会话',
onConfirm: (data) => {
if (data) {
hls.cordova.cloudroom.CloudRoomService.helpYourSelf(sendStr, function (data) {
},
function (fail) {
hlsPopup.showLongCenter('进入会话失败')
})
} else {
}
},
})
},
toWatch () {
hlsPopup.showLongCenter('敬请期待')
......
......@@ -131,7 +131,7 @@ export default new Router({
children: [
{path: '/tab/home-page', component: HomePage, name: 'HomePage', meta: {keepAlive: false}},
{path: '/tab/my-info', component: MyInfo, name: 'MyInfo', meta: {keepAlive: true}},
{path: '/tab/message-center', component: MessageCenter, name: 'MessageCenter', meta: {keepAlive: true}},
{path: '/tab/message-center', component: MessageCenter, name: 'MessageCenter', meta: {keepAlive: false}},
],
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment