去除个人中心无用积分请求
This commit is contained in:
@@ -321,7 +321,7 @@
|
||||
onPullDownRefresh() {
|
||||
$cache_user.clear()
|
||||
this.getMyMoney()
|
||||
this.getPoints()
|
||||
// this.getPoints()
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onShow() {
|
||||
@@ -338,7 +338,7 @@
|
||||
this.token = uni.getStorageSync('token')
|
||||
if (this.token) {
|
||||
this.getMyMoney()
|
||||
this.getPoints()
|
||||
// this.getPoints()
|
||||
this.$u.api.userinfo().then(res => {
|
||||
if (res.code === 0 && res.data) {
|
||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||
@@ -362,17 +362,17 @@
|
||||
let data = {
|
||||
userId: uni.getStorageSync('userId')
|
||||
}
|
||||
this.$u.api.userVip(data).then(res => {
|
||||
if (res.code === 0 && res.data && res.data.isVip === 2) {
|
||||
this.isVIP = true;
|
||||
this.endTime = res.data.endTime
|
||||
uni.setStorageSync('isVIP', true)
|
||||
} else {
|
||||
this.isVIP = false;
|
||||
this.endTime = ''
|
||||
uni.setStorageSync('isVIP', false)
|
||||
}
|
||||
})
|
||||
// this.$u.api.userVip(data).then(res => {
|
||||
// if (res.code === 0 && res.data && res.data.isVip === 2) {
|
||||
// this.isVIP = true;
|
||||
// this.endTime = res.data.endTime
|
||||
// uni.setStorageSync('isVIP', true)
|
||||
// } else {
|
||||
// this.isVIP = false;
|
||||
// this.endTime = ''
|
||||
// uni.setStorageSync('isVIP', false)
|
||||
// }
|
||||
// })
|
||||
|
||||
this.isLogin = true
|
||||
this.userName = uni.getStorageSync('userName')
|
||||
|
||||
Reference in New Issue
Block a user