| | |
| | | }, |
| | | methods: { |
| | | async init() { |
| | | // ShiXuHui GuoJiWenWu |
| | | if (!this.$store.state.userInfo) { |
| | | let res = await this.$u.api.login({ code: 'ShiXuHui' }) |
| | | let res = await this.$u.api.login({ code: 'GuoJiWenWu' }) |
| | | if (res.code === 200) { |
| | | this.$store.commit('setUserInfo', res.data) |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | } else if (uni.getStorageSync('code') !== code) { |
| | | |
| | | } else if (uni.getStorageSync('code') !== code) { |
| | | uni.setStorageSync('code', code); |
| | | |
| | | let res = await this.$u.api.login({ code: code }) |
| | | if (res.code === 200) { |
| | | this.$store.commit('setUserInfo', res.data) |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } else { |
| | | let loc_href = encodeURIComponent("https://dmtest.ahapp.net/lianhelihua_web/") |
| | | |