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
11bc364d
Commit
11bc364d
authored
Mar 13, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
底部控件静态
parent
f1c50410
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
134 additions
and
5 deletions
+134
-5
src/components/livedModel/livedComment.vue
+22
-0
src/components/livedModel/livedControls.vue
+104
-0
src/components/livedModel/notStarted.vue
+3
-4
src/pages/lived/index.vue
+5
-1
static/images/lived/goodsImg.png
+0
-0
No files found.
src/components/livedModel/livedComment.vue
0 → 100644
View file @
11bc364d
<
template
>
<div
class=
"livedComment"
>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
name
:
""
,
data
()
{
return
{}
},
components
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/components/livedModel/livedControls.vue
0 → 100644
View file @
11bc364d
<
template
>
<div
class=
"livedControls"
>
<div
class=
"control flex"
>
<div
class=
"goodsImg"
>
<img
src=
"../../../static/images/lived/goodsImg.png"
alt=
""
>
<p
class=
"goodsNum"
>
99
</p>
</div>
<div
class=
"iptCopy"
>
跟主播说点什么...
</div>
<div
class=
"shareIcon"
>
<van-icon
name=
"share"
/>
</div>
<div
class=
"heardIcon"
>
<van-icon
name=
"like"
class=
"like"
/>
<p
class=
"heardNum"
>
99.9w
</p>
</div>
</div>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
name
:
""
,
data
()
{
return
{}
},
components
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.flex
{
display
:
flex
;
}
.livedControls
{
position
:
absolute
;
bottom
:
10px
;
left
:
0
;
width
:
100vw
;
.control{
height
:
40px
;
align-items
:
center
;
justify-content
:
space-around
;
padding
:
0
12px
;
.goodsImg{
width
:
30px
;
height
:
30px
;
position
:
relative
;
img{
width
:
30px
;
height
:
30px
;
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
-1
;
}
.goodsNum
{
color
:
#fff
;
font-size
:
14px
;
text-align
:
center
;
margin-top
:
10px
;
}
}
.iptCopy
{
margin
:
0
10px
;
width
:
50vw
;
background
:
rgba
(
#000
,
0.4
);
color
:
#999
;
font-size
:
16px
;
height
:
38px
;
border-radius
:
38px
;
line-height
:
38px
;
text-indent
:
1em
;
}
.shareIcon
,
.heardIcon
{
color
:
#fff
;
font-size
:
30px
;
position
:
relative
;
width
:
30px
;
height
:
30px
;
}
.heardIcon
{
.like{
position
:
absolute
;
top
:
0
;
left
:
0
;
}
.heardNum
{
text-align
:
center
;
transform
:
translateY
(
-5px
);
background
:
rgba
(
#E60012
,
0.5
);
border-radius
:
4px
;
padding
:
1px
2px
;
font-size
:
12px
;
}
}
}
}
</
style
>
src/components/livedModel/notStarted.vue
View file @
11bc364d
...
...
@@ -40,10 +40,9 @@ export default {
<
style
lang=
"scss"
scoped
>
.notStarted
{
position
:
absolute
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
width
:
70vw
;
top
:
40%
;
left
:
15vw
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
...
...
src/pages/lived/index.vue
View file @
11bc364d
...
...
@@ -26,6 +26,8 @@
</div>
<!-- 未开始展示 -->
<notStarted
v-if=
"liveNoticeInfo.liveBroadcastState==0"
:info=
"liveNoticeInfo"
></notStarted>
<!-- 控件层 -->
<livedControls
v-if=
"liveNoticeInfo"
:info=
"liveNoticeInfo"
></livedControls>
</div>
<!-- 直播 -->
<live-player
...
...
@@ -44,6 +46,7 @@
import
{
DFSImg
}
from
"@/utils/index"
;
import
live
from
"@/api/live"
;
import
notStarted
from
"@/components/livedModel/notStarted"
import
livedControls
from
"@/components/livedModel/livedControls"
export
default
{
name
:
""
,
data
()
{
...
...
@@ -62,7 +65,8 @@ export default {
};
},
components
:
{
notStarted
notStarted
,
livedControls
},
computed
:
{},
created
()
{},
...
...
static/images/lived/goodsImg.png
0 → 100644
View file @
11bc364d
16.9 KB
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