北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
lixuliang
2024-08-07 a916fc2df00bac9f8210b09fd7ee79f8b291e345
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
  <div class="container"></div>
</template>
 
<script>
export default {
  name: "login",
  data() {
    return {};
  },
  mounted() {
    // 测试版本免登录
    // this.$router.push({
    //   path: "/home",
    //   query: { showlayer: this.$route.query.showlayer }
    // });
 
    // 正式版第三方登录
    this.getQueryString("focus-open-code");
  },
 
  methods: {
    getQueryString(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
      var r = window.location.search.substr(1).match(reg);
      if (r != null) {
        this.$router.push({
          path: "/index",
          query: { showlayer: this.$route.query.showlayer }
        });
      }
      return null;
    }
  }
};
</script>