Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
5c60b60e
Commit
5c60b60e
authored
Mar 20, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
4b433665
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
18 deletions
+24
-18
src/components/livedModel/livedAnnouncement.vue
+10
-7
src/components/livedModel/livedControls.vue
+12
-9
src/components/livedModel/livedIsMsg.vue
+2
-2
No files found.
src/components/livedModel/livedAnnouncement.vue
View file @
5c60b60e
<
template
>
<!-- 公告组件 -->
<div
class=
"livedAnnouncement"
v-show=
"isShow"
>
<scroll-view
:style=
"
{'max-height': '20vh','width':'40vw'}" :scroll-y="true" :scroll-top="scrollTop" :scroll-with-animation="true">
<div
class=
"label"
>
<span
class=
"labelTit"
>
公告:
</span><span
class=
"test"
>
{{
liveNotice
}}
</span>
</div>
</scroll-view>
</div>
</
template
>
...
...
@@ -14,6 +16,7 @@ export default {
data
()
{
return
{
isShow
:
true
,
scrollTop
:
0
,
};
},
components
:
{},
...
...
@@ -23,8 +26,11 @@ export default {
console
.
log
(
'----公告'
)
this
.
isShow
=
true
;
setTimeout
(()
=>
{
this
.
scrollTop
=
1000
;
},
2000
);
setTimeout
(()
=>
{
this
.
isShow
=
false
;
},
8
000
);
},
7
000
);
},
mounted
()
{},
methods
:
{}
...
...
@@ -35,20 +41,17 @@ export default {
.livedAnnouncement
{
margin-left
:
12px
;
width
:
40vw
;
max-height
:
20vh
;
overflow-y
:
auto
;
background
:
rgba
(
#000
,
0.4
);
border-radius
:
10px
;
padding
:
8
px
;
padding
:
6
px
;
margin-bottom
:
10px
;
animation
:
toLeft
7
s
linear
;
animation
:
toLeft
6
s
linear
;
opacity
:
0
;
span{
font-size
:
14px
;
color
:
#f1f1f1
;
}
.label
{
padding-right
:
4px
;
.labelTit{
color
:
#f9a93c
;
}
...
...
@@ -59,7 +62,7 @@ export default {
opacity
:
1
;
}
80
%
{
opacity
:
0.
3
;
opacity
:
0.
6
;
}
100
%
{
opacity
:
0
;
...
...
src/components/livedModel/livedControls.vue
View file @
5c60b60e
...
...
@@ -267,7 +267,7 @@ export default {
}
.livedControls
{
position
:
absolute
;
bottom
:
1
0px
;
bottom
:
2
0px
;
left
:
0
;
width
:
100vw
;
.userComing
{
...
...
@@ -354,15 +354,18 @@ export default {
.like
{
position
:
absolute
;
top
:
0
;
left
:
20%
;
left
:
50%
;
margin-left
:
-16px
;
}
.heardNum
{
text-align
:
center
;
transform
:
translateY
(
-
5
px
);
transform
:
translateY
(
-
18
px
);
background
:
rgba
(
#e60012
,
0.5
);
border-radius
:
4
px
;
border-radius
:
8
px
;
padding
:
1px
2px
;
font-size
:
12px
;
color
:
#fff
;
min-width
:
30px
;
}
.box
{
width
:
100px
;
...
...
@@ -420,11 +423,11 @@ export default {
align-items
:
center
;
justify-content
:
space-between
;
background
:
rgba
(
#000
,
0.4
);
padding
:
0
12
px
;
padding
:
0
6
px
;
width
:
100%
;
height
:
38
px
;
border-radius
:
38
px
;
line-height
:
38
px
;
height
:
40
px
;
border-radius
:
40
px
;
line-height
:
40
px
;
font-size
:
16px
;
.sendIpt
{
width
:
60vw
;
...
...
@@ -434,7 +437,7 @@ export default {
.send
{
color
:
#fff
;
height
:
30px
;
width
:
8
0px
;
width
:
7
0px
;
text-align
:
center
;
line-height
:
30px
;
border-radius
:
30px
;
...
...
src/components/livedModel/livedIsMsg.vue
View file @
5c60b60e
<
template
>
<!-- 评论模块 -->
<div
class=
"livedIsMsg"
>
<div
class=
"list"
v-if=
"list.length>0"
>
<div
class=
"livedIsMsg"
v-if=
"list.length>0"
>
<div
class=
"list"
>
<scroll-view
:style=
"
{'height': '24vh','width':'52vw'}" :scroll-y="true" :scroll-top="scrollTop" :scroll-with-animation="true" @scrolltolower="scrolltolower">
<div
class=
"item flex"
v-for=
"(item,index) in list"
:key=
"index"
>
<div
class=
"user"
>
...
...
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