Selaa lähdekoodia

更改移动端跳转的地址

Lijy 2 vuotta sitten
vanhempi
commit
3fb4193a6e
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6 1
      fhKeeper/formulahousekeeper/timesheet_h5/public/index.html

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet_h5/public/index.html

@@ -35,10 +35,15 @@
             }
             return flag;
         }
+        var urls = window.location.href
+        console.log(urls, '当前的页面地址')
         var flag = IsPC(); //true为PC端,false为手机端
-        if (flag) {
+        if (flag && urls.indexOf('mobworktime.ttkuaiban') != '-1') {
             //跳转到PC登录页面
             location.href = 'https://worktime.ttkuaiban.com';
+        } else {
+            location.href = 'http://183.66.166.222:9097/';
+            // location.href = 'https://www.baidu.com/';
         }
     </script>
 </head>