Browse Source

修改分享页面

15954078560 3 years ago
parent
commit
1c37c1edb8

+ 36 - 69
application/index/view/index/invite.html

@@ -4,10 +4,10 @@
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <link rel="stylesheet" href="__CDN__/assets/invite/reset.css">
-    <!-- <link rel="stylesheet" href="__CDN__/assets/invite/sweetalert/sweetalert.css"> -->
-    <script src="__CDN__/assets/invite/sweetalert/sweetalert.js"></script>
-    <script src="__CDN__/assets/invite/clipboard/clipboard.min.js"></script>
+    <link rel="stylesheet" href="__CDN__/assets/invitenew/reset.css">
+    <!-- <link rel="stylesheet" href="__CDN__/assets/invitenew/sweetalert/sweetalert.css"> -->
+    <!-- <script src="__CDN__/assets/invitenew/sweetalert/sweetalert.js"></script> -->
+    <script src="__CDN__/assets/invitenew/clipboard/clipboard.min.js"></script>
 
     <title>下载app</title>
     <script>
@@ -28,67 +28,39 @@
     </script>
     <style>
         .page{
-            width: 3.48rem;
-            height: 6.17rem;
+            width: 3.20rem;
             position: relative;
             margin: 0 auto;
-            padding: 0.14rem;
-            background-color: #1D1A1B;
-        }
-        .people-panel{
-           width: 3.20rem;
-           height: 5.35rem;
-           position: relative;
-           z-index: 2;
-           margin: 0 auto;
-        }
-        .people-panel .people-img{
-           width: 100%;
-           height: 100%;
-           position: relative;
-           object-fit: cover;
-        }
-        .people-panel::after{
-            content: '';
-            position: absolute;
-            left: 0;
-            top: 0;
-            width: 100%;
             height: 100%;
-            background: rgba(0,0,0,.4);
+            /* padding-top: 24vh; */
+            background-color: #1D1A1B;;
         }
-        .girl-panel{
-            position: absolute;
-            z-index: 3;
-            width: 100%;
-            height: 100%;
-            left: 0;
-            top: 0;
-            padding-top: 0.42rem;
+        .logotop-img{
+            width: 2.83rem;
+            height: 1.82rem;
         }
-        .girl-panel .logo-img{
-            width: 1.41rem;
-            height: 0.44rem;
-            object-fit: cover;
+        .logotxt-img{
+            margin-top: 0.49rem;
+            width: 2.43rem;
+            height: 0.53rem;
         }
-        .girl-panel .girl-img{
-            width: 3.02rem;
-            height: 4.34rem;
-            object-fit: cover;
+        .logo-img{
+            width: 1.12rem;
+            height: 0.39rem;
+            margin-top: 0.45rem;
         }
+
+        
         .code-panel{
-            position: absolute;
-            z-index: 4;
+            margin-top: 0.44rem;
             width: 100%;
-            height: 1.60rem;
-            left: 0;
-            bottom: 0;
-            padding-top: 0.66rem;
-            background: url(__CDN__/assets/invite/imgs/bottom.png) no-repeat center/cover;
-
+            /* height: 1.60rem; */
+            
+            border-top: 1px solid #FFEDAD;
         }
         .code-panel .code-wrap{
             width: 100%;
+            padding-top: 0.22rem;
 
         }
         .code-panel .code-wrap .k{
@@ -96,7 +68,7 @@
             font-family: PingFang SC;
             font-weight: 500;
             color: #FFEDAD;
-            margin-right: 0.10rem;
+            margin-right: 0.29rem;
         }
         .code-panel .code-wrap .v{
             font-size: 0.17rem;
@@ -108,18 +80,18 @@
             margin:  0.20rem auto 0;
             background: #FFEDAD;
             border-radius: 0.13rem;
-            width: 1.20rem;
-            height: 0.30rem;
-            line-height: 0.30rem;
+            width: 1.30rem;
+            height: 0.25rem;
+            line-height: 0.25rem;
             text-align: center;
             font-size: 0.14rem;
             font-family: PingFang SC;
             font-weight: bold;
             color: #E84B67;
         }
-        body{
+        html,body{
             width: 100%;
-            height: 100vh;
+            height: 100%;
             background-color: #1D1A1B;
         }
         .mengban{
@@ -150,14 +122,10 @@
     <div class="tip">
         <img src="__CDN__/assets/invite/imgs/tips.png" id="tip" style="opacity: 1">
     </div>
-    <div class="page">
-        <div class="people-panel">
-            <img src="__CDN__/assets/invite/imgs/people.png" class="people-img"/>
-        </div>
-        <div class="girl-panel flex-col align-center">
-            <img src="__CDN__/assets/invite/imgs/logo.png" class="logo-img"/>
-            <img src="__CDN__/assets/invite/imgs/girl.png" class="girl-img">
-        </div>
+    <div class="page flex-col align-center justify-center">
+        <img src="__CDN__/assets/invitenew/imgs/logo-top.png" class="logotop-img"/>
+        <img src="__CDN__/assets/invitenew/imgs/logo-txt.png" class="logotxt-img"/>
+        <img src="__CDN__/assets/invitenew/imgs/logo.png" class="logo-img"/>
         <div class="code-panel">
             <div class="code-wrap align-center justify-center">
                 <span class="k">邀请码</span>
@@ -172,7 +140,6 @@
 </body>
 </html>
 <script>
-
     window.onload = function () {
         var is_wxchat = document.getElementById('is_wechat').value;
         var mengban = document.getElementById("mengban");
@@ -205,6 +172,6 @@ clipboard.on('success', function(e) {
 });
 
 clipboard.on('error', function(e) {
-    swal({icon: "error",text:'复制失败',closeOnClickOutside: true,buttons: false,timer: 3000})
+    // swal({icon: "error",text:'复制失败',closeOnClickOutside: true,buttons: false,timer: 3000})
 });
 </script>

+ 210 - 0
application/index/view/index/invite5.23feiqi.html

@@ -0,0 +1,210 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link rel="stylesheet" href="__CDN__/assets/invite/reset.css">
+    <!-- <link rel="stylesheet" href="__CDN__/assets/invite/sweetalert/sweetalert.css"> -->
+    <script src="__CDN__/assets/invite/sweetalert/sweetalert.js"></script>
+    <script src="__CDN__/assets/invite/clipboard/clipboard.min.js"></script>
+
+    <title>下载app</title>
+    <script>
+        !(function(win, doc) {
+            function setFontSize() {
+            var docEl = doc.documentElement;
+            var winWidth = docEl.clientWidth;
+            doc.documentElement.style.fontSize = (winWidth / 375) * 100 + "px";
+            }
+            var userAgent = navigator.userAgent;
+            win.addEventListener("resize", function() {
+            if (navigator.userAgent !== userAgent) {
+                location.reload();
+            }
+            });
+            setFontSize();
+        })(window, document);
+    </script>
+    <style>
+        .page{
+            width: 3.48rem;
+            height: 6.17rem;
+            position: relative;
+            margin: 0 auto;
+            padding: 0.14rem;
+            background-color: #1D1A1B;
+        }
+        .people-panel{
+           width: 3.20rem;
+           height: 5.35rem;
+           position: relative;
+           z-index: 2;
+           margin: 0 auto;
+        }
+        .people-panel .people-img{
+           width: 100%;
+           height: 100%;
+           position: relative;
+           object-fit: cover;
+        }
+        .people-panel::after{
+            content: '';
+            position: absolute;
+            left: 0;
+            top: 0;
+            width: 100%;
+            height: 100%;
+            background: rgba(0,0,0,.4);
+        }
+        .girl-panel{
+            position: absolute;
+            z-index: 3;
+            width: 100%;
+            height: 100%;
+            left: 0;
+            top: 0;
+            padding-top: 0.42rem;
+        }
+        .girl-panel .logo-img{
+            width: 1.41rem;
+            height: 0.44rem;
+            object-fit: cover;
+        }
+        .girl-panel .girl-img{
+            width: 3.02rem;
+            height: 4.34rem;
+            object-fit: cover;
+        }
+        .code-panel{
+            position: absolute;
+            z-index: 4;
+            width: 100%;
+            height: 1.60rem;
+            left: 0;
+            bottom: 0;
+            padding-top: 0.66rem;
+            background: url(__CDN__/assets/invite/imgs/bottom.png) no-repeat center/cover;
+
+        }
+        .code-panel .code-wrap{
+            width: 100%;
+
+        }
+        .code-panel .code-wrap .k{
+            font-size: 0.20rem;
+            font-family: PingFang SC;
+            font-weight: 500;
+            color: #FFEDAD;
+            margin-right: 0.10rem;
+        }
+        .code-panel .code-wrap .v{
+            font-size: 0.17rem;
+            font-family: PingFang SC;
+            font-weight: bold;
+            color: #E84B67;
+        }
+        .code-panel .btn-wrap{
+            margin:  0.20rem auto 0;
+            background: #FFEDAD;
+            border-radius: 0.13rem;
+            width: 1.20rem;
+            height: 0.30rem;
+            line-height: 0.30rem;
+            text-align: center;
+            font-size: 0.14rem;
+            font-family: PingFang SC;
+            font-weight: bold;
+            color: #E84B67;
+        }
+        body{
+            width: 100%;
+            height: 100vh;
+            background-color: #1D1A1B;
+        }
+        .mengban{
+            width: 100%;
+            height: 100%;
+            background: rgba(0,0,0,0.1);
+            position: absolute;
+            top: 0;
+            left: 0;
+            display: none;
+            z-index: -100;
+        }
+        .tip img{
+            position: absolute;
+            top: 10px;
+            right: 30px;
+            width: 150px;
+            height: 130px;
+            z-index: -200;
+            display: none;
+        }
+    </style>
+</head>
+
+<body>
+    <div class="mengban" id="mengban">
+    </div>
+    <div class="tip">
+        <img src="__CDN__/assets/invite/imgs/tips.png" id="tip" style="opacity: 1">
+    </div>
+    <div class="page">
+        <div class="people-panel">
+            <img src="__CDN__/assets/invite/imgs/people.png" class="people-img"/>
+        </div>
+        <div class="girl-panel flex-col align-center">
+            <img src="__CDN__/assets/invite/imgs/logo.png" class="logo-img"/>
+            <img src="__CDN__/assets/invite/imgs/girl.png" class="girl-img">
+        </div>
+        <div class="code-panel">
+            <div class="code-wrap align-center justify-center">
+                <span class="k">邀请码</span>
+                <span class="v">{$code}</span>
+            </div>
+            <div class="btn-wrap copy" data-clipboard-text="{$code}" id="copy">
+                复制并下载
+            </div>
+        </div>
+    </div>
+    <input type="hidden" id="is_wechat" value="{$is_wechat}">
+</body>
+</html>
+<script>
+
+    window.onload = function () {
+        var is_wxchat = document.getElementById('is_wechat').value;
+        var mengban = document.getElementById("mengban");
+        var tip = document.getElementById("tip");
+        var copy = document.getElementById("copy");
+
+        if (is_wxchat != 0) {
+            // console.log(2212);
+            mengban.style.zIndex="9999";
+            mengban.style.display="block";
+            tip.style.zIndex="10";
+            tip.style.display="block";
+            copy.style.display="none";
+            setInterval(function () {
+                // console.log(tip.style.opacity);
+                if (tip.style.opacity == 1) {
+                    tip.style.opacity = 0;
+                } else {
+                    tip.style.opacity = 1;
+                }
+            }, 1000)
+        }
+    };
+
+var clipboard = new ClipboardJS('.copy');
+clipboard.on('success', function(e) {
+    // console.log(e.text);
+    // swal({icon: "success",text:'复制成功',closeOnClickOutside: true,buttons: false,timer: 3000});
+    window.location.href="{$site.apkUrl}"
+});
+
+clipboard.on('error', function(e) {
+    swal({icon: "error",text:'复制失败',closeOnClickOutside: true,buttons: false,timer: 3000})
+});
+</script>

File diff suppressed because it is too large
+ 6 - 0
public/assets/invitenew/clipboard/clipboard.min.js


BIN
public/assets/invitenew/imgs/logo-top.png


BIN
public/assets/invitenew/imgs/logo-txt.png


BIN
public/assets/invitenew/imgs/logo.png


+ 200 - 0
public/assets/invitenew/reset.css

@@ -0,0 +1,200 @@
+/* http://meyerweb.com/eric/tools/css/reset/ 
+   v2.0 | 20110126
+   License: none (public domain)
+*/
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed, 
+figure, figcaption, footer, header, hgroup, 
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+	margin: 0;
+	padding: 0;
+	border: 0;
+	font-size: 100%;
+	font: inherit;
+	vertical-align: baseline;
+	box-sizing: border-box;
+	font-family: Source Han Sans CN;
+}
+
+/* HTML5 display-role reset for older browsers */
+article, aside, details, figcaption, figure, 
+footer, header, hgroup, menu, nav, section {
+	display: block;
+}
+input{
+	outline: none;
+	-webkit-appearance: button;
+	-webkit-appearance: none;
+	border-radius: 0;
+	border:none;
+	padding:0;
+	margin:0;
+	box-sizing: border-box;
+}
+textarea{
+	box-sizing: border-box;
+	resize: none;
+	outline: none;
+	padding:0;
+	margin:0;
+}
+a{
+    text-decoration: none;
+	color: inherit;
+}
+
+body {
+	line-height: 1;
+}
+ol, ul {
+	list-style: none;
+}
+blockquote, q {
+	quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+	content: '';
+	content: none;
+}
+table {
+	border-collapse: collapse;
+	border-spacing: 0;
+}
+
+.clamp {
+	overflow: hidden;
+	text-overflow: ellipsis;
+	white-space: nowrap;
+	display: block;
+}
+.clamp2 {
+	display: -webkit-box;
+	-webkit-box-orient: vertical;
+	-webkit-line-clamp: 2;
+	overflow: hidden;
+}
+.clamp3 {
+	display: -webkit-box;
+	-webkit-box-orient: vertical;
+	-webkit-line-clamp: 3;
+	overflow: hidden;
+}
+.clamp4 {
+	display: -webkit-box;
+	-webkit-box-orient: vertical;
+	-webkit-line-clamp: 3;
+	overflow: hidden;
+}
+/* 布局 */
+ .flex-col {
+	display: flex;
+	flex-direction: column;
+  }
+  .flex-row {
+	display: flex;
+	flex-direction: row;
+  }
+  .justify-start {
+	display: flex;
+	justify-content: flex-start;
+  }
+  .justify-center {
+	display: flex;
+	justify-content: center;
+  }
+  
+  .justify-end {
+	display: flex;
+	justify-content: flex-end;
+  }
+  .justify-evenly {
+	display: flex;
+	justify-content: space-evenly;
+  }
+  .justify-around {
+	display: flex;
+	justify-content: space-around;
+  }
+  .justify-between {
+	display: flex;
+	justify-content: space-between;
+  }
+  .align-start {
+	display: flex;
+	align-items: flex-start;
+  }
+  .align-center {
+	display: flex;
+	align-items: center;
+  }
+  .align-end {
+	display: flex;
+	align-items: flex-end;
+  }
+  .fill{
+	  flex:1;
+  }
+.fill{
+	flex: 1;
+}
+ ::-webkit-scrollbar{ width: 0; height: 0; color: transparent; }
+
+
+ ::-webkit-input-placeholder { /* WebKit, Blink, Edge */    color:    #CCCCCC; font-size:1.2rem;}
+
+ :-moz-placeholder { /* Mozilla Firefox 4 to 18 */   color:    #CCCCCC;font-size: 1.2rem; }
+
+ ::-moz-placeholder { /* Mozilla Firefox 19+ */   color:    #CCCCCC;font-size: 1.2rem; }
+
+ :-ms-input-placeholder { /* Internet Explorer 10-11 */   color:    #CCCCCC;font-size: 1.2rem; }
+
+.animate__delay-1s {
+	-webkit-animation-delay: calc(1s * 1);
+	animation-delay: calc(1s * 1);
+	/* -webkit-animation-delay: calc(var(--animate-delay) * 20);
+	animation-delay: calc(var(--animate-delay) * 20); */
+}
+.animation_slideInDown{
+	animation-duration: 1s;
+	animation-fill-mode: both;
+	animation-name: slideInDown;
+}
+@keyframes slideInDown {
+	from {
+		-webkit-transform: translate3d(-50%, -100%, 0);
+		transform: translate3d(-50%, -100%, 0);
+		visibility: visible;
+	}
+
+	to {
+		-webkit-transform: translate3d(-50%, 0, 0);
+		transform: translate3d(-50%, 0, 0);
+	}
+}
+.animation_slideOutUp{
+	animation-duration: 1s;
+	animation-fill-mode: both;
+	animation-name: slideOutUp;
+}
+@keyframes slideOutUp {
+	from {
+		-webkit-transform: translate3d(-50%, 0, 0);
+		transform: translate3d(-50%, 0, 0);
+	}
+	to {
+		visibility: hidden;
+		-webkit-transform: translate3d(-50%, -100%, 0);
+		transform: translate3d(-50%, -100%, 0);
+	}
+}

Some files were not shown because too many files changed in this diff