index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta name="theme-color" content="#000000" />
  7. <meta name="description" content="Web site created using create-react-app" />
  8. <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  9. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  10. <title>义乌市博物馆馆藏管理系统</title>
  11. <script>
  12. // 甲方域名地址
  13. const baseUrlTempOne = 'https://ywgcxt.yw.gov.cn:9443'
  14. // const baseUrlTempOne = 'https://ywgcxt.yw.gov.cn:8887'
  15. // 测试域名地址
  16. // const baseUrlTempOne = 'https://sit-yiwubwg.4dage.com'
  17. // const baseUrlTempOne = 'http://192.168.20.61:8096'
  18. // 钉钉模式
  19. const isDingTemp = true
  20. // 是否弹窗
  21. const isMyAlert = true
  22. // const script = document.createElement('script')
  23. // script.src = `//${window.g_config.cdnHost}/gdt/dd-web-dev-center/3.12.0/assets/js/app_567f70b3-6512-4dca-8683-c2b5e2755fd0.js`
  24. // document.head.appendChild(script)
  25. // script.onload(() => {
  26. // h5RemoteDebugSdk.init({
  27. // uuid: 'dbaa9959-4fcf-49c8-ba99-3922e45e22ca',
  28. // observerElement: document.documentElement
  29. // })
  30. // })
  31. if (isMyAlert) {
  32. window.onload = function () {
  33. var script = document.createElement('script')
  34. script.src = 'https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js'
  35. document.body.appendChild(script)
  36. script.onload = function () {
  37. eruda.init()
  38. }
  39. }
  40. }
  41. </script>
  42. <!-- 埋点开始 -->
  43. <script
  44. src="https://wpkgate-emas.ding.zj.gov.cn/static/wpk-jssdk.1.0.2/wpkReporter.js"
  45. crossorigin="true"
  46. ></script>
  47. <script>
  48. try {
  49. const config = {
  50. bid: 'YWBWGGCXT_zzdpro',
  51. signkey: '1234567890abcdef',
  52. gateway: 'https://wpkgate-emas.ding.zj.gov.cn'
  53. }
  54. const wpk = new wpkReporter(config)
  55. wpk.installAll()
  56. window._wpk = wpk
  57. } catch (err) {
  58. console.error('WpkReporterinitfail', err)
  59. }
  60. ;(function (w, d, s, q, i) {
  61. w[q] = w[q] || []
  62. var f = d.getElementsByTagName(s)[0],
  63. j = d.createElement(s)
  64. j.async = true
  65. j.id = 'beacon-aplus'
  66. j.src = 'https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js'
  67. f.parentNode.insertBefore(j, f)
  68. })(window, document, 'script', 'aplus_queue')
  69. aplus_queue.push({
  70. action: 'aplus.setMetaInfo',
  71. //专有云应用,第二个参数在部署时请替换为正确的专有云地址
  72. arguments: ['aplus-rhost-v', 'alog-api.ding.zj.gov.cn']
  73. })
  74. aplus_queue.push({
  75. action: 'aplus.setMetaInfo',
  76. //专有云应用,第二个参数在部署时请替换为正确的专有云地址
  77. arguments: ['aplus-rhost-g', 'alog-api.ding.zj.gov.cn']
  78. })
  79. var u = navigator.userAgent
  80. var isAndroid = u.indexOf('Android') > -1
  81. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
  82. aplus_queue.push({
  83. action: 'aplus.setMetaInfo',
  84. arguments: ['appId', isAndroid ? '28302650' : isIOS ? '28328447' : '47130293']
  85. })
  86. </script>
  87. <!-- 埋点结束 -->
  88. </head>
  89. <body>
  90. <noscript>You need to enable JavaScript to run this app.</noscript>
  91. <div id="root"></div>
  92. </body>
  93. </html>