Ver Fonte

1.修改跳转

qianduan03 há 2 meses atrás
pai
commit
ece42a40f9
2 ficheiros alterados com 11 adições e 9 exclusões
  1. 11 9
      index.html
  2. 0 0
      static/js/manifest.908ae2d275443b3838cd.js.map

+ 11 - 9
index.html

@@ -1,4 +1,4 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=format-detection content="telephone=no"><meta name=full-screen content=yes><meta name=x5-fullscreen content=true><meta name=screen-orientation content=portrait><link rel=icon href=/static/favicon.ico><meta property=og:title content="MGBXSIR will strive to provide users with more secure, convenient and intelligent blockchain asset distribution services, integrate global superior blockchain assets, and integrate the world's best security technology to create the world's best blockchain asset international base."><meta property=og:image content=https://api.b.uwcub.cc/attachment/images/logo.jpg><title>MGBX—Platforms for trading cryptocurrencies such as Bitcoin, Ethereum and competitors</title><meta name=keywords content="MGBX Exchange"><script>function is_mobile() {
+<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=format-detection content="telephone=no"><meta name=full-screen content=yes><meta name=x5-fullscreen content=true><meta name=screen-orientation content=portrait><link rel=icon href=/static/favicon.ico><meta property=og:title content="MGBXSIR will strive to provide users with more secure, convenient and intelligent blockchain asset distribution services, integrate global superior blockchain assets, and integrate the world's best security technology to create the world's best blockchain asset international base."><meta property=og:image content=https://api.b.uwcub.cc/attachment/images/logo.jpg><title>MGBX—Platforms for trading cryptocurrencies such as Bitcoin, Ethereum and competitors</title><meta name=keywords content="MGBX Exchange"><script src=/static/config.js></script><script src=/static/charts/TradingView.js></script><script>function is_mobile() {
       const regex_match = /(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|eriCSSon|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte-|longcos|pantech|gionee|^sie-|portalmmm|jigs browser|hiptop|^benq|haier|^lct|operas*mobi|opera*mini|320x320|240x320|176x220)/i;
       const u = navigator.userAgent;
       if (null == u) {
@@ -9,15 +9,17 @@
     }
 
     if (is_mobile()) {
-      const host = location.href;
-      var host_without_www = ''
-      if (host.includes('www')) {
-        host_without_www = host.replace('www', 'h');
-      } else {
-        host_without_www = host.substring(0, 8) + 'h.' + host.substring(8, host.length)
-      }
+      // const host = location.href;
+      var host_without_www = window.global.h5Url
+      console.log(host_without_www,'h5域名')
+      // if (host.includes('www')) {
+      //   host_without_www = host.replace('www', 'h');
+      // } else {
+      //   host_without_www = host.substring(0, 8) + 'h.' + host.substring(8, host.length)
+      // }
       // const query = decodeURI(window.location.href.split("?"[1]))
       // query = query.replace(/^www\./, 'm.')
       // const targetUrl = 'https://m.' + host_without_www + window.location.pathname + '?' + query;
+
       window.location.replace(host_without_www);
-    }</script><script src=/static/config.js></script><script src=/static/charts/TradingView.js></script><link href=/static/css/app.91fc7d5889dee2e26f82e00b2919824c.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.908ae2d275443b3838cd.js></script><script type=text/javascript src=/static/js/vendor.6d2575da5cb2bb4e47af.js></script><script type=text/javascript src=/static/js/app.b19ecef6382092bf8eee.js></script></body></html>
+    }</script><link href=/static/css/app.91fc7d5889dee2e26f82e00b2919824c.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.908ae2d275443b3838cd.js></script><script type=text/javascript src=/static/js/vendor.6d2575da5cb2bb4e47af.js></script><script type=text/javascript src=/static/js/app.b19ecef6382092bf8eee.js></script></body></html>

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
static/js/manifest.908ae2d275443b3838cd.js.map


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff