12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>临时停车</title>
- <script>
- // CONFIGURATIONS_PLACEHOLDER
-
- if (/dev-/.test(window?.injectConfig?.api) || window.location.href.indexOf(8080) > -1) {
- window.injectConfig = {
- ...window.injectConfig,
- api: 'https://qa-crm-kpl.kerryprops.com.cn',
- TRACKING_API_URL:
- 'https://qa-tracking-cip.kerryplus.com/sa?project=kerry_tracking',
- profileApi: 'https://qa-apim.kerryplus.com/c/api',
- qaPayment: 'https://qa-payment.kerryonvip.com',
- };
- }
- window.isAlipayClient = false
- // const userAgent = window.navigator.userAgent.toLowerCase()
- // if(!/miniprogram/g.test(userAgent)) {
- // document.getElementsByTagName('title')[0].innerText= '临时停车'
- // }
- </script>
- <script>
- try {
- // 或者使用配置参数来初始化,详情见文档
- // 开发环境和qa环境 打开debug
- // const debug = /dev-t?-?|qa-t?-?|sl-t?-?|2486/.test(window.location.origin);
- let debug = false;
- const keys = ['https://dev-','https://qa-','https://lt-','https://sl-','http://127.0.0.1', 'http://localhost:8080'];
- keys.forEach(key => {
- if(!debug && window.location.origin.indexOf(key) > -1) {
- debug = true
- }
- })
- if (debug) {
- const script = document.createElement('script');
- script.src = 'https://unpkg.com/vconsole@latest/dist/vconsole.min.js';
- document.head.appendChild(script);
- script.addEventListener('load', () => {
- setTimeout(() => {
- window.vConsole = new window.VConsole();
- }, 200);
- });
- }
- } catch (error) {
- console.log(error);
- }
- if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
- // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
- window.H5_LAUNCH_URL = location.href;
- }
- </script>
- <!--引入https://appx/web-view.min.js, 如该 H5 页面需要同时在非支付宝客户端内使用,为避免该请求404,可参考以下写法 -->
- <script>
- if (navigator.userAgent.indexOf('AlipayClient') > -1) {
- document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
- window.isAlipayClient = true
- } else {
- document.writeln('<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"' + '>' + '<' + '/' + 'script>');
- }
- </script>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="./src/main.js"></script>
- </body>
- </html>
|