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
5d6618bd
Commit
5d6618bd
authored
Jan 13, 2020
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
l
parents
cad4de05
4ab7b69f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
60 deletions
+58
-60
index.less
.../adVideo/video-core/videoPlugin/landPagePlugin/index.less
+2
-29
Video.ts
egret/src/myVideo/Video.ts
+56
-31
No files found.
egret/src/adVideo/video-core/videoPlugin/landPagePlugin/index.less
View file @
5d6618bd
@keyframes bottomSlideIn {
0% {
transform: translate(0, 100%);
}
100% {
transform: translate(0, 0);
}
}
.video-land-page-content {
.video-land-page-content {
position: absolute;
position: absolute;
width: 100%;
width: 100%;
height: 100%;
height: 100%;
left: 0;
left: 0;
top: 0;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.6);
background: rgba(0, 0, 0, 0.6);
}
}
...
@@ -32,7 +19,7 @@
...
@@ -32,7 +19,7 @@
padding: 3vh 0;
padding: 3vh 0;
box-sizing: border-box;
box-sizing: border-box;
width: 84vw;
width: 84vw;
height:
51.9
vh;
height:
40
vh;
background-color: #fff;
background-color: #fff;
position: absolute;
position: absolute;
top: 0;
top: 0;
...
@@ -62,18 +49,11 @@
...
@@ -62,18 +49,11 @@
margin-top: 3vh;
margin-top: 3vh;
}
}
.app-tips {
margin: 4vh 0;
font-size: 17px;
color: #D2B488;
font-weight: 500;
}
.app-button {
.app-button {
width: 75.2vw;
width: 75.2vw;
height: 6.9vh;
height: 6.9vh;
margin
-bottom: 2
vh;
margin
: 4
vh;
background: rgba(110, 166, 232, 1);
background: rgba(110, 166, 232, 1);
border-radius: 4px;
border-radius: 4px;
font-size: 17px;
font-size: 17px;
...
@@ -82,10 +62,3 @@
...
@@ -82,10 +62,3 @@
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
}
}
\ No newline at end of file
.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/myVideo/Video.ts
View file @
5d6618bd
...
@@ -2,6 +2,7 @@ import { INetData } from "../../libs/tc/interface/INetData";
...
@@ -2,6 +2,7 @@ import { INetData } from "../../libs/tc/interface/INetData";
import
{
getDefaultConfig
,
replaceUrl
,
replaceMacro1
,
replaceMacro2
}
from
"./getDefaultConfig"
;
import
{
getDefaultConfig
,
replaceUrl
,
replaceMacro1
,
replaceMacro2
}
from
"./getDefaultConfig"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
a
}
from
'../../libs/tc/index'
;
//事件,到时放到Event里,Event里的事件名也需要重理
//事件,到时放到Event里,Event里的事件名也需要重理
export
enum
MediaEvent
{
export
enum
MediaEvent
{
...
@@ -110,7 +111,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
...
@@ -110,7 +111,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
public
completeCallback
:
Function
;
public
completeCallback
:
Function
;
private
appUi
//
: HTMLDivElement //eui.Image//egret.DisplayObjectContainer;
private
appUi
:
HTMLDivElement
//eui.Image//egret.DisplayObjectContainer;
macro
:
number
;
macro
:
number
;
showReport
:
any
;
showReport
:
any
;
...
@@ -399,7 +400,9 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
...
@@ -399,7 +400,9 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
this
.
appAdClose
();
this
.
appAdClose
();
})
})
//下载按钮
//appUi
var
downloadBtn
=
new
Image
()
var
downloadBtn
=
new
Image
()
downloadBtn
.
src
=
"https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/downloadBtn.png"
;
downloadBtn
.
src
=
"https://yun.duiba.com.cn/db_games/activity/xiaoxiaoleTuia/cssImage/downloadBtn.png"
;
downloadBtn
.
style
.
position
=
"absolute"
;
downloadBtn
.
style
.
position
=
"absolute"
;
...
@@ -418,37 +421,58 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
...
@@ -418,37 +421,58 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
//appUi,待修改
//appUi,待修改
this
.
appUi
=
new
Image
();
this
.
appUi
=
document
.
createElement
(
'div'
);
this
.
appUi
.
src
=
this
.
videoRaw
.
rewardvideo
.
endcardimage
;
this
.
appUi
.
style
.
position
=
"absolute"
;
this
.
appUi
.
style
.
width
=
"100%"
;
this
.
appUi
.
style
.
top
=
"50%"
;
this
.
appUi
.
style
.
transform
=
"translateY(-50%)"
;
this
.
appUi
.
style
.
display
=
"none"
;
this
.
appUi
.
style
.
display
=
"none"
;
this
.
appUi
.
onload
=
()
=>
{
//尺寸处理375*520
var
v
=
this
.
videoRaw
.
rewardvideo
;
if
(
this
.
appUi
.
width
/
this
.
appUi
.
height
<
375
/
520
)
{
this
.
initAppUi
({
this
.
appUi
.
style
.
height
=
(
document
.
body
.
clientHeight
-
200
)
+
"px"
appIcon
:
v
.
endcardicon
||
''
,
}
name
:
v
.
endcardtitle
||
''
,
}
slogen
:
v
.
endcarddesc
||
''
})
// this.appUi = document.createElement("div")
//事件
// this.appUi.innerHTML = `
let
appUiChild
=
document
.
querySelector
(
'.video-land-page-content'
);
// <div class="video-land-page-content">
let
appClose
=
document
.
querySelector
(
'.app-close'
);
// <img class="app-close"
let
appButton
=
document
.
querySelector
(
'.app-button'
);
// src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAApCAYAAABDV7v1AAAJoUlEQVRYR62ZDUxTWRbH7yuFtnzYgsCYZQ1RG6bIUkHTomhnCQNGZkxmgzNqZlZXRdQExLW67kBiXIgMWleFEMGvurMbJqDJzhoXszFGhBWByscKjGgVjWLUgC47Q0HKV9n8X95t3nt9tYx6k6Z9pfec3z33nHPPuTBEOBjukb7jcZr7jr6Lprzzo1inpD7+j/AZLxn3js+YhJeL9/l9AfP1UZ3UMNDH18mCYeCHeMkbGxsXGI3GE/7+/ksmJibabTbbLpPJdJ8QMslNpgLexZRUnx8hxH9wcHCXWq3eCYEOh+O4RqMp5/RNUWD+qvwJIQqn03lZoVAspxQul2vg2rVrmStXrrxNCJkghLgnvyWp2ygajUb5+PHjI2q1eitfVldX12eLFi26RggZp/ooqByQhJAgl8vVyzBMMH/i1NTUYH19/edpaWlthJCxd4ClkP4hISGBfX19pRqN5rfiBff19RVFR0eXEkJGqXGoTwI0kBCifvnypTU8PPxj8WSXy/VjQ0PD+tTU1Ka3hHVDarXa4La2thNqtfoLsZ7p6emps2fPfrFt27abhJBhzqqTFBTbDtDQjIwMbXV1daVarZ4vAetoamr60mQy/ZuDpX7rK8AoZIBerw9ubGw8HRIS8pkE5HRdXd2xtLS0bwkh/yWEDFE9dOspqIYQEmEwGOZfvnz5m4iICCnYEZvNtiE5ORk+BDfwBQtINmgMBsOs69evW4OCgj6RgHRduHChYv369X8nhAxwoLCoE64m9tFZhJAwwMbGxs6tq6vbP2fOHK2E0NHOzs7fJSYmXvEB64ZMT0/XXLx48dvAwMB0qe22Wq0ns7Oz/0UIeUUIeUkI+ZEQ8prbehdNT+yKue2nsLMXLFjwi4aGhvyoqKgPJYSPdXZ2ZiUmJv7TC6wbMjMzM6yqqqpKpVL9WsKdpiorK0/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8i2FQlDib4KSZhxZiIpAvrAY5W5fRiAKA/d/BhabcAfdALa0MmTjboErTP4vTEJnsOEivHRKwSq8KLfz3+cyHFPkubRgBDL0BhGOgALNWHG273lQ5dKW03IATfYSK9CmcncPBvC8mH5VuX6sPfYRyq0+1e4iOUugL/e3rmehQK70rL++8L1QuRkvq8lXnvgeH9ivg/Q8XnV69aMKIAAAAASUVORK5CYII=">
appUiChild
.
addEventListener
(
'click'
,
(
e
)
=>
{
// </img>
if
(
e
.
target
===
appClose
)
{
// <div class="app-info-wrap">
this
.
closeEvent
();
// <div class="app-logo"></div>
this
.
appAdClose
();
// <div class="app-name"></div>
}
else
if
(
e
.
target
===
appButton
)
{
// <div class="app-tips">新人下载立领60元现金礼包</div>
this
.
downloadEvent
(
e
);
// <div class="app-button"></div>
}
// <div class="app-download-num"></div>
})
// </div>
// </div>
// `;
}
}
private
initAppUi
(
content
:
{
appIcon
:
String
,
name
:
String
,
slogen
:
String
})
{
const
{
appIcon
,
name
,
slogen
}
=
content
;
this
.
appUi
.
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+qvwJIQqn03lZoVAspxQul2vg2rVrmStXrrxNCJkghLgnvyWp2ygajUb5+PHjI2q1eitfVldX12eLFi26RggZp/ooqByQhJAgl8vVyzBMMH/i1NTUYH19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W5fFxMTc1Iqrdy9e7fFaDSWDQ8P8yFhSRyJfP+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" style="backgroundImage:url(
${
appIcon
}
)"></div>
<div class="app-name">
${
name
}
</div>
<div class="app-button">
${
slogen
}
</div>
</div>
</div>
`
;
// document.body.appendChild(this.appUi);
// this.appUiEvent();
}
private
appUiEvent
()
{
let
appUiChild
=
document
.
querySelector
(
'.video-land-page-content'
);
let
appClose
=
document
.
querySelector
(
'.app-close'
);
let
appButton
=
document
.
querySelector
(
'.app-button'
);
appUiChild
.
addEventListener
(
'click'
,
(
e
)
=>
{
if
(
e
.
target
===
appClose
)
{
this
.
appUi
.
style
.
display
=
"none"
;
}
else
if
(
e
.
target
===
appButton
)
{
console
.
log
(
'点击事件'
);
}
})
}
//初始化监听,只执行一次
//初始化监听,只执行一次
private
initListener
()
{
private
initListener
()
{
//监听开始播放
//监听开始播放
...
@@ -593,8 +617,8 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
...
@@ -593,8 +617,8 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
// 跳转三方链接
// 跳转三方链接
private
linkToThird
(
url
)
{
private
linkToThird
(
url
)
{
//
window.location.href = url;
window
.
location
.
href
=
url
;
window
[
"helpbridge"
].
jumpToOtherWeb
(
url
)
//
window["helpbridge"].jumpToOtherWeb(url)
};
};
...
@@ -610,6 +634,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
...
@@ -610,6 +634,7 @@ class Video extends eui.Component/*egret.DisplayObjectContainer*/ {
name
:
v
.
endcardtitle
||
''
,
name
:
v
.
endcardtitle
||
''
,
slogen
:
v
.
endcarddesc
||
''
slogen
:
v
.
endcarddesc
||
''
};
};
// this.initAppUi({ appIcon: 'aaaa', name: 'bbbb', slogen: 'ccccc' });
}
}
/**
/**
...
...
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