Commit 4c0dd041 authored by luofangping's avatar luofangping

fix:落地页

parent 311df345
...@@ -380,16 +380,16 @@ class MyAdvideo { ...@@ -380,16 +380,16 @@ class MyAdvideo {
// //
} else if (this.macro === 2) { } else if (this.macro === 2) {
this.landpage = replaceMacro2(this.videoRaw["landingpage"], event, { this.landpage = replaceMacro2(this.videoRaw["landingpage"], event, {
responseTime: this._responseTime+"", responseTime: this._responseTime + "",
readyTime: this._readyTime+"", readyTime: this._readyTime + "",
clickTime: +new Date()+"", clickTime: +new Date() + "",
showTime: this._showTime, showTime: this._showTime,
}); });
const clicknotice = (this.videoRaw["clicknotice"] || []).map(e => { const clicknotice = (this.videoRaw["clicknotice"] || []).map(e => {
return replaceMacro2(e, event, { return replaceMacro2(e, event, {
responseTime: this._responseTime+"", responseTime: this._responseTime + "",
readyTime: this._readyTime+"", readyTime: this._readyTime + "",
clickTime: +new Date()+"", clickTime: +new Date() + "",
showTime: this._showTime showTime: this._showTime
}); });
}); });
......
...@@ -2,96 +2,90 @@ ...@@ -2,96 +2,90 @@
0% { 0% {
transform: translate(0, 100%); transform: translate(0, 100%);
} }
100% { 100% {
transform: translate(0, 0); transform: translate(0, 0);
} }
} }
.video-land-page {
position: absolute; .video-land-page-content {
width: 100%;
height: 658px;
bottom: 0;
background:rgba(255,255,255,1);
.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; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} background: rgba(0, 0, 0, 0.6);
.app-logo { }
width: 125px;
height: 125px; .app-close {
background-repeat: no-repeat; position: absolute;
background-size: contain; width: 5.6vw;
border-radius: 12px; height: 3.1vh;
margin-top: 40px; top: 10.7vw;
} right: 3.75vh;
.app-name { }
width:544px;
font-size:32px; .app-info-wrap {
font-family:PingFangSC-Regular,PingFang SC; padding: 3vh 0;
font-weight:400; box-sizing: border-box;
color:rgba(74,74,74,1); width: 84vw;
line-height:45px; height: 51.9vh;
text-align: center; background-color: #fff;
margin-top:24px; position: absolute;
} top: 0;
.app-star-num { right: 0;
left: 0;
bottom: 0;
margin: auto;
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
flex-direction: row; }
margin-top: 33px;
margin-bottom: 43px; .app-logo {
} width: 18.7vw;
.app-star-icon { margin-top: 4vh;
width: 40px; height: 10.5vh;
height: 40px; background-size: 100%;
background-size: contain; }
background-repeat: no-repeat;
margin-right: 10px;
} .app-name {
.app-star-yellow { font-size: 24px;
background-image: url('/dafuweng/star-y.png'); font-weight: 400;
} color: rgb(70, 63, 63);
.app-star-gray { line-height: 3.4vh;
background-image: url('/dafuweng/star-g.png') text-align: center;
} margin-top: 3vh;
.app-star-half { }
background-image: url('/dafuweng/star-half.png');
} .app-tips {
.app-button { margin: 4vh 0;
width:322px; font-size: 17px;
height:74px; color: #D2B488;
background:rgba(74,144,226,1); font-weight: 500;
border-radius:4px; }
margin-top: 74px;
font-size: 34px;
font-family:PingFangSC-Regular,PingFang SC; .app-button {
font-weight:400; width: 75.2vw;
color:rgba(255,255,255,1); 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; display: flex;
justify-content: center; justify-content: center;
align-items: 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
...@@ -14,25 +14,28 @@ export default { ...@@ -14,25 +14,28 @@ export default {
this.el.classList.add('video-land-page'); this.el.classList.add('video-land-page');
this.el.innerHTML = ` this.el.innerHTML = `
<div class="video-land-page-content"> <div class="video-land-page-content">
<img class="app-close"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gBDL0BhGOgALNWHG273lQ5dKW03IATfYSK9CmcncPBvC8mH5VuX6sPfYRyq0+1e4iOUugL/e3rmehQK70rL++8L1QuRkvq8lXnvgeH9ivg/Q8XnV69aMKIAAAAASUVORK5CYII=">
</img>
<div class="app-info-wrap">
<div class="app-logo"></div> <div class="app-logo"></div>
<div class="app-name"></div> <div class="app-name"></div>
<div class="app-star-num"></div> <div class="app-tips">新人下载立领60元现金礼包</div>
<div class="app-comment">
<div class="app-person-icon"></div>
<div class="app-comment-num"></div>
</div>
<div class="app-button"></div> <div class="app-button"></div>
<div class="app-download-num"></div>
</div>
</div> </div>
`; `;
this.appNameEl = this.el.querySelector('.app-name'); this.appNameEl = this.el.querySelector('.app-name');
this.appCommentNumEl = this.el.querySelector('.app-comment-num'); this.appClose = this.el.querySelector(".app-close");
this.appLogoEl = this.el.querySelector('.app-logo');
this.appButtonEl = this.el.querySelector('.app-button'); this.appButtonEl = this.el.querySelector('.app-button');
this.appIcon = this.el.querySelector('.app-logo'); 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) => { this.el.addEventListener('click', (e) => {
if (e.target === this.appButton) { if (e.target === this.appButton) {
this.$player.event.emit('$footerPageButtonClick'); this.$player.event.emit('$footerPageButtonClick');
} else if (e.target === this.appClose) {
this.hide();
} else { } else {
this.$player.event.emit('$footerPageClick'); this.$player.event.emit('$footerPageClick');
} }
...@@ -40,34 +43,15 @@ export default { ...@@ -40,34 +43,15 @@ export default {
this.hide(); this.hide();
}, },
methods: { 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() { hide() {
this.el.classList.remove('bottom-slide-in');
this.el.style.display = 'none'; this.el.style.display = 'none';
}, },
show() { show() {
this.el.classList.add('bottom-slide-in');
this.el.style.display = 'block'; this.el.style.display = 'block';
} }
}, },
event: { event: {
$landPageChangeApp({ name, commentNum, starNum, appIcon, buttonText }, show = true) { $landPageChangeApp({ name, appIcon, buttonText, donloadNum }, show = true) {
if (!show) { if (!show) {
this.hide(); this.hide();
return; return;
...@@ -78,12 +62,9 @@ export default { ...@@ -78,12 +62,9 @@ export default {
console.log(name); console.log(name);
this.appNameEl.innerText = name; this.appNameEl.innerText = name;
}; };
if (commentNum) { if (donloadNum) {
this.appCommentNumEl.innerText = `${padNum(commentNum)}个评分`; this.appDownloadNum.innerText = `今天有${donloadNum}人已下载`;
} }
if (typeof starNum === 'number') {
this.renderStarNum(starNum);
};
if (buttonText) { if (buttonText) {
this.appButtonEl.innerText = buttonText; this.appButtonEl.innerText = buttonText;
} }
......
...@@ -674,10 +674,10 @@ class CusButton extends eui.Component { ...@@ -674,10 +674,10 @@ class CusButton extends eui.Component {
} }
//播放时的ui //播放时的ui
var element1:HTMLDivElement=document.createElement("div"); var element1: HTMLDivElement = document.createElement("div");
element1.style.margin="auto"; element1.style.margin = "auto";
element1.style.width="100%"; element1.style.width = "100%";
element1.style.height="100%"; element1.style.height = "100%";
element1.style.overflow="hidden"; element1.style.overflow = "hidden";
element1.style.position="absolute"; element1.style.position = "absolute";
//静音按钮 //静音按钮
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment