(function() { let isMobile = /mobile/i.test(navigator.userAgent) let getParameter = function (param, url) { let reg = new RegExp('[&,?,&]' + param + '=([^\\&]*)', 'i') let value = reg.exec(decodeURIComponent(decodeURIComponent(url || location.search || location.hash))) return value ? value[1] : '' } if (isMobile && getParameter('source') !== 'h5') { location.href="/gx_/./m/index.html" } })()