Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
N
newLive
Project
Project
Details
Activity
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
孟庆瑞
newLive
Commits
3ccc9839
Commit
3ccc9839
authored
Dec 22, 2022
by
mengqr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
405e37d5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
10 deletions
+65
-10
index.js
src/router/index.js
+2
-2
fullScreen.vue
src/views/fullScreen.vue
+11
-4
live.vue
src/views/live.vue
+2
-2
liveList.vue
src/views/liveList.vue
+33
-0
password.vue
src/views/password.vue
+16
-1
sign.vue
src/views/sign.vue
+1
-1
No files found.
src/router/index.js
View file @
3ccc9839
...
...
@@ -27,7 +27,7 @@ Vue.use(Router)
const
router
=
new
Router
({
routes
:[
{
path
:
'/'
,
path
:
'/
login
'
,
name
:
'index'
,
component
:
password
,
meta
:
{
...
...
@@ -86,7 +86,7 @@ const router = new Router({
},
{
path
:
'/
list
'
,
path
:
'/'
,
name
:
'list'
,
component
:
list
,
...
...
src/views/fullScreen.vue
View file @
3ccc9839
...
...
@@ -525,10 +525,10 @@ this.pten = false
},
//跳转登录页面
jumpLogin
(){
if
(
this
.
ifSignFollow
==
true
){
this
.
$router
.
push
(
{
path
:
'/'
,
path
:
'/
login
'
,
query
:{
lvrUbId
:
this
.
lvrUbId
...
...
@@ -536,12 +536,19 @@ this.pten = false
});
}
else
{
this
.
$router
.
push
(
{
path
:
'/login'
});
}
},
//反回列表页页面
backHome
(){
this
.
$router
.
push
(
{
path
:
'/
list
'
,
path
:
'/'
,
...
...
src/views/live.vue
View file @
3ccc9839
...
...
@@ -478,7 +478,7 @@ export default {
backHome
(){
this
.
$router
.
push
(
{
path
:
'/
list
'
,
path
:
'/'
,
...
...
@@ -541,7 +541,7 @@ export default {
this
.
$router
.
push
(
{
path
:
'/'
,
path
:
'/
login
'
,
query
:{
lvrUbId
:
this
.
lvrUbId
...
...
src/views/liveList.vue
View file @
3ccc9839
...
...
@@ -59,6 +59,8 @@ export default {
this
.
getRecommendList
()
this
.
getList
()
this
.
getState
()
//判断是否有主播Id
this
.
ifUbId
()
},
methods
:
{
...
...
@@ -147,6 +149,37 @@ export default {
this
.
visitorLog
()
}
},
//判断是否有主播Id
ifUbId
(){
let
data
=
sessionStorage
.
getItem
(
'ifLvrUbId'
);
let
token
=
sessionStorage
.
getItem
(
"token"
)
let
img
=
sessionStorage
.
getItem
(
"isReg"
)
if
(
token
&&
img
){
if
(
data
){
console
.
log
(
"有主播Id"
)
let
temp
=
this
.
qs
.
stringify
({
pmAppVersion
:
'884'
,
pmModel
:
'iPhone 12/13 (Pro)'
,
pmSystem
:
'iOS 10.0.1'
,
pmMac
:
'1'
,
pmIp
:
1
,
lvrUbId
:
data
,
applicationType
:
4
,
type
:
2
,
pmOperator
:
'无运营商'
})
this
.
server
.
live
.
follow
(
temp
).
then
(
res
=>
{
})
}
else
{
console
.
log
(
"没有主播Id"
)
}
}
},
//游客登录
visitorLog
(){
let
temp
=
this
.
qs
.
stringify
({
...
...
src/views/password.vue
View file @
3ccc9839
...
...
@@ -60,7 +60,8 @@ export default {
},
mounted
()
{
//获取是否有主播id
this
.
getUbId
()
},
methods
:
{
...
...
@@ -221,6 +222,20 @@ export default {
},
//获取主播id以及判断是否微信登录
getUbId
(){
console
.
log
(
"主播id"
,
this
.
$route
.
query
.
lvrUbId
)
if
(
this
.
$route
.
query
.
lvrUbId
){
window
.
sessionStorage
.
setItem
(
'ifLvrUbId'
,
this
.
$route
.
query
.
lvrUbId
);
//token
let
data
=
sessionStorage
.
getItem
(
'ifLvrUbId'
);
console
.
log
(
"haha真是哈哈"
,
data
)
}
else
{
console
.
log
(
"阿斯蒂芬"
)
sessionStorage
.
removeItem
(
'ifLvrUbId'
);
}
}
},
};
</
script
>
...
...
src/views/sign.vue
View file @
3ccc9839
...
...
@@ -308,7 +308,7 @@ export default {
// this.getLive()
this
.
$router
.
push
(
{
path
:
'/
list
'
,
path
:
'/'
,
});
...
...
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