xcx 4 anni fa
parent
commit
676cd33735
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 1
    0
      index.html
  2. 4
    1
      src/components/common/MainPageContainer/index.vue

+ 1
- 0
index.html Vedi File

@@ -7,6 +7,7 @@
7 7
   <meta name="referrer" content="no-referrer">
8 8
   <link rel="stylesheet" href="//at.alicdn.com/t/font_2022160_ekr8xwunv4j.css">
9 9
   <script src="//api.map.baidu.com/api?v=2.0&ak=NH4DjAzwLcPkHgwBLWcfeZfr3uUnTlwk"></script>
10
+  <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
10 11
   <title>牛彩</title>
11 12
   <script>
12 13
     let Width = document.documentElement.clientWidth / 375 * 100

+ 4
- 1
src/components/common/MainPageContainer/index.vue Vedi File

@@ -141,12 +141,15 @@ export default {
141 141
     Init () { // 初始化
142 142
       if (this.UserInfo === null) {
143 143
         if (window.localStorage.niucaiusername && window.localStorage.niucaiuserpassword) {
144
+          console.log('登录-------------------')
144 145
           this.SignIn({ data: { password: md5(window.localStorage.niucaiuserpassword), userName: window.localStorage.niucaiusername } }).then((res) => { // 登录
145
-            if (this.UserInfo === null || res.data.code - 0 === 1001) {
146
+            console.log('登录成功-------------------')
147
+            if (this.UserInfo === null) {
146 148
               this.$router.push({ name: 'SignIn' })
147 149
             } else {
148 150
               this.GetFootballKeys() // 获取足彩相关字典
149 151
               this.GetAllLotteryType({ queryData: { pageNum: 1, pageSize: 1000 } })
152
+              console.log('触发页面请求-------------------')
150 153
               this.$emit('UserInfoChange')
151 154
             }
152 155
           }).catch(() => {