去除旧的无用签到请求
This commit is contained in:
@@ -169,33 +169,33 @@ import { $cache_chasingDrama} from '@/store/cashe.js'
|
|||||||
this.isErQd=$cache_chasingDrama.isErQd
|
this.isErQd=$cache_chasingDrama.isErQd
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
|
// this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
if (res.data.nowIntegral) { //判断今天是否签到
|
// if (res.data.nowIntegral) { //判断今天是否签到
|
||||||
this.day = res.data.nowIntegral.day
|
// this.day = res.data.nowIntegral.day
|
||||||
this.isQd = true
|
// this.isQd = true
|
||||||
}
|
// }
|
||||||
if (res.data.yesterdayIntegral) { //判断昨天是否签到
|
// if (res.data.yesterdayIntegral) { //判断昨天是否签到
|
||||||
if (!this.day) {
|
// if (!this.day) {
|
||||||
this.day = res.data.yesterdayIntegral.day
|
// this.day = res.data.yesterdayIntegral.day
|
||||||
}
|
// }
|
||||||
this.isErQd = true
|
// this.isErQd = true
|
||||||
}
|
// }
|
||||||
if (res.data.nowIntegral == null && res.data.yesterdayIntegral == null) {
|
// if (res.data.nowIntegral == null && res.data.yesterdayIntegral == null) {
|
||||||
this.day = 0
|
// this.day = 0
|
||||||
this.isQd = false
|
// this.isQd = false
|
||||||
this.isErQd = false
|
// this.isErQd = false
|
||||||
}
|
// }
|
||||||
$cache_chasingDrama.set('day',this.day)
|
// $cache_chasingDrama.set('day',this.day)
|
||||||
$cache_chasingDrama.set('isQd',this.isQd)
|
// $cache_chasingDrama.set('isQd',this.isQd)
|
||||||
$cache_chasingDrama.set('isErQd',this.isErQd)
|
// $cache_chasingDrama.set('isErQd',this.isErQd)
|
||||||
} else {
|
// } else {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: res.msg,
|
// title: res.msg,
|
||||||
icon: 'none'
|
// icon: 'none'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
//跳转
|
//跳转
|
||||||
goNav(url) {
|
goNav(url) {
|
||||||
|
|||||||
Reference in New Issue
Block a user