|
|
@@ -1,144 +1,144 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html>
|
|
|
-<head>
|
|
|
- <meta charset="utf-8">
|
|
|
- <meta name="browsermode" content="application">
|
|
|
- <meta name="full-screen" content="yes"/>
|
|
|
- <meta name="x5-fullscreen" content="true"/>
|
|
|
- <meta name="x5-page-mode" content="app"/>
|
|
|
- <meta name="360-fullscreen" content="true"/>
|
|
|
- <meta name="apple-mobile-web-app-capable" content="yes"/>
|
|
|
- <!-- <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/> -->
|
|
|
- <meta name="viewport"
|
|
|
- content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width,initial-scale=1.0"/>
|
|
|
- <!-- <script src="//unpkg.com/vue-ydui/dist/ydui.flexible.js"></script> -->
|
|
|
- <!--<link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif"> -->
|
|
|
- <title>智能客服系统</title>
|
|
|
-</head>
|
|
|
-<!-- <script src="./url_config.js"></script> -->
|
|
|
-<script>
|
|
|
- window.url_https_ajax = 'https://manage.281570.com';
|
|
|
- window.url_https_wss = 'link.281570.com';
|
|
|
-</script>
|
|
|
-<body>
|
|
|
-<div id="app"></div>
|
|
|
-<!-- built files will be auto injected -->
|
|
|
-</body>
|
|
|
-<!-- <script src="http://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.2.0"></script> -->
|
|
|
-
|
|
|
-<script>
|
|
|
-
|
|
|
- let name = getQueryString('pid');
|
|
|
- // console.log(name)
|
|
|
- if (unescape(name) == "这就是一个编码没有什么用啊") {
|
|
|
- // console.log(name)
|
|
|
- } else {
|
|
|
- document.getElementById("app").remove();
|
|
|
- var parent = document.body;
|
|
|
- var div = document.createElement("div");
|
|
|
- parent.appendChild(div)
|
|
|
- div.innerHTML = "无效访问地址";
|
|
|
- }
|
|
|
-
|
|
|
- function getQueryString(name) {
|
|
|
- var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
|
|
|
- var r = window.location.search.substr(1).match(reg);
|
|
|
- if (r != null) {
|
|
|
- return unescape(r[2]);
|
|
|
- }
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- // //调试打印工具
|
|
|
- // var vConsole = new VConsole();
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * YDUI 可伸缩布局方案
|
|
|
- * rem计算方式:设计图尺寸px / 100 = 实际rem 【例: 100px = 1rem,32px = .32rem】
|
|
|
- */
|
|
|
- !function (window) {
|
|
|
- /* 设计图文档宽度 */
|
|
|
- var docWidth = 750;
|
|
|
- var doc = window.document,
|
|
|
- docEl = doc.documentElement,
|
|
|
- resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
|
|
|
-
|
|
|
- var recalc = (function refreshRem() {
|
|
|
- var clientWidth = docEl.getBoundingClientRect().width;
|
|
|
- /* 8.55:小于320px不再缩小,11.2:大于420px不再放大 */
|
|
|
- docEl.style.fontSize = Math.max(Math.min(20 * (clientWidth / docWidth), 11.2), 8.55) * 5 + 'px';
|
|
|
-
|
|
|
- return refreshRem;
|
|
|
- })();
|
|
|
-
|
|
|
- /* 添加倍屏标识,安卓为1 */
|
|
|
- docEl.setAttribute('data-dpr', window.navigator.appVersion.match(/iphone/gi) ? window.devicePixelRatio : 1);
|
|
|
-
|
|
|
- if (/iP(hone|od|ad)/.test(window.navigator.userAgent)) {
|
|
|
- /* 添加IOS标识 */
|
|
|
- doc.documentElement.classList.add('ios');
|
|
|
- /* IOS8以上给html添加hairline样式,以便特殊处理 */
|
|
|
- if (parseInt(window.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1], 10) >= 8)
|
|
|
- doc.documentElement.classList.add('hairline');
|
|
|
- }
|
|
|
-
|
|
|
- if (!doc.addEventListener) return;
|
|
|
- window.addEventListener(resizeEvt, recalc, false);
|
|
|
- doc.addEventListener('DOMContentLoaded', recalc, false);
|
|
|
- }(window);
|
|
|
-
|
|
|
- //阻止苹果浏览器缩放
|
|
|
- window.onload = function () {
|
|
|
- var lastTouchEnd = 0;
|
|
|
- document.addEventListener('touchstart', function (event) {
|
|
|
- if (event.touches.length > 1) {
|
|
|
- event.preventDefault();
|
|
|
- }
|
|
|
- });
|
|
|
- document.addEventListener('touchend', function (event) {
|
|
|
- var now = (new Date()).getTime();
|
|
|
- if (now - lastTouchEnd <= 300) {
|
|
|
- event.preventDefault();
|
|
|
- }
|
|
|
- lastTouchEnd = now;
|
|
|
- }, false);
|
|
|
- document.addEventListener('gesturestart', function (event) {
|
|
|
- event.preventDefault();
|
|
|
- });
|
|
|
- document.addEventListener('dblclick', function (event) {
|
|
|
- event.preventDefault();
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- // //进入全屏
|
|
|
- // function requestFullScreen() {
|
|
|
- // var de = document.documentElement;
|
|
|
- // if (de.requestFullscreen) {
|
|
|
- // de.requestFullscreen();
|
|
|
- // } else if (de.mozRequestFullScreen) {
|
|
|
- // de.mozRequestFullScreen();
|
|
|
- // } else if (de.webkitRequestFullScreen) {
|
|
|
- // de.webkitRequestFullScreen();
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
- // //退出全屏
|
|
|
- // function exitFullscreen() {
|
|
|
- // var de = document;
|
|
|
- // if (de.exitFullscreen) {
|
|
|
- // de.exitFullscreen();
|
|
|
- // } else if (de.mozCancelFullScreen) {
|
|
|
- // de.mozCancelFullScreen();
|
|
|
- // } else if (de.webkitCancelFullScreen) {
|
|
|
- // de.webkitCancelFullScreen();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // document.body.addEventListener('click', function () {
|
|
|
- // requestFullScreen();
|
|
|
- // //exitFullscreen();
|
|
|
- // }, false);
|
|
|
-
|
|
|
- //
|
|
|
-</script>
|
|
|
-</html>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="browsermode" content="application">
|
|
|
+ <meta name="full-screen" content="yes"/>
|
|
|
+ <meta name="x5-fullscreen" content="true"/>
|
|
|
+ <meta name="x5-page-mode" content="app"/>
|
|
|
+ <meta name="360-fullscreen" content="true"/>
|
|
|
+ <meta name="apple-mobile-web-app-capable" content="yes"/>
|
|
|
+ <!-- <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/> -->
|
|
|
+ <meta name="viewport"
|
|
|
+ content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width,initial-scale=1.0"/>
|
|
|
+ <!-- <script src="//unpkg.com/vue-ydui/dist/ydui.flexible.js"></script> -->
|
|
|
+ <!--<link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif"> -->
|
|
|
+ <title>智能客服系统</title>
|
|
|
+</head>
|
|
|
+<!-- <script src="./url_config.js"></script> -->
|
|
|
+<script>
|
|
|
+ window.url_https_ajax = 'https://manage.281570.com';
|
|
|
+ window.url_https_wss = 'link.281570.com';
|
|
|
+</script>
|
|
|
+<body>
|
|
|
+<div id="app"></div>
|
|
|
+<!-- built files will be auto injected -->
|
|
|
+</body>
|
|
|
+<!-- <script src="http://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.2.0"></script> -->
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+ let name = getQueryString('pid');
|
|
|
+ // console.log(name)
|
|
|
+ if (unescape(name) == "这就是一个编码没有什么用啊") {
|
|
|
+ // console.log(name)
|
|
|
+ } else {
|
|
|
+ document.getElementById("app").remove();
|
|
|
+ var parent = document.body;
|
|
|
+ var div = document.createElement("div");
|
|
|
+ parent.appendChild(div)
|
|
|
+ div.innerHTML = "无效访问地址";
|
|
|
+ }
|
|
|
+
|
|
|
+ function getQueryString(name) {
|
|
|
+ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
|
|
|
+ var r = window.location.search.substr(1).match(reg);
|
|
|
+ if (r != null) {
|
|
|
+ return unescape(r[2]);
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ // //调试打印工具
|
|
|
+ // var vConsole = new VConsole();
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * YDUI 可伸缩布局方案
|
|
|
+ * rem计算方式:设计图尺寸px / 100 = 实际rem 【例: 100px = 1rem,32px = .32rem】
|
|
|
+ */
|
|
|
+ !function (window) {
|
|
|
+ /* 设计图文档宽度 */
|
|
|
+ var docWidth = 750;
|
|
|
+ var doc = window.document,
|
|
|
+ docEl = doc.documentElement,
|
|
|
+ resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
|
|
|
+
|
|
|
+ var recalc = (function refreshRem() {
|
|
|
+ var clientWidth = docEl.getBoundingClientRect().width;
|
|
|
+ /* 8.55:小于320px不再缩小,11.2:大于420px不再放大 */
|
|
|
+ docEl.style.fontSize = Math.max(Math.min(20 * (clientWidth / docWidth), 11.2), 8.55) * 5 + 'px';
|
|
|
+
|
|
|
+ return refreshRem;
|
|
|
+ })();
|
|
|
+
|
|
|
+ /* 添加倍屏标识,安卓为1 */
|
|
|
+ docEl.setAttribute('data-dpr', window.navigator.appVersion.match(/iphone/gi) ? window.devicePixelRatio : 1);
|
|
|
+
|
|
|
+ if (/iP(hone|od|ad)/.test(window.navigator.userAgent)) {
|
|
|
+ /* 添加IOS标识 */
|
|
|
+ doc.documentElement.classList.add('ios');
|
|
|
+ /* IOS8以上给html添加hairline样式,以便特殊处理 */
|
|
|
+ if (parseInt(window.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1], 10) >= 8)
|
|
|
+ doc.documentElement.classList.add('hairline');
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!doc.addEventListener) return;
|
|
|
+ window.addEventListener(resizeEvt, recalc, false);
|
|
|
+ doc.addEventListener('DOMContentLoaded', recalc, false);
|
|
|
+ }(window);
|
|
|
+
|
|
|
+ //阻止苹果浏览器缩放
|
|
|
+ window.onload = function () {
|
|
|
+ var lastTouchEnd = 0;
|
|
|
+ document.addEventListener('touchstart', function (event) {
|
|
|
+ if (event.touches.length > 1) {
|
|
|
+ event.preventDefault();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ document.addEventListener('touchend', function (event) {
|
|
|
+ var now = (new Date()).getTime();
|
|
|
+ if (now - lastTouchEnd <= 300) {
|
|
|
+ event.preventDefault();
|
|
|
+ }
|
|
|
+ lastTouchEnd = now;
|
|
|
+ }, false);
|
|
|
+ document.addEventListener('gesturestart', function (event) {
|
|
|
+ event.preventDefault();
|
|
|
+ });
|
|
|
+ document.addEventListener('dblclick', function (event) {
|
|
|
+ event.preventDefault();
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ // //进入全屏
|
|
|
+ // function requestFullScreen() {
|
|
|
+ // var de = document.documentElement;
|
|
|
+ // if (de.requestFullscreen) {
|
|
|
+ // de.requestFullscreen();
|
|
|
+ // } else if (de.mozRequestFullScreen) {
|
|
|
+ // de.mozRequestFullScreen();
|
|
|
+ // } else if (de.webkitRequestFullScreen) {
|
|
|
+ // de.webkitRequestFullScreen();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ // //退出全屏
|
|
|
+ // function exitFullscreen() {
|
|
|
+ // var de = document;
|
|
|
+ // if (de.exitFullscreen) {
|
|
|
+ // de.exitFullscreen();
|
|
|
+ // } else if (de.mozCancelFullScreen) {
|
|
|
+ // de.mozCancelFullScreen();
|
|
|
+ // } else if (de.webkitCancelFullScreen) {
|
|
|
+ // de.webkitCancelFullScreen();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // document.body.addEventListener('click', function () {
|
|
|
+ // requestFullScreen();
|
|
|
+ // //exitFullscreen();
|
|
|
+ // }, false);
|
|
|
+
|
|
|
+ //
|
|
|
+</script>
|
|
|
+</html>
|