|
@@ -2165,11 +2165,13 @@ export default {
|
|
window.call = (token, type, app_version)=> {
|
|
window.call = (token, type, app_version)=> {
|
|
this.app_version = app_version
|
|
this.app_version = app_version
|
|
this.type=type
|
|
this.type=type
|
|
|
|
+ this.token = token
|
|
alert("测试一下")
|
|
alert("测试一下")
|
|
this.$store.commit('SET_TOKEN',token)
|
|
this.$store.commit('SET_TOKEN',token)
|
|
this.$axios.get('members/getMemberInfo').then((res)=> {
|
|
this.$axios.get('members/getMemberInfo').then((res)=> {
|
|
if(res.code === 200) {
|
|
if(res.code === 200) {
|
|
this.$store.commit('setUser',res.result.memberInfo)
|
|
this.$store.commit('setUser',res.result.memberInfo)
|
|
|
|
+ this.VIP = this.userInfo.subscriberType
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -2182,14 +2184,12 @@ export default {
|
|
// this.inApp = false
|
|
// this.inApp = false
|
|
// }
|
|
// }
|
|
// 判断用户是否登录
|
|
// 判断用户是否登录
|
|
- this.token = window.localStorage.getItem('token')
|
|
|
|
- // if (window.localStorage.getItem('token')) {
|
|
|
|
- // this.isLogin = true
|
|
|
|
- // } else {
|
|
|
|
- // this.isLogin = false
|
|
|
|
- // }
|
|
|
|
|
|
+ if (window.localStorage.getItem('token')) {
|
|
|
|
+ this.isLogin = true
|
|
|
|
+ } else {
|
|
|
|
+ this.isLogin = false
|
|
|
|
+ }
|
|
// 判断用户是否是VIP
|
|
// 判断用户是否是VIP
|
|
- this.VIP = this.userInfo.subscriberType
|
|
|
|
if (this.userInfo?.subscriberType === 1) {
|
|
if (this.userInfo?.subscriberType === 1) {
|
|
this.isVIP = true
|
|
this.isVIP = true
|
|
} else {
|
|
} else {
|