index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" viewport-fit="cover" />
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
  7. <title>临时停车</title>
  8. <script>
  9. // CONFIGURATIONS_PLACEHOLDER
  10. if (/dev-/.test(window?.injectConfig?.api) || window.location.href.indexOf(8080) > -1) {
  11. window.injectConfig = {
  12. ...window.injectConfig,
  13. api: 'https://qa-crm-kpl.kerryprops.com.cn',
  14. TRACKING_API_URL:
  15. 'https://qa-tracking-cip.kerryplus.com/sa?project=kerry_tracking',
  16. profileApi: 'https://qa-apim.kerryplus.com/c/api',
  17. qaPayment: 'https://qa-payment.kerryonvip.com',
  18. };
  19. }
  20. window.isAlipayClient = false
  21. // const userAgent = window.navigator.userAgent.toLowerCase()
  22. // if(!/miniprogram/g.test(userAgent)) {
  23. // document.getElementsByTagName('title')[0].innerText= '临时停车'
  24. // }
  25. </script>
  26. <script>
  27. if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
  28. // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
  29. window.H5_LAUNCH_URL = location.href;
  30. }
  31. </script>
  32. <!--引入https://appx/web-view.min.js, 如该 H5 页面需要同时在非支付宝客户端内使用,为避免该请求404,可参考以下写法 -->
  33. <script>
  34. if (navigator.userAgent.indexOf('AlipayClient') > -1) {
  35. document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
  36. window.isAlipayClient = true
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <div id="app"></div>
  42. <script type="module" src="./src/main.js"></script>
  43. </body>
  44. </html>