123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta charset="utf-8" />
- <meta content="yes" name="apple-mobile-web-app-capable" />
- <meta content="yes" name="apple-touch-fullscreen" />
- <meta content="telephone=no,email=no" name="format-detection" />
- <meta content="maximum-dpr=2" name="flexible" />
- <!--<meta name="viewport" content="width=device-width">-->
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
- <title>心灵照相机</title>
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
- <script src="/static/global.js"></script>
- <script>
- var prod = false;
- var baseUrl = prod ? env.prod : env.dev;
- var photoUrl = prod ? env.photoUrl : env.photoUrl;
- var scoketUrl = env.scoketUrl;
- var systemUrl = env.systemUrl;
- // var IsPC = function () {
- // if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
- // return false;
- // } else {
- // return true;
- // }
- // }()
- // console.log(navigator.userAgent);
- var os = function () {
- var ua = navigator.userAgent,
- isWindowsPhone = /(?:Windows Phone)/.test(ua),
- isSymbian = /(?:SymbianOS)/.test(ua) || isWindowsPhone,
- isAndroid = /(?:Android)/.test(ua),
- isFireFox = /(?:Firefox)/.test(ua),
- isChrome = /(?:Chrome|CriOS)/.test(ua),
- isTablet = /(?:iPad|PlayBook)/.test(ua) || (isAndroid && !/(?:Mobile)/.test(ua)) || (isFireFox && /(?:Tablet)/.test(ua)),
- isPhone = /(?:iPhone)/.test(ua) && !isTablet,
- isPc = !isPhone && !isAndroid && !isSymbian;
- return {
- isTablet: isTablet,
- isPhone: isPhone,
- isAndroid: isAndroid,
- isPc: isPc
- };
- }();
- var getQueryVariable = function (variable) {
- var query = window.location.search.substring(1);
- var vars = query.split("&");
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split("=");
- if (pair[0] == variable) { return pair[1]; }
- }
- return (false);
- }
- if ((os.isAndroid || os.isPhone) && (getQueryVariable('userType') != 2 && getQueryVariable('userType') != 3)) {
- let url = window.location.href;
- window.location.href = url + 'h5/index.html'
- }
- //阻止safari浏览器双击放大功能
- let lastTouchEnd = 0 //更新手指弹起的时间
- document.documentElement.addEventListener("touchstart", function (event) {
- //多根手指同时按下屏幕,禁止默认行为
- if (event.touches.length > 1) {
- event.preventDefault();
- }
- });
- document.documentElement.addEventListener("touchend", function (event) {
- let now = (new Date()).getTime();
- if (now - lastTouchEnd <= 300) {
- //当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
- event.preventDefault();
- }else{ // 否则重新手指弹起的时间
- lastTouchEnd = now;
- }
- }, false);
- //阻止双指放大页面
- document.documentElement.addEventListener("gesturestart", function (event) {
- event.preventDefault();
- });
- </script>
- </head>
- <body>
- <div id="app"></div>
- <!-- built files will be auto injected -->
- </body>
- <style scoped>
- html{
- width: 100%;
- height: 100%;
- /* position: relative !important; */
- }
- body {
- padding: 0px;
- margin: 0px;
- /* height: 100%;
- width: 100%; */
- /* height: 100vh;
- width: 100%; */
- /* position: relative !important; */
- /* width: 100%;
- height: 100%;
- margin: 0; */
- /* min-width: 1280px; */
- /* overflow: hidden; */
- }
- </style>
- </html>
|