fix. 사전예약 수정
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user