Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
46017cfc
Commit
46017cfc
authored
Nov 21, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'视频会话逻辑'
parent
ca7521dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
4 deletions
+40
-4
App.vue
src/App.vue
+1
-2
video-list.vue
src/pages/videoSign/video-list.vue
+38
-1
index.js
src/router/index.js
+1
-1
No files found.
src/App.vue
View file @
46017cfc
...
...
@@ -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
=
[]
}
...
...
src/pages/videoSign/video-list.vue
View file @
46017cfc
...
...
@@ -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
(
'敬请期待'
)
...
...
src/router/index.js
View file @
46017cfc
...
...
@@ -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
:
tru
e
}},
{
path
:
'/tab/message-center'
,
component
:
MessageCenter
,
name
:
'MessageCenter'
,
meta
:
{
keepAlive
:
fals
e
}},
],
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment