Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a29278d6
authored
Aug 25, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
fb363b62
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
24 deletions
.postcssrc.js
src/views/crowdfunding/components/CountDown.vue
src/views/crowdfunding/components/LiveBox.vue
.postcssrc.js
View file @
a29278d
...
@@ -13,9 +13,13 @@ module.exports = {
...
@@ -13,9 +13,13 @@ module.exports = {
viewportWidth
:
375
,
// 视窗的宽度,对应的是我们设计稿的宽度,一般是750
viewportWidth
:
375
,
// 视窗的宽度,对应的是我们设计稿的宽度,一般是750
unitPrecision
:
3
,
// 指定`px`转换为视窗单位值的小数位数(很多时候无法整除)
unitPrecision
:
3
,
// 指定`px`转换为视窗单位值的小数位数(很多时候无法整除)
viewportUnit
:
'vw'
,
// 指定需要转换成的视窗单位,建议使用vw
viewportUnit
:
'vw'
,
// 指定需要转换成的视窗单位,建议使用vw
selectorBlackList
:
[
'.ignore'
,
'.hairlines'
,
'ign-'
],
// 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
selectorBlackList
:
[],
// 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
minPixelValue
:
1
,
// 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
minPixelValue
:
0.5
,
// 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
mediaQuery
:
false
// 允许在媒体查询中转换`px`
mediaQuery
:
false
,
// 允许在媒体查询中转换`px`
landscape
:
true
,
landscapeUnit
:
'vw'
,
// (String) 横屏时使用的单位
landscapeWidth
:
812
,
// viewportHeight:812,
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/components/CountDown.vue
View file @
a29278d
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
top
:
0
;
top
:
0
;
z-index
:
-1
;
z-index
:
-1
;
img
{
img
{
width
:
375px
;
width
:
100%
;
height
:
200px
;
height
:
200px
;
}
}
}
}
...
...
src/views/crowdfunding/components/LiveBox.vue
View file @
a29278d
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
class=
"fullscreen-btn"
class=
"fullscreen-btn"
@
click=
"videoFullscreen = false"
@
click=
"videoFullscreen = false"
>
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/
test/zxjg.jp
g"
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/
crowdfunding/fullscreen.pn
g"
>
</div>
</div>
<div
<div
class=
"poster-btn"
class=
"poster-btn"
@
click=
"showKf= true"
@
click=
"showKf= true"
>
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/
test/test1.jpg
"
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/
crowdfunding/gift.gif
"
>
</div>
</div>
<video
<video
id=
"player-container-id"
id=
"player-container-id"
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
autoplay
:
true
,
autoplay
:
true
,
loop
:
true
,
loop
:
true
,
controlBar
:
{
controlBar
:
{
fullscreenToggle
:
false
,
fullscreenToggle
:
false
}
}
})
})
_this
.
player
.
volume
(
0
)
_this
.
player
.
volume
(
0
)
...
@@ -83,8 +83,8 @@ export default {
...
@@ -83,8 +83,8 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.live-box
{
.live-box
{
position
:
fixed
;
position
:
fixed
;
top
:
187px
;
top
:
23%
;
right
:
8px
;
right
:
2%
;
z-index
:
7
;
z-index
:
7
;
width
:
82px
;
width
:
82px
;
height
:
144px
;
height
:
144px
;
...
@@ -113,23 +113,26 @@ export default {
...
@@ -113,23 +113,26 @@ export default {
#player-container-id
{
#player-container-id
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
video{
object-fit
:
cover
!important
;
}
}
}
.fullscreen-btn
{
.fullscreen-btn
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
right
:
20
px
;
right
:
8
px
;
top
:
20
px
;
top
:
14
px
;
width
:
40
px
;
width
:
32
px
;
height
:
40
px
;
height
:
32
px
;
z-index
:
2
;
z-index
:
2
;
}
}
.poster-btn
{
.poster-btn
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
left
:
20
px
;
left
:
17
px
;
top
:
20
px
;
top
:
17
px
;
width
:
40
px
;
width
:
76
px
;
height
:
40
px
;
height
:
115
px
;
z-index
:
2
;
z-index
:
2
;
}
}
/
deep
/
.vjs-control-bar
{
/
deep
/
.vjs-control-bar
{
...
@@ -137,13 +140,13 @@ export default {
...
@@ -137,13 +140,13 @@ export default {
}
}
}
}
.videoFullscreen
{
.videoFullscreen
{
width
:
100vw
;
width
:
100vw
!important
;
height
:
100vh
;
height
:
100vh
!important
;
left
:
0
;
left
:
0
!important
;
top
:
0
;
top
:
0
!important
;
right
:
0
;
right
:
0
!important
;
bottom
:
0
;
bottom
:
0
!important
;
border
:
none
;
border
:
none
!important
;
.mask
{
.mask
{
display
:
none
;
display
:
none
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment