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
0d75b7e2
Commit
0d75b7e2
authored
Mar 16, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户进入效果
parent
3f97a81c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
11 deletions
+47
-11
src/components/livedModel/livedAnnouncement.vue
+1
-1
src/components/livedModel/livedControls.vue
+41
-5
src/components/livedModel/livedExplainingCommodities.vue
+5
-5
No files found.
src/components/livedModel/livedAnnouncement.vue
View file @
0d75b7e2
...
...
@@ -40,7 +40,7 @@ export default {
border-radius
:
10px
;
padding
:
8px
;
margin-bottom
:
10px
;
animation
:
toLeft
5
s
linear
;
animation
:
toLeft
6
s
linear
;
opacity
:
0
;
span{
font-size
:
14px
;
...
...
src/components/livedModel/livedControls.vue
View file @
0d75b7e2
...
...
@@ -2,6 +2,8 @@
<div
class=
"livedControls"
>
<!-- 公告层 -->
<livedAnnouncement></livedAnnouncement>
<!-- 用户进入通知 -->
<div
class=
"userComing userComingAni"
v-if=
"userComing"
><span>
xxx
</span><span>
来了
</span></div>
<!-- 评论层 -->
<livedIsMsg></livedIsMsg>
<!-- 带货商品层 -->
...
...
@@ -40,12 +42,13 @@ export default {
likeNum
:
9997
,
//点赞数
imgList
:
[],
iconList
:
[
"
https:
//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
,
"
https:
//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
,
"
https:
//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
,
"
https:
//img2.imgtn.bdimg.com/it/u=1354268575,1268995723&fm=26&gp=0.jpg"
"//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
,
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
,
"//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
,
"//img2.imgtn.bdimg.com/it/u=1354268575,1268995723&fm=26&gp=0.jpg"
],
num
:
0
num
:
0
,
userComing
:
false
,
};
},
components
:
{
...
...
@@ -62,6 +65,7 @@ export default {
mounted
()
{
setInterval
(()
=>
{
this
.
getAdd
();
this
.
userComing
=!
this
.
userComing
;
},
5000
);
},
methods
:
{
...
...
@@ -108,6 +112,38 @@ export default {
bottom
:
10px
;
left
:
0
;
width
:
100vw
;
.userComing{
margin-bottom
:
10px
;
background
:
rgba
(
#000
,
0.4
);
color
:
#fff
;
font-size
:
16px
;
height
:
26px
;
line-height
:
26px
;
border-radius
:
26px
;
padding
:
0
8px
;
display
:
inline-block
;
}
.userComingAni
{
animation
:
userComingAni
5s
linear
;
}
@keyframes
userComingAni
{
0
%
{
transform
:
translateX
(
150vw
);
opacity
:
0.3
;
}
30
%
{
transform
:
translateX
(
12px
);
opacity
:
1
;
}
80
%
{
transform
:
translateX
(
12px
);
opacity
:
1
;
}
100
%
{
transform
:
translateX
(
-150vw
);
opacity
:
0
;
}
}
.control
{
height
:
40px
;
align-items
:
center
;
...
...
src/components/livedModel/livedExplainingCommodities.vue
View file @
0d75b7e2
...
...
@@ -35,31 +35,31 @@ export default {
isEC
:
true
,
id
:
1
,
img
:
"
https:
//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
"//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg"
},
{
isEC
:
true
,
id
:
2
,
img
:
"
https:
//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
},
{
isEC
:
false
,
id
:
3
,
img
:
"
https:
//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
},
{
isEC
:
false
,
id
:
4
,
img
:
"
https:
//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
},
{
isEC
:
false
,
id
:
5
,
img
:
"
https:
//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg"
}
],
// 讲解中浮动商品
...
...
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