fix. 사전예약 수정

This commit is contained in:
clkim
2025-11-07 11:28:36 +09:00
parent 5679d28697
commit 2e55cda20e
5 changed files with 24 additions and 65 deletions

View File

@@ -12,13 +12,6 @@ import { countryDialingCodes } from '#layers/assets/data/countryData'
* 프로모션 - 사전등록
*/
const usePreregist = () => {
const promotion = ref({
id: 'preregist',
title: '사전등록 프로모션',
link: '/#preregist',
startDate: '2025-07-09 10:00:00',
endDate: '2025-12-31 23:59:59',
}) // 사전 등록 프로모션 정보
const preregistDate = ref(Date.now()) // 사전 등록일
// [Setter] 사전등록 - 사전 등록일 세팅
@@ -26,20 +19,6 @@ const usePreregist = () => {
preregistDate.value = newPreregistDate
}
// 프로모션 기간 여부
const isPromotionPeriod = computed(() => {
if (
!promotion.value ||
!promotion.value.startDate ||
!promotion.value.endDate
) {
return false
}
// return isBetweenPeriod(
// kstStringToTimestamp(promotion.value.startDate),
// kstStringToTimestamp(promotion.value.endDate)
// )
})
// 국가 번호 조회
const countryDialingCode = computed(() => {
return countryDialingCodes[countryCode.value.toUpperCase()]
@@ -225,12 +204,10 @@ const usePreregist = () => {
}
return {
promotion,
isKorea,
isTaiwanHongKongMacau,
isNorthAmerica,
countryCode,
isPromotionPeriod,
countryDialingCode,
preregistDate,
checkCountryByIp,