PageSourceSearch

https://crcf.cookatmarket.com/assets/mobile/js/mypage.js?v=240

js cookatmarket.com collected 2026-10-09 01:42:54 UTC 9,587 bytes, 251 lines download raw bytes

1const LANG_QNA = {
2    CONFIRM_QNA_EDIT_CANCEL: "수정 취소 시 수정한 내역은 소멸됩니다. 수정을 취소하시겠습니까?",
3    CONFIRM_QNA_DELETE: "문의를 삭제하시겠습니까?",
4    CONFIRM_QNA_WRITE_LOGIN: "회원만 문의 작성이 가능합니다. 로그인 하시겠습니까?",
5
6    ALERT_QNA_CONTENT: "상품 문의 내용을 작성해주세요.",
7    ALERT_EMPTY_QNA_CONTENT: "상품 문의 내용을 작성해주세요.",
8    ALERT_EMPTY_RECEIVE_EMAIL: "이메일로 답변을 받기 위해서는 이메일 주소를 입력해주세요.",
9    ALERT_REGX_RECEIVE_EMAIL: "이메일 주소 형식이 잘못되었습니다.",
10    ALERT_EMPTY_QNA_CATEGORY: "문의 유형을 선택해주세요.",
11
12    QNA_SECRET: "비밀글입니다.",
13    ANSWER_COMPLETE: "답변완료",
14    ANSWER_STANDBY: "답변대기",
15    ANSWER_TITLE: "답변드립니다.",
16    MODIFY_QNA: "문의 수정",
17    PUBLIC_FL: "비밀글",
18    RECEVIE_EMAIL: "이메일주소",
19    RECEVIE_EMAIL_FL: "이메일로 답변 받기",
20    RECEVIE_EMAIL_PLACEHOLDER: "답변받을 이메일 주소",
21    QNA_CATEGORY: "문의 유형",
22    QNA_CONTENT_PLACEHOLDER: "비회원 고객님은 글 작성시 주문자, 연락처를 기재해주셔야 확인이 가능합니다.

-주말 및 공휴일에는 게시판 확인이 어려우며, 평일 업무시간에 신속한 답변드로도록 하겠습니다 :-)

주문자명 :

주문번호 또는 연락처 :

문의내용 :",
23};
24var PREVENT_DOUBLE_CLICK = 0;
25
26$(function () {
27    $("#point_history_tab .tab_content").hide();
28    $("#point_history_tab .tab_content:first").show();
29    $("#point_history_tab .tab_control li").click(function () {
30        if (!$(this).hasClass("on")) {
31            $("ul li").removeClass("on");
32            $(this).addClass("on");
33            $(".tab_content").hide();
34            var activeTab = $(this).attr("rel");
35            $("#" + activeTab).fadeIn();
36        }
37    });
38
39    /* 추가 Q&A 목록 가져오기 이벤트 */
40    $(document).on("click", "#qna_more_mypage", function () {
41        var iCurrent = Number($("#current").val());
42        var iTotal = Number($("#total").val());
43
44        ajaxHandler(this, {
45            action: "/cs/product_qna_history_more",
46            formData: {
47                current: Number(iCurrent + 1),
48            },
49            successFunc: function (e) {
50                if (e.code == 200) {
51                    $("#current").val(Number(iCurrent + 1));
52                    $(".qna-list-wrap").append(e.returnData.content);
53                    if (iCurrent + 1 == iTotal) {
54                        $("#qna_more_mypage").hide();
55                    }
56                } else {
57                    alert(e.msg);
58                }
59            },
60            errorFunc: function () {
61                alert("Server Internal Error. Please Try Again.");
62            },
63        });
64    });
65
66    $("#b_year").on("change", function () {
67        $("#b_day").empty();
68        $("#b_month").empty();
69        $("#b_day").append($("<option value=''>일</option>"));
70        $("#b_month").append($("<option value=''>월</option>"));
71
72        if ($("#b_year").val()) {
73            var oNowDate = new Date();
74            var lastMonth = oNowDate.getFullYear() - 14 == Number($("#b_year").val()) ? oNowDate.getMonth() + 1 : 12;
75
76            for (var cnt = 1; cnt <= lastMonth; cnt++) {
77                $("#b_month").append($("<option value='" + cnt + "'>" + cnt + "</option>"));
78            }
79
80            $("#b_year").prop("required", true);
81            $("#b_month").prop("required", true);
82            $("#b_day").prop("required", true);
83        } else {
84            $("#b_year").prop("required", false);
85            $("#b_month").prop("required", false);
86            $("#b_day").prop("required", false);
87        }
88    });
89
90    $("#b_month").on("change", function () {
91        $("#b_day").empty();
92        $("#b_day").append($("<option value=''>일</option>"));
93
94        if ($("#b_year").val() && $("#b_month").val()) {
95            /*년도, 월이 전부 선택된 경우 일자 선택을 업데이트*/
96            var oNowDate = new Date();
97            if (oNowDate.getFullYear() - 14 == Number($("#b_year").val()) && oNowDate.getMonth() + 1 == Number($("#b_month").val())) {
98                var lastDay = oNowDate.getDate();
99            } else {
100                var lastDay = new Date($("#b_year").val(), Number($("#b_month").val()), 0).getDate();
101            }
102
103            for (var cnt = 1; cnt <= lastDay; cnt++) {
104                $("#b_day").append($("<option value='" + cnt + "'>" + cnt + "</option>"));
105            }
106        }
107    });
108
109    if ($(".guest-membership-induce").length > 0 && $(".mypage_menu").length > 0) {
110        if ($(".guest-membership-induce").offset().top < Number($(".mypage_menu").offset().top) + Number($(".mypage_menu").height())) {
111            $(".guest-membership-induce").addClass("no-fix");
112        }
113    }
114
115    /* 멤버십 안내 팝업 등급안내 탭 */
116    $(document).on("click", ".benefit-info-tab-bar .benefit-info-tab-clicker", function () {
117        if ($(this).hasClass("on")) return;
118
119        var id = $(this).data("tabId");
120
121        $(this).closest(".benefit-info-tab-bar").find(".benefit-info-tab-clicker").removeClass("on");
122        $(this).addClass("on");
123
124        $(this).closest(".benefit-info-tab").find(".benefit-info-tab-body").removeClass("on");
125        $(this)
126            .closest(".benefit-info-tab")
127            .find("[data-tab='" + id + "']")
128            .addClass("on");
129    });
130
131    reviewInduceSpeechBubble.open();
132
133    directOpenRankBenefit();
134});
135
136function directOpenRankBenefit() {
137    const queryString = window.location.search;
138    const urlParams = new URLSearchParams(queryString);
139
140    if (urlParams.has("open_rank_benefit")) {
141        const onTabId = urlParams.get("open_rank_benefit");
142        openRankBenefit(null, onTabId);
143    }
144}
145
146function openRankBenefit(el, onTabId = null) {
147    ajaxHandler(el, {
148        action: "/popup/rank_benefit",
149        formData: new Object(),
150        successFunc: function (e) {
151            $("input[name=csrf_test_name]").val(e.csrf);
152            if (e.code == 200) {
153                gfPop("멤버십 안내", e.returnData.html);
154
155                if (onTabId) {
156                    $(".benefit-info-tab-bar .benefit-info-tab-clicker[data-tab-id='" + onTabId + "']").trigger("click");
157                }
158                $(".newbie-coupon-discount-rate-dynamic").text(NEWBIE_COUPON_DISCOUNT_RATE);
159            } else {
160                gfAlert(e.msg);
161            }
162        },
163        errorFunc: function () {
164            alert("Server Internal Error. Please Try Again.");
165        },
166    });
167}
168
169function tel_cs() {
170    var nowTime = new Date().getHours();
171    if (nowTime >= 10 && nowTime < 18) {
172        location.href = "tel:1668-3525";
173    } else {
174        gfAlert("전화 상담 시간이 아닙니다.", "평일 오전 10시 ~ 오후 4시<br>(점심시간 12:30 ~ 13:30 제외)<br>에 이용해주세요", {
175            callback: goQna11,
176            okay_txt: "1:1 문의하기",
177        });
178    }
179}
180
181function kakao_cs() {
182    var nowTime = new Date().getHours();
183    if (nowTime >= 10 && nowTime < 18) {
184        location.href = "http://goto.kakao.com/@쿠캣마켓";
185    } else {
186        gfAlert("카카오톡 상담 시간이 아닙니다.", "평일 오전 10시 ~ 오후 4시<br>(점심시간 12:30 ~ 13:30 제외)<br>에 이용해주세요", {
187            callback: goQna11,
188            okay_txt: "1:1 문의하기",
189        });
190    }
191}
192
193function openQR(el) {
194    if (PREVENT_DOUBLE_CLICK == 0) {
195        PREVENT_DOUBLE_CLICK = 1;
196        ajaxHandler(el, {
197            action: "/account/get_customer_qr",
198            formData: new Object(),
199            successFunc: function (e) {
200                $("input[name=csrf_test_name]").val(e.csrf);
201                if (e.code == 200) {
202                    $(".qr-popup-wrap .dimmed").show();
203                    $(".qr-popup-body").addClass("show");
204                    $(".qr-popup-body #qr-img").attr("src", e.returnData.qr_url);
205                    $("body").addClass("off");
206                } else {
207                    if (!isEmpty(e.returnData.redirect)) {
208                        location.replace("/ko/mypage");
209                    }
210                }
211                PREVENT_DOUBLE_CLICK = 0;
212            },
213            errorFunc: function () {
214                PREVENT_DOUBLE_CLICK = 0;
215                alert("Server Internal Error. Please Try Again.");
216            },
217        });
218    }
219}
220
221function closeQR() {
222    setTimeout(function () {
223        $(".qr-popup-wrap .dimmed").hide();
224    }, 500);
225    $(".qr-popup-body").removeClass("show");
226    $("body").removeClass("off");
227}
228
229var reviewInduceSpeechBubble = {
230    open: function () {
231        if (cookieHandler.has("review_induce_speech_bubble_not_use")) {
232            return false;
233        }
234
235        if ($(".review-induce-speech-bubble").length > 0) {
236            $(".review-induce-speech-bubble .bubble-bg .bubble-tail").css({ left: $(".customer-status-list > li:first-of-type").width() / 2 });
237            $(".review-induce-speech-bubble").addClass("on");
238        }
239    },
240    close: function (el) {
241        $(el).closest(".review-induce-speech-bubble").remove();
242
243        cookieHandler.set("review_induce_speech_bubble_not_use", "Y", 1440, "/");
244    },
245};
246
247var MYPAGE_ALERT = {
248    callbackFlarelaneDeviceId: function (device_id) {
249        location.href = "/" + THIS_LANG + "/mypage_alert/mypage_main_alert/" + device_id;
250    },
251};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.