let freeShippingRestTimer = null; async function showFreeShippingRest(e) { const
freeShippingRest = document.querySelector('.layout-floating-cart__free-shipping--rest'); if
(freeShippingRest) { if (freeShippingRestTimer) { clearTimeout(freeShippingRestTimer); }
freeShippingRest.classList.add('flex'); freeShippingRestTimer = setTimeout(function() {
freeShippingRest.classList.remove('flex'); freeShippingRestTimer = null; }, 6000); } }
document.addEventListener('dj.cartItemChange', showFreeShippingRest);
document.addEventListener('dj.cartItemDelete', showFreeShippingRest);
🎉 FIRST DAY SALE: Grab Up to 63% Off Now!! 🎉
Jan 14, 2025
~에 의해
Journalsay
Hey there, journalers and craft lovers! 💖
Get ready to kickstart the year with our FIRST DAY SALE at Journalsay.com! Whether you’re restocking your craft supplies or starting fresh with new creative goals, this is the sale you’ve been waiting for. 🌟
🎉 Massive Discounts You Can’t Miss
Everything is 50% OFF!
💸 Bonus Savings Alert!
Use code FIRSTDAY6 at checkout for an extra 6% OFF on top of the 50% discount. Double the discounts, double the happiness! 🎁
🛒 Spend More, Save More
Spend $79 → Get $6 OFF
🗓️ Mark Your Calendars: 📅 January 20 – February 9(Los Angeles Time)
👉 Shop the FIRST DAY SALE Now 👈
Here’s to a year filled with creativity and happiness! 🛍️✨
${function(){
let title = data.campaign.name;
if (data.campaign.event_type === 'share_link') {
let limit_reward_count = Number(data.campaign.campaign_rule.limit_reward_count);
let participation_times = Number(data.participation_info.participation_times);
if (limit_reward_count > 1) {
title = `${title} (${limit_reward_count - participation_times}/${limit_reward_count})`;
}
}
return title;
}()}
${function(){
if (data.campaign.event_type === 'successful_order') {
return `
지출당
받기
`
}
if (data.campaign.event_type === 'share_link') {
return `
포인트 보상
`
}
return `
받기:
`
}()}
`
}
if (type === 'weekly') {
const time = days.map((d) => {
switch(d) {
case "1": return "월요일";
case "2": return "화요일";
case "3": return "수요일";
case "4": return "목요일";
case "5": return "금요일";
case "6": return "토요일";
case "0": return "일요일";
}
});
return `유효한 ${time} (주간)`;
}
if (type === 'monthly') {
const isFullMonth = months.length === 12;
const monthStr = months.map((value) => {
switch(value) {
case "1": return "1월";
case "2": return "2월";
case "3": return "3월";
case "4": return "4월";
case "5": return "5월";
case "6": return "6월";
case "7": return "7월";
case "8": return "8월";
case "9": return "9월";
case "10": return "10월";
case "11": return "11월";
case "12": return "12월";
}
}).join(' ');
const dayStr = days.map((value) => {
switch(value) {
case "1": return "1일";
case "2": return "2일";
case "3": return "3일";
case "4": return "4일";
case "5": return "5일";
case "6": return "6일";
case "7": return "7일";
case "8": return "8일";
case "9": return "9일";
case "10": return "10일";
case "11": return "11일";
case "12": return "12일";
case "13": return "13일";
case "14": return "14일";
case "15": return "15일";
case "16": return "16일";
case "17": return "17일";
case "18": return "18일";
case "19": return "19일";
case "20": return "20일";
case "21": return "21일";
case "22": return "22일";
case "23": return "23일";
case "24": return "24일";
case "25": return "25일";
case "26": return "26일";
case "27": return "27일";
case "28": return "28일";
case "29": return "29일";
case "30": return "30일";
case "31": return "31일";
}
}).join(' ');
if (isFullMonth) return `유효한 ${dayStr} (월간)`; // 每月
return `유효한 ${dayStr} (오직 ${monthStr} 내에서 유효)`;
}
};
return formatTimeStr(data.campaign.execution_schedule);
}()}
${function(){
if (!data.success) {
return ``
}
return `
구독 해지 완료 (${s}초)
`;
}()}
로딩 중...
${function(){
switch(data.status || data) {
case 'COUPON_RECEIVE_INSUFFICIENT_POINTS_ERROR': return `
부족
`;
case 'BIRTHDAY_NOT_COME': return `
당신의 생일 시간이 아직 오지 않았습니다.
`;
case 'SHOW_LOGIN_TIP':
case 'UNAUTHORIZED':
return `아직 회원으로 가입하지 않거나 계정에 로그인하지 않았습니다`;
case 'COUPON_RECEIVE_NOT_IN_TIME_ERROR':
case 'COUPON_NOT_FOUND_ERROR':
case 'CAMPAIGN_NOT_FOUND_ERROR': return `포인트 혜택이 존재하지 않습니다. 페이지를 새로고침하십시오.`;
case 'COUPON_RECEIVE_NOT_ELIGIBLE_ERROR':
case 'COUPON_RECEIVE_UPPER_LIMIT_ERROR':
case 'COUPON_RECEIVE_FAILED_ERROR': return `교환 실패. 페이지를 새로고침하고 다시 시도하십시오.`;
case 'COUPON_RECEIVE_NO_STOCK_ERROR': return `쿠폰이 교환되었습니다!`;
case 'LOYALTY_SERVER_UNAUTHORIZED': return `계정에 로그인하세요!`;
case 'LOYALTY_SERVER_CUSTOMER_NOT_FOUND_ERROR': return `사용자 오류가 감지되었습니다. 페이지를 새로고침하고 다시 시도하십시오.`;
case 'INVALID_PHONE_NUMBER_ERROR': return `유효한 전화번호를 입력하세요`;
case 'BENEFIT_UNSUBSCRIBE_FAILED_ERROR': return `네트워크 오류가 발생했습니다. 다시 시도해 주세요!`;
default: return `네트워크 이상 또는 시스템이 바쁩니다. 페이지를 새로고침하고 다시 시도하십시오.`;
}
}()}