Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
xiaoxiaoleTuia
Commits
146bebe8
Commit
146bebe8
authored
Jan 13, 2020
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:MrKwon/xiaoxiaoletuia
parents
3d657571
4c0dd041
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10194 additions
and
124 deletions
+10194
-124
adVideo.ts
egret/src/adVideo/adVideo.ts
+7
-7
index.less
.../adVideo/video-core/videoPlugin/landPagePlugin/index.less
+76
-82
index.ts
...rc/adVideo/video-core/videoPlugin/landPagePlugin/index.ts
+16
-35
package-lock.json
package-lock.json
+10095
-0
No files found.
egret/src/adVideo/adVideo.ts
View file @
146bebe8
...
...
@@ -380,16 +380,16 @@ class MyAdvideo {
//
}
else
if
(
this
.
macro
===
2
)
{
this
.
landpage
=
replaceMacro2
(
this
.
videoRaw
[
"landingpage"
],
event
,
{
responseTime
:
this
.
_responseTime
+
""
,
readyTime
:
this
.
_readyTime
+
""
,
clickTime
:
+
new
Date
()
+
""
,
responseTime
:
this
.
_responseTime
+
""
,
readyTime
:
this
.
_readyTime
+
""
,
clickTime
:
+
new
Date
()
+
""
,
showTime
:
this
.
_showTime
,
});
const
clicknotice
=
(
this
.
videoRaw
[
"clicknotice"
]
||
[]).
map
(
e
=>
{
return
replaceMacro2
(
e
,
event
,
{
responseTime
:
this
.
_responseTime
+
""
,
readyTime
:
this
.
_readyTime
+
""
,
clickTime
:
+
new
Date
()
+
""
,
responseTime
:
this
.
_responseTime
+
""
,
readyTime
:
this
.
_readyTime
+
""
,
clickTime
:
+
new
Date
()
+
""
,
showTime
:
this
.
_showTime
});
});
...
...
egret/src/adVideo/video-core/videoPlugin/landPagePlugin/index.less
View file @
146bebe8
...
...
@@ -2,96 +2,90 @@
0% {
transform: translate(0, 100%);
}
100% {
transform: translate(0, 0);
}
}
.video-land-page {
position: absolute;
width: 100%;
height: 658px;
bottom: 0;
background:rgba(255,255,255,1);
.video-land-page-content {
.video-land-page-content {
position: absolute;
width: 100%;
height: 100%;
left:
0;
top:
0;
display:
flex;
left:
0;
top:
0;
display:
flex;
flex-direction: column;
align-items: center;
}
.app-logo {
width: 125px;
height: 125px;
background-repeat: no-repeat;
background-size: contain;
border-radius: 12px;
margin-top: 40px;
}
.app-name {
width:544px;
font-size:32px;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(74,74,74,1);
line-height:45px;
text-align: center;
margin-top:24px;
}
.app-star-num {
background: rgba(0, 0, 0, 0.6);
}
.app-close {
position: absolute;
width: 5.6vw;
height: 3.1vh;
top: 10.7vw;
right: 3.75vh;
}
.app-info-wrap {
padding: 3vh 0;
box-sizing: border-box;
width: 84vw;
height: 51.9vh;
background-color: #fff;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
flex-direction: row;
margin-top: 33px;
margin-bottom: 43px;
}
.app-star-icon {
width: 40px;
height: 40px;
background-size: contain;
background-repeat: no-repeat;
margin-right: 10px;
}
.app-star-yellow {
background-image: url('/dafuweng/star-y.png');
}
.app-star-gray {
background-image: url('/dafuweng/star-g.png')
}
.app-star-half {
background-image: url('/dafuweng/star-half.png');
}
.app-button {
width:322px;
height:74px;
background:rgba(74,144,226,1);
border-radius:4px;
margin-top: 74px;
font-size: 34px;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(255,255,255,1);
}
.app-logo {
width: 18.7vw;
margin-top: 4vh;
height: 10.5vh;
background-size: 100%;
}
.app-name {
font-size: 24px;
font-weight: 400;
color: rgb(70, 63, 63);
line-height: 3.4vh;
text-align: center;
margin-top: 3vh;
}
.app-tips {
margin: 4vh 0;
font-size: 17px;
color: #D2B488;
font-weight: 500;
}
.app-button {
width: 75.2vw;
height: 6.9vh;
margin-bottom: 2vh;
background: rgba(110, 166, 232, 1);
border-radius: 4px;
font-size: 17px;
color: rgba(255, 255, 255, 1);
display: flex;
justify-content: center;
align-items: center;
}
.app-comment {
display: flex;
flex-direction: row;
align-content: center;
}
.app-comment-num {
font-size:32px;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(153,153,153,1);
line-height:45px
}
}
.bottom-slide-in {
animation: bottomSlideIn 0.3s forwards;
}
.app-download-num {
font-size: 14px;
font-weight: 400;
color: rgba(132, 132, 132, 1);
line-height: 3vh;
}
\ No newline at end of file
egret/src/adVideo/video-core/videoPlugin/landPagePlugin/index.ts
View file @
146bebe8
...
...
@@ -14,25 +14,28 @@ export default {
this
.
el
.
classList
.
add
(
'video-land-page'
);
this
.
el
.
innerHTML
=
`
<div class="video-land-page-content">
<img class="app-close"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAApCAYAAABDV7v1AAAJoUlEQVRYR62ZDUxTWRbH7yuFtnzYgsCYZQ1RG6bIUkHTomhnCQNGZkxmgzNqZlZXRdQExLW67kBiXIgMWleFEMGvurMbJqDJzhoXszFGhBWByscKjGgVjWLUgC47Q0HKV9n8X95t3nt9tYx6k6Z9pfec3z33nHPPuTBEOBjukb7jcZr7jr6Lprzzo1inpD7+j/AZLxn3js+YhJeL9/l9AfP1UZ3UMNDH18mCYeCHeMkbGxsXGI3GE/7+/ksmJibabTbbLpPJdJ8QMslNpgLexZRUnx8hxH9wcHCXWq3eCYEOh+O4RqMp5/RNUWD+qvwJIQqn03lZoVAspxQul2vg2rVrmStX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g0NYfXUkoh0QNJ0Q2ta+HQQIQT5FrChBQUFSYWFhXukjtyxsbGukpKSNYWFhS/4tyQA4PdM8B+l3W5fFxMTc1Iqrdy9e7fFaDSWDQ8P8yFhSRyJfP+CbLcLcbBuy+7duxdH776AgAAEnGCMj493r169etXVq1f5Acb2TPyKPhgXY3K5/JdiAV1dXY1Lly4tHx0dpZ0i+htqSamIFWQOnhuwrc3OnTsTjhw58rVCoYDFxbu2W6fT/YVr8NjeiYLCL9l0MjExcVt8fre3t9cnJSVV4A6Kt93UJ9+UVsSwgHJbNjs7O768vDxfoVDgyHWPnp6eP8XFxVXw0h17AUEDCOlE09HR8fvExMQ8Ostms11Zvnz5WR4kLDkTSCrCGyxr2Y0bNy6srKzMDwwMxDNxOp0D69aty7x06dJDXrrzuHuC04cfO3YsJT4+Pr6lpeXh/v370d9gi2k7C0hcs8z4nOZdENNbQ5pjoS9Ur9dHFhUVmfz9/SeLi4trm5qaHnO1K83LLChe2HpEKAoNTMY7PYUQzZgAWORJehU4o2KCt6PUsjgM2CtOrrWBLnwGA45f6MCxSi8i2FQlDib4KSZhxZiIpAvrAY5W5fRiAKA/d/BhabcAfdALa0MmTjboErTP4vTEJnsOEivHRKwSq8KLfz3+cyHFPkubRgBDL0BhGOgALNWHG273lQ5dKW03IATfYSK9CmcncPBvC8mH5VuX6sPfYRyq0+1e4iOUugL/e3rmehQK70rL++8L1QuRkvq8lXnvgeH9ivg/Q8XnV69aMKIAAAAASUVORK5CYII=">
</img>
<div class="app-info-wrap">
<div class="app-logo"></div>
<div class="app-name"></div>
<div class="app-star-num"></div>
<div class="app-comment">
<div class="app-person-icon"></div>
<div class="app-comment-num"></div>
</div>
<div class="app-tips">新人下载立领60元现金礼包</div>
<div class="app-button"></div>
<div class="app-download-num"></div>
</div>
</div>
`
;
this
.
appNameEl
=
this
.
el
.
querySelector
(
'.app-name'
);
this
.
appCommentNumEl
=
this
.
el
.
querySelector
(
'.app-comment-num'
);
this
.
appLogoEl
=
this
.
el
.
querySelector
(
'.app-logo'
);
this
.
appClose
=
this
.
el
.
querySelector
(
".app-close"
);
this
.
appButtonEl
=
this
.
el
.
querySelector
(
'.app-button'
);
this
.
appIcon
=
this
.
el
.
querySelector
(
'.app-logo'
);
this
.
starNumEl
=
this
.
el
.
querySelector
(
'.app-star
-num'
);
this
.
appDownloadNum
=
this
.
el
.
querySelector
(
'.app-download
-num'
);
this
.
el
.
addEventListener
(
'click'
,
(
e
)
=>
{
if
(
e
.
target
===
this
.
appButton
)
{
this
.
$player
.
event
.
emit
(
'$footerPageButtonClick'
);
}
else
if
(
e
.
target
===
this
.
appClose
)
{
this
.
hide
();
}
else
{
this
.
$player
.
event
.
emit
(
'$footerPageClick'
);
}
...
...
@@ -40,34 +43,15 @@ export default {
this
.
hide
();
},
methods
:
{
renderStarNum
(
num
)
{
let
dom
=
''
;
let
renderNum
=
5
;
while
(
renderNum
>
0
)
{
if
(
num
>=
1
)
{
dom
+=
'<div class="app-star-yellow app-star-icon"></div>'
;
}
else
if
(
num
===
0.5
)
{
dom
+=
'<div class="app-star-half app-star-icon"></div>'
;
}
else
{
dom
+=
'<div class="app-star-gray app-star-icon"></div>'
;
}
renderNum
-=
1
;
num
-=
1
;
}
console
.
log
(
dom
);
this
.
starNumEl
.
innerHTML
=
dom
;
},
hide
()
{
this
.
el
.
classList
.
remove
(
'bottom-slide-in'
);
this
.
el
.
style
.
display
=
'none'
;
},
show
()
{
this
.
el
.
classList
.
add
(
'bottom-slide-in'
);
this
.
el
.
style
.
display
=
'block'
;
}
},
event
:
{
$landPageChangeApp
({
name
,
commentNum
,
starNum
,
appIcon
,
buttonText
},
show
=
true
)
{
$landPageChangeApp
({
name
,
appIcon
,
buttonText
,
donloadNum
},
show
=
true
)
{
if
(
!
show
)
{
this
.
hide
();
return
;
...
...
@@ -78,12 +62,9 @@ export default {
console
.
log
(
name
);
this
.
appNameEl
.
innerText
=
name
;
};
if
(
comment
Num
)
{
this
.
app
CommentNumEl
.
innerText
=
`
${
padNum
(
commentNum
)}
个评分
`
;
if
(
donload
Num
)
{
this
.
app
DownloadNum
.
innerText
=
`今天有
${
donloadNum
}
人已下载
`
;
}
if
(
typeof
starNum
===
'number'
)
{
this
.
renderStarNum
(
starNum
);
};
if
(
buttonText
)
{
this
.
appButtonEl
.
innerText
=
buttonText
;
}
...
...
package-lock.json
0 → 100644
View file @
146bebe8
This diff is collapsed.
Click to expand it.
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