Browse Source

静态页面

xcx 4 years ago
parent
commit
67f10e9411

+ 0
- 3
src/components/common/MainPageContainer/index.vue View File

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

+ 1
- 0
src/pages/index/ShouYe/index.vue View File

155
       }
155
       }
156
     },
156
     },
157
     Init (done = () => { }) { // 初始化
157
     Init (done = () => { }) { // 初始化
158
+      console.log(`Jwt is ${window.localStorage.Jwt}`, `-----------------------`)
158
       this.EmptyBanner()
159
       this.EmptyBanner()
159
       this.GetBanner({ queryData: { pageNum: 1, pageSize: 10, status: 1, adType: 'app-index-banner' } }).then(() => { // 获取banner
160
       this.GetBanner({ queryData: { pageNum: 1, pageSize: 10, status: 1, adType: 'app-index-banner' } }).then(() => { // 获取banner
160
         this.GetNewstLotteryRes().then(() => { // 获取最新数字彩开奖结果列表
161
         this.GetNewstLotteryRes().then(() => { // 获取最新数字彩开奖结果列表