feat: phone validate

This commit is contained in:
2025-12-20 12:56:06 +08:00
parent 22e288bf98
commit dbeb0a5733
19 changed files with 397 additions and 89 deletions

View File

@@ -87,6 +87,11 @@ const updateMediaSource = async () => {
};
const handleBuy = async () => {
if (sessionStorage.getItem('phone_verified') !== '1') {
const redirect = encodeURIComponent(router.currentRoute.value.fullPath);
router.replace(`/verify-phone?redirect=${redirect}`);
return;
}
// confirm
if (!confirm("确认购买该曲谱?")) {
return;