mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
fix point tooltip
This commit is contained in:
@@ -81,10 +81,10 @@ const canBuy = computed(() => {
|
|||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
function getTooltip(goods: ResponsePointGoodModel) {
|
function getTooltip(goods: ResponsePointGoodModel) {
|
||||||
if (!canBuy.value) return '请先进行账号认证'
|
|
||||||
if ((currentPoint.value ?? 0) < goods.price) {
|
if ((currentPoint.value ?? 0) < goods.price) {
|
||||||
return '当前积分不足'
|
return '当前积分不足'
|
||||||
} else {
|
} else if (!biliAuth.value.id) return '请先进行账号认证'
|
||||||
|
else {
|
||||||
return '开始兑换'
|
return '开始兑换'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user