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
e69cba05
Commit
e69cba05
authored
Mar 13, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公告组件
parent
776ce888
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
1 deletions
+68
-1
src/components/livedModel/livedAnnouncement.vue
+61
-0
src/components/livedModel/livedControls.vue
+7
-1
No files found.
src/components/livedModel/livedAnnouncement.vue
0 → 100644
View file @
e69cba05
<
template
>
<!-- 公告组件 -->
<div
class=
"livedAnnouncement"
v-if=
"isShow"
>
<div
class=
"label"
>
<span
class=
"label"
>
公告:
</span><span
class=
"test"
>
欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间
</span>
</div>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
name
:
""
,
data
()
{
return
{
isShow
:
true
,
};
},
components
:
{},
computed
:
{},
created
()
{},
onLoad
(){
console
.
log
(
'----公告'
)
this
.
isShow
=
true
;
setTimeout
(()
=>
{
this
.
isShow
=
false
;
},
5900
);
},
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.livedAnnouncement
{
margin-left
:
12px
;
width
:
40vw
;
max-height
:
20vh
;
overflow-y
:
auto
;
background
:
rgba
(
#000
,
0.4
);
border-radius
:
10px
;
padding
:
8px
;
margin-bottom
:
10px
;
animation
:
toLeft
1s
linear
5s
;
opacity
:
1
;
span{
font-size
:
14px
;
color
:
#f1f1f1
;
}
.label
{
padding-right
:
4px
;
}
}
@keyframes
toLeft
{
50
%
{
opacity
:
0.5
;
}
100
%
{
opacity
:
0
;
}
}
</
style
>
src/components/livedModel/livedControls.vue
View file @
e69cba05
<
template
>
<div
class=
"livedControls"
>
<!-- 公告层 -->
<livedAnnouncement></livedAnnouncement>
<!-- 底部控制层 -->
<div
class=
"control flex"
>
<div
class=
"goodsImg"
>
<img
src=
"../../../static/images/lived/goodsImg.png"
alt=
""
>
...
...
@@ -20,12 +23,15 @@
</
template
>
<
script
type=
"text/ecmascript-6"
>
import
livedAnnouncement
from
"@/components/livedModel/livedAnnouncement"
;
export
default
{
name
:
""
,
data
()
{
return
{}
},
components
:
{},
components
:
{
livedAnnouncement
},
computed
:
{},
created
()
{},
mounted
()
{},
...
...
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