|
@@ -22,6 +22,11 @@
|
|
|
bottom: 42.6vh;
|
|
|
left: 2.12rem;
|
|
|
}
|
|
|
+ .btn-active {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 48.5vh;
|
|
|
+ left: 2.12rem;
|
|
|
+ }
|
|
|
.download-app{
|
|
|
width: 3.26rem;
|
|
|
height: 0.88rem;
|
|
@@ -55,6 +60,15 @@
|
|
|
u = navigator.userAgent,
|
|
|
isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
|
|
|
isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
|
|
+ //长屏判断
|
|
|
+ if(document.documentElement.clientHeight > 736){
|
|
|
+ const codeContainer = document.getElementsByClassName('code-container')[0];
|
|
|
+ codeContainer.style.background = 'url(../static/img/shaky/iphonex-bg.png)';
|
|
|
+ codeContainer.style.backgroundRepeat = 'no-repeat';
|
|
|
+ codeContainer.style.backgroundSize = '7.5rem 100vh';
|
|
|
+ const btnContent = document.getElementsByClassName('btn-content')[0];
|
|
|
+ btnContent.className = 'btn-active';
|
|
|
+ }
|
|
|
//埋点
|
|
|
if(isAndroid){
|
|
|
operate('中秋活动落地页');
|