فهرست منبع

新的下载页,openinstall

lizhen_gitee 8 ماه پیش
والد
کامیت
b92fb6d869
1فایلهای تغییر یافته به همراه63 افزوده شده و 63 حذف شده
  1. 63 63
      application/index/view/index/index.html

+ 63 - 63
application/index/view/index/index.html

@@ -15,15 +15,15 @@
         <div class="container">
             <div class="f_row-cen-cen"><img src="/assets/down/assets/download/logo.png" class="logo-img">
                 <div class="app-name">爱交友 来简讯</div>
-                <div class="version"></div>
+                <div class="version">版本:1.0.5</div>
             </div>
             <div class="foot">
                 <div class="foot-btn" @click="openApp()">我已下载,立即打开</div>
-                <div class="foot-btn">下载App</div>
-            </div>
+            <div class="foot-btn">下载App</div>
         </div>
     </div>
 </div>
+</div>
 <script type="text/javascript" charset="UTF-8" src="https://web-vpsxrx.openinstall.com/web/banner.js?id=5604932523897927065"></script>
 <script>
     new Vue({
@@ -33,71 +33,71 @@
             version: '1.0.4',
         },
         created() {
-            // 获取当前的apk路径
-            this.getApk();
+        // 获取当前的apk路径
+        this.getApk();
+    },
+    methods: {
+        judeg() {
+            var ua = navigator.userAgent.toLowerCase();
+            // 判断是不是微信浏览器
+            if (ua.match(/MicroMessenger/i) == "micromessenger") {
+                // 是微信浏览器
+                var warp = document.getElementById('warp');
+                var item = document.createElement('div');
+                item.className = 'wx';
+                warp.appendChild(item);
+                return true
+            }
+            return false
         },
-        methods: {
-            judeg() {
-                var ua = navigator.userAgent.toLowerCase();
-                // 判断是不是微信浏览器
-                if (ua.match(/MicroMessenger/i) == "micromessenger") {
-                    // 是微信浏览器
-                    var warp = document.getElementById('warp');
-                    var item = document.createElement('div');
-                    item.className = 'wx';
-                    warp.appendChild(item);
-                    return true
-                }
-                return false
-            },
-            getApk() {
-                return false;
-                //发送get请求
-                this.$http.get('https://app.yinghao.ltd/index.php?s=api/version/upgrade').then((res) => {
-                    let data = JSON.parse(res.bodyText)
-                    this.url = data.data.androidUrl;
-                    this.version = data.data.androidVersion;
-                });
-            },
+        getApk() {
+            return false;
+            //发送get请求
+            this.$http.get('https://app.yinghao.ltd/index.php?s=api/version/upgrade').then((res) => {
+                let data = JSON.parse(res.bodyText)
+                this.url = data.data.androidUrl;
+            this.version = data.data.androidVersion;
+        });
+    },
 
-            // 打开app
-            openApp() {
-                if (this.judeg()) return;
+    // 打开app
+    openApp() {
+        if (this.judeg()) return;
 
-                var u = navigator.userAgent;
-                var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; // Android系统或者uc浏览器
-                var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // iOS系统
-                // 如果为Android系统
-                if (isAndroid) {
-                    window.location.href = `ysyell://openlink.cc/`;
-                }
+        var u = navigator.userAgent;
+        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; // Android系统或者uc浏览器
+        var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // iOS系统
+        // 如果为Android系统
+        if (isAndroid) {
+            window.location.href = `ysyell://openlink.cc/`;
+                    }
 
-                // ios设备:原理:判断是否认识这个协议,认识则直接跳转,不认识就在这里下载appios();
-                if (isiOS) {
-                    return false;
-                    alert('ios版本尚未发布')
-                    // var startIndex = u.indexOf('iPhone OS') + 9;
-                    // var endIndex = u.indexOf('like Mac OS') - 1;
-                    // var num = +u.slice(startIndex, endIndex).split('_')[0]; // 计算版本号的前面数值
-                    // if (num < 9) {
-                    //   window.location.href = `bind://${params}`; // URL scheme 链接
-                    // } else {
-                    //   window.location.href = " "; // universal link 链接
-                    // }
-                };
-            },
+            // ios设备:原理:判断是否认识这个协议,认识则直接跳转,不认识就在这里下载appios();
+            if (isiOS) {
+                return false;
+                alert('ios版本尚未发布')
+                // var startIndex = u.indexOf('iPhone OS') + 9;
+                // var endIndex = u.indexOf('like Mac OS') - 1;
+                // var num = +u.slice(startIndex, endIndex).split('_')[0]; // 计算版本号的前面数值
+                // if (num < 9) {
+                //   window.location.href = `bind://${params}`; // URL scheme 链接
+                // } else {
+                //   window.location.href = " "; // universal link 链接
+                // }
+            };
+        },
 
-            // 下载app
-            upload() {
-                if (this.judeg()) return;
-                var a = document.createElement("a");
-                a.setAttribute("href", this.url);
-                a.setAttribute("target", "_blank");
-                var clickEvent = document.createEvent("MouseEvents");
-                clickEvent.initEvent("click", true, true);
-                a.dispatchEvent(clickEvent);
-            }
+        // 下载app
+        upload() {
+            if (this.judeg()) return;
+            var a = document.createElement("a");
+            a.setAttribute("href", this.url);
+            a.setAttribute("target", "_blank");
+            var clickEvent = document.createEvent("MouseEvents");
+            clickEvent.initEvent("click", true, true);
+            a.dispatchEvent(clickEvent);
         }
+    }
     })
 </script>
 
@@ -111,7 +111,7 @@
             document.documentElement.style.fontSize = 100 + "px";
         } else {
             document.documentElement.style.fontSize =
-                (document.documentElement.clientWidth) / 7.5 + "px";
+                    (document.documentElement.clientWidth) / 7.5 + "px";
         }
     }