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

'视频会话逻辑'

parent ca7521dc
...@@ -21,7 +21,6 @@ export default { ...@@ -21,7 +21,6 @@ export default {
}, },
watch: { // 监听路由变化 watch: { // 监听路由变化
$route (to, from) { $route (to, from) {
// debugger;
if (this.pathList.includes(to.path)) { if (this.pathList.includes(to.path)) {
const index = (this.pathList.findIndex(() => { const index = (this.pathList.findIndex(() => {
return from.path return from.path
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
this.pathList.push(to.path) this.pathList.push(to.path)
this.$router.isBack = false this.$router.isBack = false
} }
if (to.path === '/tab/home') { if (to.path === '/tab/home-page') {
this.$router.isBack = true this.$router.isBack = true
this.pathList = [] this.pathList = []
} }
......
...@@ -107,7 +107,44 @@ export default { ...@@ -107,7 +107,44 @@ export default {
this.tabNum = i this.tabNum = i
}, },
toSign () { 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 () { toWatch () {
hlsPopup.showLongCenter('敬请期待') hlsPopup.showLongCenter('敬请期待')
......
...@@ -131,7 +131,7 @@ export default new Router({ ...@@ -131,7 +131,7 @@ export default new Router({
children: [ children: [
{path: '/tab/home-page', component: HomePage, name: 'HomePage', meta: {keepAlive: false}}, {path: '/tab/home-page', component: HomePage, name: 'HomePage', meta: {keepAlive: false}},
{path: '/tab/my-info', component: MyInfo, name: 'MyInfo', meta: {keepAlive: true}}, {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