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
6706a7b8
Commit
6706a7b8
authored
Dec 21, 2022
by
jiaoyahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的关注和我的浏览
parent
ca90a0ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
370 additions
and
121 deletions
+370
-121
api.js
src/axios/api.js
+13
-1
fullScreen.vue
src/views/fullScreen.vue
+2
-1
browse.vue
src/views/mine/browse.vue
+292
-105
follow.vue
src/views/mine/follow.vue
+63
-14
No files found.
src/axios/api.js
View file @
6706a7b8
...
@@ -86,7 +86,19 @@ live: {
...
@@ -86,7 +86,19 @@ live: {
},
},
sigurature
:
function
(
data
){
sigurature
:
function
(
data
){
return
service
.
post
(
'/upload/sigurature/'
+
11
,
data
)
return
service
.
post
(
'/upload/sigurature/'
+
11
,
data
)
}
},
followAnchor
:
function
(
data
){
return
service
.
post
(
'/app/live/followAnchor'
,
data
)
},
getLiveHistory
:
function
(
data
){
return
service
.
post
(
'/app/live/getLiveHistory'
,
data
)
},
getFollowAnchor
:
function
(
data
){
return
service
.
post
(
'/app/live/getFollowAnchor'
,
data
)
},
...
...
src/views/fullScreen.vue
View file @
6706a7b8
...
@@ -511,8 +511,9 @@ export default {
...
@@ -511,8 +511,9 @@ export default {
this
.
lvrId
=
res
.
data
.
data
.
lvrId
//直播间id
this
.
lvrId
=
res
.
data
.
data
.
lvrId
//直播间id
this
.
lvrUbId
=
res
.
data
.
data
.
lvrUbId
//主播id
this
.
lvrUbId
=
res
.
data
.
data
.
lvrUbId
//主播id
// res.data.data.seeDuration
// res.data.data.seeDuration
localStorage
.
setItem
(
'lvrUbId'
,
this
.
lvrUbId
);
let
timer
=
res
.
data
.
data
.
seeDuration
let
timer
=
res
.
data
.
data
.
seeDuration
console
.
log
(
this
.
lvrUbId
,
'主播'
)
console
.
log
(
"token"
,
token
)
console
.
log
(
"token"
,
token
)
console
.
log
(
"头像"
,
img
)
console
.
log
(
"头像"
,
img
)
...
...
src/views/mine/browse.vue
View file @
6706a7b8
This diff is collapsed.
Click to expand it.
src/views/mine/follow.vue
View file @
6706a7b8
...
@@ -3,18 +3,19 @@
...
@@ -3,18 +3,19 @@
<img
src=
"../../assets/left.png"
alt=
""
class=
"Lent_p"
@
click=
"go"
>
<img
src=
"../../assets/left.png"
alt=
""
class=
"Lent_p"
@
click=
"go"
>
<div
class=
"brow"
>
我的关注
</div>
<div
class=
"brow"
>
我的关注
</div>
<div
class=
"Flor"
>
<div
class=
"Flor"
v-for=
"(item,index) in List_p"
:key=
"index"
>
<div
style=
"display:flex"
>
<div
style=
"display:flex"
>
<img
src=
"../../assets/toux.png
"
alt=
""
class=
"Pong"
>
<img
:src=
"item.udPhotoFileidNew
"
alt=
""
class=
"Pong"
>
<div
class=
"name"
>
<div
class=
"name"
>
<div>
林秋平
</div>
<div>
{{
item
.
udNickname
}}
</div>
<div
class=
"Ti"
>
文字
</div>
<div
class=
"Ti"
>
{{
item
.
udSxMemo
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"J_go"
>
<div
class=
"J_go"
>
<img
src=
"../../assets/follow.png"
alt=
""
class=
"Img_s"
@
click=
"fotwo"
v-if=
"isactiveTwo"
>
<img
src=
"../../assets/vit.png"
alt=
""
class=
"Img_s"
@
click=
"fo"
v-if=
"isactive"
>
<img
v-if=
'item.ifFllow==true'
src=
"../../assets/vit.png"
alt=
""
class=
"Img_s"
@
click=
"fotwo(index)"
>
<img
v-if=
'item.ifFllow==false'
src=
"../../assets/follow.png"
alt=
""
class=
"Img_s"
@
click=
"fo(index)"
>
</div>
</div>
</div>
</div>
...
@@ -29,28 +30,65 @@ export default {
...
@@ -29,28 +30,65 @@ export default {
data
()
{
data
()
{
return
{
return
{
isactive
:
false
,
isactive
:
false
,
isactiveTwo
:
true
isactiveTwo
:
true
,
List_p
:[],
lvrUbId
:
''
}
}
},
},
created
()
{
},
created
()
{
},
mounted
()
{
mounted
()
{
this
.
beforeCreate
()
this
.
beforeCreate
()
this
.
getFollowAnchor
()
},
},
methods
:
{
methods
:
{
fotwo
:
function
(){
fotwo
:
function
(
e
){
this
.
List_p
[
e
].
ifFllow
=
false
this
.
isactiveTwo
=
false
;
this
.
isactiveTwo
=
false
;
this
.
isactive
=
true
;
this
.
isactive
=
true
;
this
.
followAnchor
()
},
},
fo
:
function
(){
fo
:
function
(
e
){
this
.
isactiveTwo
=
true
;
this
.
List_p
[
e
].
ifFllow
=
true
this
.
isactive
=
false
;
this
.
isactiveTwo
=
true
;
this
.
isactive
=
false
;
this
.
followAnchor
()
},
},
go
:
function
(){
go
:
function
(){
this
.
$router
.
push
({
name
:
'mine'
})
this
.
$router
.
push
({
name
:
'mine'
})
},
},
followAnchor
(){
this
.
lvrUbId
=
localStorage
.
getItem
(
'lvrUbId'
);
//直播id
console
.
log
(
this
.
lvrUbId
,
'-=----------------'
)
let
temp
=
this
.
qs
.
stringify
({
lvrUbId
:
this
.
lvrUbId
,
type
:
1
,
applicationType
:
4
})
this
.
server
.
live
.
followAnchor
(
temp
).
then
(
res
=>
{
})
},
getFollowAnchor
(){
let
temp
=
this
.
qs
.
stringify
({
// lvrUbId:26,
// type:1,
// applicationType:4
})
this
.
server
.
live
.
getFollowAnchor
(
temp
).
then
(
res
=>
{
let
list
=
res
.
data
.
data
.
list
list
.
forEach
(
i
=>
{
i
.
ifFllow
=
true
});
this
.
List_p
=
list
console
.
log
(
this
.
lvrUbId
,
'-=----------------'
)
})
},
beforeCreate
()
{
beforeCreate
()
{
document
.
querySelector
(
'body'
).
setAttribute
(
'style'
,
'background-color:rgba(247, 247, 247, 1);'
)
document
.
querySelector
(
'body'
).
setAttribute
(
'style'
,
'background-color:rgba(247, 247, 247, 1);'
)
},
},
...
@@ -141,10 +179,21 @@ export default {
...
@@ -141,10 +179,21 @@ export default {
color
:
#2C2C2C
;
color
:
#2C2C2C
;
}
}
.name
.Ti
{
.name
.Ti
{
font-size
:
14px
;
font-size
:
3.73333vw
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
line-height
:
20px
;
line-height
:
5.33333vw
;
overflow
:
hidden
;
height
:
61px
;
/* color: #999999; */
font-size
:
24
rpx
;
text-overflow
:
ellipsis
;
z-index
:
-1
;
display
:
-webkit-box
;
word-break
:
break-all
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
3
;
}
}
</
style
>
</
style
>
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