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