去除旧的无用签到请求

This commit is contained in:
2025-01-03 22:29:24 +08:00
parent c53fb5502d
commit 773a888458

View File

@@ -169,33 +169,33 @@ import { $cache_chasingDrama} from '@/store/cashe.js'
this.isErQd=$cache_chasingDrama.isErQd
return
}
this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
if (res.code == 0) {
if (res.data.nowIntegral) { //判断今天是否签到
this.day = res.data.nowIntegral.day
this.isQd = true
}
if (res.data.yesterdayIntegral) { //判断昨天是否签到
if (!this.day) {
this.day = res.data.yesterdayIntegral.day
}
this.isErQd = true
}
if (res.data.nowIntegral == null && res.data.yesterdayIntegral == null) {
this.day = 0
this.isQd = false
this.isErQd = false
}
$cache_chasingDrama.set('day',this.day)
$cache_chasingDrama.set('isQd',this.isQd)
$cache_chasingDrama.set('isErQd',this.isErQd)
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
}
})
// this.$Request.getT('/app/integral/selectIntegralDay', data).then(res => {
// if (res.code == 0) {
// if (res.data.nowIntegral) { //判断今天是否签到
// this.day = res.data.nowIntegral.day
// this.isQd = true
// }
// if (res.data.yesterdayIntegral) { //判断昨天是否签到
// if (!this.day) {
// this.day = res.data.yesterdayIntegral.day
// }
// this.isErQd = true
// }
// if (res.data.nowIntegral == null && res.data.yesterdayIntegral == null) {
// this.day = 0
// this.isQd = false
// this.isErQd = false
// }
// $cache_chasingDrama.set('day',this.day)
// $cache_chasingDrama.set('isQd',this.isQd)
// $cache_chasingDrama.set('isErQd',this.isErQd)
// } else {
// uni.showToast({
// title: res.msg,
// icon: 'none'
// })
// }
// })
},
//跳转
goNav(url) {