밤마다달리는고독한마라토너

파워약국 | 비아그라·시알리스 정보와 구매 전 확인사항

페이지 정보

작성자 u5bu8il2 작성일26-12-01 13:17 조회2회 댓글0건

본문

파워약국 | 비아그라·시알리스 정보와 구매 전 확인사항

d0HkCSj.jpeg

파워약국에서 비아그라와 시알리스의 성분 및 차이, 처방과 약국 조제 절차, 구매 전 확인사항과 복용 시 주의점을 알아보세요.
파워약국,비아그라,시알리스



서브메뉴가 없습니다. P 파워약국 MEN'S HEALTH INFORMATION 비아그라 시알리스 차이 비교 구매 전 확인 FAQ POWER PHARMACY INFORMATION 파워약국 남성 건강 정보를 제대로 이해하는 방법 비아그라와 시알리스의 성분과 특징, 두 의약품의 차이, 처방 및 약국 조제 절차와 복용 전 확인해야 할 사항까지. 파워약국은 남성 건강과 관련된 의약품 정보를 이해하기 쉽고 체계적으로 정리합니다. 의약품 차이 비교하기 구매 전 확인사항 본 사이트는 의약품 정보 제공을 위한 독립 정보 사이트입니다. PARTNER CHANNEL 별도 서비스 채널 안내 관련 서비스 및 이용 안내는 별도의 제휴 채널에서 확인하실 수 있습니다. 제휴 채널 바로가기 ↗ ABOUT POWER PHARMACY 필요한 정보를 먼저 확인하고, 올바르게 판단하세요. 남성 건강과 관련된 의약품을 알아볼 때는 제품 이름이나 주변의 경험담만으로 판단하기 어렵습니다. 성분이 무엇인지, 어떤 차이가 있는지, 복용할 때 주의할 점은 무엇인지 함께 살펴보는 과정이 필요합니다. 파워약국은 비아그라와 시알리스를 비롯한 남성 건강 관련 의약품 정보를 중심으로 성분, 작용 특성, 사용 시 주의사항, 정식 처방 및 약국 조제 절차를 정리하는 정보 공간입니다. 개인의 건강 상태와 복용 중인 약물에 따라 적절한 선택은 달라질 수 있습니다. 정확한 판단이 필요한 경우에는 의료진과 상담하는 것이 중요합니다. INFORMATION GUIDE 파워약국에서 확인할 수 있는 정보 단순한 제품 소개를 넘어 실제로 확인해야 할 핵심 내용을 주제별로 정리했습니다. 01 / MEDICINE 비아그라 성분과 특징 실데나필 성분의 작용 원리와 사용 전 확인할 사항을 살펴봅니다. 02 / MEDICINE 시알리스 성분과 특징 타다라필 성분의 특성과 다른 의약품과의 차이를 이해합니다. 03 / COMPARISON 비아그라와 시알리스 비교 성분, 작용 특성, 지속 시간 등 주요 차이를 비교합니다. 04 / PURCHASE 구매 전 확인사항 의료진 상담, 처방 및 약국 조제 과정에서 확인할 내용을 정리합니다. 05 / SAFETY 복용 전 주의사항 병용 금기 약물과 건강 상태에 따른 주의점을 확인합니다. 06 / HEALTH 남성 건강 관리 생활 습관과 건강 상태를 함께 살펴보는 기본 정보를 제공합니다. MEDICINE INFORMATION 01 비아그라 정보 비아그라는 실데나필(Sildenafil)을 주성분으로 하는 발기부전 치료제입니다. 성분과 작용 특성을 이해하는 것이 올바른 사용의 첫 단계입니다. ACTIVE INGREDIENT 실데나필 Sildenafil 비아그라의 주요 유효성분 실데나필은 PDE5 억제제에 속하는 성분으로, 성적 자극이 있을 때 발기 기능을 돕는 작용을 합니다. 발기부전 치료에 사용되는 전문의약품 성분 혈관 확장과 관련된 생리적 작용에 관여 개인의 건강 상태에 따라 사용 가능 여부가 달라질 수 있음 정확한 용량과 복용 방법은 처방 및 제품 설명서 확인 필요 BEFORE YOU USE 사용 전 확인할 점 성분보다 먼저 확인해야 하는 건강 정보 같은 성분의 의약품이라도 개인의 건강 상태와 함께 복용하는 약물에 따라 주의사항이 달라질 수 있습니다. 심혈관 질환이나 혈압 관련 질환이 있는 경우 질산염 계열 약물을 복용하고 있는 경우 다른 발기부전 치료제를 함께 사용하려는 경우 이전에 관련 성분으로 부작용을 경험한 경우 MEDICINE INFORMATION 02 시알리스 정보 시알리스는 타다라필(Tadalafil)을 주성분으로 하는 발기부전 치료제입니다. 실데나필과 같은 PDE5 억제제에 속하지만 성분의 특성과 약효 지속 시간 등에서 차이가 있습니다. ACTIVE INGREDIENT 타다라필 Tadalafil 시알리스의 주요 유효성분 타다라필은 PDE5 효소의 작용을 억제하는 성분으로, 성적 자극이 있을 때 발기 기능을 돕습니다. 발기부전 치료에 사용되는 전문의약품 성분 실데나필과는 다른 약동학적 특성을 가짐 제품에 따라 허가된 용법과 사용 목적이 다를 수 있음 복용 간격과 용량은 처방 및 제품 설명서에 따라야 함 IMPORTANT INFORMATION 지속 시간과 사용 방식 개인별 차이와 처방 기준을 고려해야 합니다. 타다라필은 실데나필과 비교해 약효 지속 시간이 긴 편으로 알려져 있습니다. 다만 지속 시간이 길다는 이유만으로 누구에게나 적합한 것은 아닙니다. 제품별 허가 용법과 용량을 확인해야 함 개인의 간·신장 기능과 건강 상태 고려 필요 질산염 계열 약물과 병용 금기 복용 중 이상 증상이 나타나면 의료진과 상담 필요 SIDE BY SIDE COMPARISON 비아그라와 시알리스 차이 두 의약품은 같은 계열에 속하지만 유효성분과 약동학적 특성, 허가된 용법에서 차이가 있습니다. 비교 항목 비아그라 시알리스 주성분 실데나필 (Sildenafil) 타다라필 (Tadalafil) 약물 계열 PDE5 억제제 PDE5 억제제 주요 차이 상대적으로 짧은 약효 지속 특성 상대적으로 긴 약효 지속 특성 사용 기준 허가된 제품의 용법과 처방에 따름 허가된 제품의 용법과 처방에 따름 공통 주의사항 질산염 계열 약물과 병용 금기 등 주요 주의사항 확인 필요 ※ 위 내용은 일반적인 성분 특성 비교입니다. 구체적인 발현 시간, 지속 시간, 용량 및 복용 방법은 제품별 허가사항과 개인 상태에 따라 달라질 수 있습니다. PURCHASE CHECKLIST 비아그라·시알리스 구매 전 확인사항 의약품을 알아볼 때는 가격이나 제품명만 확인하기보다 정식 진료와 처방, 약국 조제 과정을 먼저 이해하는 것이 중요합니다. 의료진 상담 및 진료 현재 건강 상태와 증상, 과거 병력, 복용 중인 약물을 의료진에게 알리고 적절한 치료가 필요한지 확인합니다. 처방 및 제품 확인 진료 결과에 따라 처방 여부와 의약품 종류가 결정됩니다. 성분, 함량, 허가사항 및 사용상 주의사항을 확인합니다. 정식 약국 조제 처방이 필요한 의약품은 관련 절차에 따라 약국에서 조제받고, 약사에게 복용 방법과 주의사항을 안내받습니다. 구매 경로를 확인할 때 주의하세요. 처방이 필요한 전문의약품은 관련 법령과 허가된 유통 절차를 확인해야 합니다. 처방전 없이 판매한다고 광고하거나, 출처와 허가 여부가 불분명한 온라인 판매처는 주의해야 합니다. 파워약국은 의약품을 판매하거나 주문을 접수하지 않습니다. SAFETY FIRST 복용 전에는안전성을 먼저 확인하세요. 발기부전 치료제는 개인의 건강 상태와 병용 약물에 따라 사용 가능 여부가 달라질 수 있습니다. 복용 전 의료진과 충분히 상담하는 것이 중요합니다. 질산염 계열 약물과 병용 금기 협심증 등에 사용하는 질산염 계열 약물과 함께 복용하면 혈압이 위험하게 낮아질 수 있습니다. 심혈관 질환 및 혈압 상태 심장 질환이나 혈압 문제가 있다면 성행위와 약물 사용이 적절한지 의료진의 평가가 필요할 수 있습니다. 다른 발기부전 치료제와의 중복 사용 비아그라와 시알리스 등 다른 치료제를 임의로 함께 복용하지 마세요. 사용 여부는 의료진과 상담해야 합니다. 이상 증상이 나타나는 경우 흉통, 실신, 갑작스러운 시력 또는 청력 변화, 4시간 이상 지속되는 발기 등 심각한 증상이 나타나면 즉시 응급 진료를 받아야 합니다. MEN'S HEALTH 남성 건강은 생활 습관도 중요합니다. 의약품 정보와 함께 평소 건강 상태를 점검하고 생활 습관을 관리하는 것도 도움이 될 수 있습니다. 심혈관 건강 관리 혈압, 혈당, 콜레스테롤 등 전반적인 건강 지표를 정기적으로 확인하는 것이 중요합니다. ◷ 규칙적인 생활 습관 충분한 수면과 적절한 운동, 균형 잡힌 식습관은 전반적인 건강 관리의 기본입니다. + 필요한 경우 전문 상담 증상이 반복되거나 갑자기 달라졌다면 자가 판단보다 의료진을 통한 원인 확인이 우선입니다. FREQUENTLY ASKED QUESTIONS 자주 묻는 질문 비아그라와 시알리스의 차이, 구매 전 확인할 사항에 대해 자주 궁금해하는 내용을 정리했습니다. Q. 비아그라와 시알리스는 어떤 차이가 있나요? 비아그라는 실데나필, 시알리스는 타다라필을 주성분으로 합니다. 두 성분은 모두 PDE5 억제제이지만 약동학적 특성과 약효 지속 시간 등에 차이가 있습니다. Q. 비아그라와 시알리스는 처방이 필요한가요? 국내에서 해당 성분의 허가된 발기부전 치료제는 전문의약품에 해당하므로, 제품별 허가사항과 관련 법령에 따른 진료 및 처방 절차를 확인해야 합니다. Q. 온라인에서 바로 구매할 수 있나요? 처방이 필요한 전문의약품은 허가된 유통 및 조제 절차를 확인해야 합니다. 처방전 없이 판매한다고 광고하는 곳이나 출처가 불분명한 판매 경로는 이용에 주의해야 합니다. Q. 두 의약품을 함께 복용해도 되나요? 임의로 함께 복용해서는 안 됩니다. 같은 계열의 약물을 중복 사용하면 부작용 위험이 커질 수 있으므로 의료진과 상담해야 합니다. Q. 복용량은 어떻게 결정하나요? 적절한 용량은 제품의 허가사항과 개인의 건강 상태, 병용 약물 등을 고려해 의료진이 판단합니다. 임의로 용량을 늘리거나 복용 간격을 변경하지 마세요. Q. 파워약국에서 의약품을 판매하나요? 아닙니다. 파워약국은 남성 건강 및 의약품 관련 정보를 제공하는 독립 정보 사이트이며, 진료·처방·조제·판매 서비스를 제공하는 의료기관이나 약국이 아닙니다. INFORMATION SOURCES 정보 확인 및 참고 자료 의약품과 건강에 관한 정보는 신뢰할 수 있는 공식 자료를 기준으로 확인하는 것이 중요합니다. 참고할 수 있는 공식 정보 기관 성분, 허가사항, 복용 방법 및 안전성 정보는 최신 공식 자료와 해당 제품의 첨부문서를 기준으로 확인하세요. 식품의약품안전처 의약품안전나라 국내 의약품 허가 및 안전성 정보 식품의약품안전처 의약품 관련 정책 및 공식 안내 국민건강보험공단 건강 관련 제도 및 일반 정보 파워약국 남성 건강 및 의약품 정보를 이해하기 쉽게 정리하는 독립 정보 제공 사이트입니다. 본 사이트의 정보는 일반적인 건강 정보 제공을 목적으로 하며, 의사의 진단이나 약사의 복약 지도를 대신하지 않습니다. 개인별 진단과 치료는 의료 전문가와 상담하시기 바랍니다. © 2026 파워약국. All rights reserved. 본 사이트는 의약품 판매 및 의료 서비스를 제공하지 않습니다. JayDream_components.push({name: "design-widget-button", object: { template: "#design-widget-button-template", props: { primary {type: String, default: ""}, widget_code: {type: String, default: ""}, }, data() { const defaultRow = { widget_code this.widget_code, label 'BUTTON', font 'Pretendard', font_size 14, bg_color '#ffffff', font_color '#000000', icon_src '', icon_color '#000000', icon_position '왼쪽', icon_size 16, border_use true, border_color '#000000', border_width 1, border_radius_use false, border_radius_px 6, box_shadow_use false, box_shadow_opacity 20, mouse_click_type 'URL', mouse_click_url '', mouse_click_target '_self', hover_effect '사용안함', hover_bg_color '#ffffff', hover_font_color '#000000', hover_border_use false, hover_border_color '#000000', hover_border_width 1, hover_box_shadow_use false, hover_box_shadow_opacity: 20, hover_transition '없음', layout_width '자동', layout_width_px 150, layout_height '자동', layout_height_px 40, layout_align '중앙', }; return { load false, component_name: "design-widget-button", component_idx "", injectUrls [ "", "", "", "", "", ], table: null, buttonSaveOwner: null, buttonReady: null, fontFamilyMap: {"Galmuri14":"Galmuri14","GamjaFlower":"GamjaFlower","KNUTruth":"KNUTruth","GowunDodum":"GowunDodum","GowunBatang":"GowunBatang","Gulim":"Gulim","GulimChe":"GulimChe","Gungsuh":"Gungsuh","GungsuhChe":"GungsuhChe","Malgun Gothic":"Malgun Gothic","NanumGothic":"NanumGothic","NanumMyeongjo":"NanumMyeongjo","NanumBarunGothic":"NanumBarunGothic","NanumBarunpen":"NanumBarunpen","NanumSquare":"NanumSquare","NanumSquareRound":"NanumSquareRound","NanumPenScript":"NanumPenScript","Dokdo":"Dokdo","Dotum":"Dotum","DotumChe":"DotumChe","Dongle":"Dongle","EastSeaDokdo":"EastSeaDokdo","Batang":"Batang","BatangChe":"BatangChe","New Gulim":"New Gulim","Sogang_university":"Sogang_University","SeolleimCool":"SeolleimCool","SBAggro":"SBAggro","PyeongChang":"PyeongChang","PyeongChangPeace":"PyeongChangPeace","Pretendard":"Pretendard","Skybori":"Skybori","HiMelody":"HiMelody","휴먼엽서체":"휴먼엽서체","Arial":"Arial","Arial Black":"Arial Black","BlackHanSans":"BlackHanSans","Comic Sans MS":"Comic Sans MS","Courier New":"Courier New","CuteFont":"CuteFont","GmarketSans":"GmarketSans","IBMPlexSansKR":"IBMPlexSansKR","SongMyung":"SongMyung","NotoSans-Regular":"NotoSans-Regular","Orbit":"Orbit","PoorStory":"PoorStory","SingleDay":"SingleDay","Tahoma":"Tahoma","Times New Roman":"Times New Roman","Verdana":"Verdana"}, fontAliasMap {"Noto Sans KR":"NotoSans-Regular","Nanum Gothic":"NanumGothic","Nanum Myeongjo":"NanumMyeongjo","맑은 고딕":"Malgun Gothic","궁서":"Gungsuh","굴림체":"GulimChe","돋음체":"DotumChe","돋움체":"DotumChe","바탕체":"BatangChe"}, defaultRow, row Object.assign({}, defaultRow), hover: false, }; }, async created() { this.component_idx = this.lib.generateUniqueId(); this.api.component_name = this.component_name; }, async mounted() { window.ISWEB_BUTTON_WIDGETS = window.ISWEB_BUTTON_WIDGETS || {}; window.ISWEB_BUTTON_WIDGETS[this.widget_code] = this; this.buttonReady = this.loadButton(); await this.buttonReady; }, unmounted() { if (window.ISWEB_BUTTON_WIDGETS && window.ISWEB_BUTTON_WIDGETS[this.widget_code] === this) { delete window.ISWEB_BUTTON_WIDGETS[this.widget_code]; } }, methods: { async loadButton() { this.table = await this.api.table('jd_widget_button'); this.table.where('widget_code', this.widget_code); await this.getRow(); this.load = true; }, async getRow() { let row = await this.table.get(); if (row.length > 0) this.row = Object.assign({}, this.defaultRow, row[0]); this.row.font = this.normalizeFontValue(this.row.font); this.row.hover_transition = this.normalizeHoverTransition(this.row.hover_transition); }, async handleClick() { const type = this.row.mouse_click_type || 'URL'; const value = (this.row.mouse_click_url || '').trim(); if (!value) return; if (type === '섹션 스크롤') { const selector = value.startsWith('#') ? value `#${value}`; const target = document.querySelector(selector); if (target && typeof target.scrollIntoView === 'function') { target.scrollIntoView({behavior: 'smooth', block: 'start'}); } return; } if (type === '전화걸기') { const tel = value.startsWith('tel:') ? value `tel:${value.replace(/-/g, '')}`; window.location.href = tel; return; } if (type === '메일 보내기') { await this.openMailApp(value); return; } if (type === '파일 다운로드') { await this.lib.download({ src value, name: this.downloadFileName, }); return; } this.lib.href(value, this.linkTarget); }, extractFileName(src) { try { return decodeURIComponent((src || '').split('/').pop() || 'download'); } catch (e) { return (src || '').split('/').pop() || 'download'; } }, async openMailApp() { const emailAddress = .replace(/^mailto:/i, '').trim(); const mailtoUrl = `mailto:${emailAddress}`; let appOpened = false; const onVisibilityChange = () => { if (document.hidden) appOpened = true; }; const onBlur = () => { appOpened = true; }; document.addEventListener('visibilitychange', onVisibilityChange); window.addEventListener('blur', onBlur); window.location.href = mailtoUrl; await new Promise(resolve => setTimeout(resolve, 1200)); document.removeEventListener('visibilitychange', onVisibilityChange); window.removeEventListener('blur', onBlur); if (appOpened) return; const copied = await this.copyToClipboard(emailAddress); if (copied) { alert(`기본 메일 앱을 실행할 수 없어 를 복사했습니다.\n${emailAddress}`); return; } alert(`기본 메일 앱을 실행할 수 없습니다.\n를 직접 복사해주세요.\n${emailAddress}`); }, async copyToClipboard(text) { try { if (navigator.clipboard && window.isSecureContext) { await navigator.clipboard.writeText(text); return true; } } catch (e) { } const textarea = document.createElement('textarea'); textarea.value = text; textarea.setAttribute('readonly', ''); textarea.style.position = 'fixed'; textarea.style.left = '-9999px'; document.body.appendChild(textarea); textarea.select(); let copied = false; try { copied = document.execCommand('copy'); } catch (e) { copied = false; } document.body.removeChild(textarea); return copied; }, renderIconHtml(name, size, color) { if (typeof feather !== 'undefined' && feather.icons[name]) { return feather.icons[name].toSvg({width: size, height: size, color}); } return ''; }, iconStyle(extra) { return `color:${this.row.icon_color};font-size:${this.row.icon_size}px;${extra}`; }, normalizeFontValue(font) { return this.fontAliasMap[font] || font || 'Pretendard'; }, getFontFamily(font) { const normalized = this.normalizeFontValue(font); const family = this.fontFamilyMap[normalized] || normalized || 'Pretendard'; return "'" + String(family).replace(/'/g, "\\'") + "', sans-serif"; }, normalizeHoverTransition(transition) { return transition === '슬라이드' ? '없음' (transition || '없음'); }, }, computed: { appState() { return window.JAYDREAM_VUE_GLOBAL[this.$app_name]; }, hasLabelText() { return String(this.row.label || '').trim().length > 0; }, isIconOnlyButton() { return !!this.parsedIcon && !this.hasLabelText; }, displayLabel() { return this.hasLabelText ? this.row.label ''; }, downloadFileName() { if (this.row.mouse_click_target && this.row.mouse_click_target !== '_self' && this.row.mouse_click_target !== '_blank') { return this.row.mouse_click_target; } return this.extractFileName(this.row.mouse_click_url); }, linkTarget() { return this.row.mouse_click_target === '_blank' ? '_blank' '_self'; }, parsedIcon() { if (!this.row.icon_src) return null; const parts = this.row.icon_src.split(':'); if (parts.length < 2) return null; return {library: parts[0], name: parts[1]}; }, iconClass() { if (!this.parsedIcon) return ''; const {library, name} = this.parsedIcon; if (library === 'bootstrap') return `bi bi-${name}`; if (library === 'phosphor') return `ph ph-${name}`; if (library === 'simpleline') return `icon-${name}`; return ''; }, hoverClass() { const classMap = { '페이드' : 'hvr-fade', '줌인' : 'hvr-grow', '줌아웃' : 'hvr-sink', '떠오르기': 'hvr-float', }; return this.row.hover_transition && this.row.hover_transition !== '없음' ? (classMap[this.row.hover_transition] || '') : ''; }, wrapperStyle() { const align = this.row.layout_align; return { display : 'flex', justifyContent: align === '좌측' ? 'flex-start' : align === '우측' ? 'flex-end' : 'center', }; }, buttonStyle() { const base = { fontFamily : this.getFontFamily(this.row.font), fontSize : (this.row.font_size || 14) + 'px', backgroundColor: this.row.bg_color || '', color : this.row.font_color || '', border : this.row.border_use ? `${this.row.border_width}px solid ${this.row.border_color}` : 'none', borderRadius : this.row.border_radius_use ? `${this.row.border_radius_px}px` : '0px', boxShadow : this.row.box_shadow_use ? `0 4px 12px rgba(0,0,0,${this.row.box_shadow_opacity / 100})` : '', width : this.row.layout_width === '직접입력' && this.row.layout_width_px ? this.row.layout_width_px + 'px' : 'auto', height : this.row.layout_height === '직접입력' && this.row.layout_height_px ? this.row.layout_height_px + 'px' : 'auto', cursor : this.row.mouse_click_url ? 'pointer' : 'default', display : 'inline-flex', alignItems : 'center', justifyContent: 'center', transition : 'all 0.2s', }; if (this.hover && this.row.hover_effect === '사용함') { return { ...base, backgroundColor: this.row.hover_bg_color || base.backgroundColor, color : this.row.hover_font_color || base.color, border : this.row.hover_border_use ? `${this.row.hover_border_width}px solid ${this.row.hover_border_color}` : base.border, boxShadow : this.row.hover_box_shadow_use ? `0 4px 12px rgba(0,0,0,${this.row.hover_box_shadow_opacity / 100})` : base.boxShadow, }; } return base; }, }, watch: { appState: { async handler(newVal) { if (newVal && newVal.reload) { if (!this.buttonSaveOwner) await this.getRow(); this.appState.reload = false; } }, deep: true, }, }, }}); 레이아웃 설정 높이 모바일 자동 높이 직접 높이 설정 모바일 높이 모바일 숨김 처리 {{ body.blankSaveError }} 재시도 JayDream_components.push({name:'design-widget-blank-modal',object:{ template:'#design-widget-blank-modal-template', props:{primary:{type:String,default:''},widget_code:{type:String,default:''},site_code:{type:String,default:''}}, data:function(){return {load:false,row:null,body:null,bridge:null};}, mounted:async function(){ var bridge = (window.ISWEB_BLANK_SIDEBARS || {})[this.widget_code]; var body = (window.ISWEB_BLANK_WIDGETS || {})[this.widget_code]; if (!bridge || !body) return; await body.blankReady; if (bridge.closed || (window.ISWEB_BLANK_SIDEBARS || {})[this.widget_code] !== bridge) return; this.bridge = bridge; this.body = body; this.row = body.row; bridge.vm = this; this.load = true; }, beforeUnmount:function(){if(this.bridge && this.bridge.vm === this)this.bridge.vm = null;}, computed:{ mobileMode:function(){return this.row.mobile_height_type === 'hide' ? this.row.mobile_height_mode : this.row.mobile_height_type;}, isHidden:function(){return this.row.mobile_height_type === 'hide';} }, methods:{ queue:function(){ if (!this.load || this.bridge.closed || this.bridge.deleting) return; this.body.normalizeRow(); this.body.blankSaveError = ''; this.bridge.owner.touch(); clearTimeout(this.bridge.timer); var bridge = this.bridge; bridge.timer = setTimeout(function(){if(!bridge.closed)bridge.owner.flush();},350); }, setMobileMode:function(mode){ this.row.mobile_height_mode = mode; if (this.row.mobile_height_type !== 'hide') this.row.mobile_height_type = mode; this.queue(); }, toggleHidden:function(hidden){ if (hidden) { this.row.mobile_height_mode = this.mobileMode; this.row.mobile_height_type = 'hide'; } else this.row.mobile_height_type = this.mobileMode; this.queue(); }, retrySave:function(){this.body.blankSaveError = '';return this.bridge.owner.flush();} } }}); JayDream_components.push({name: "design-widget-blank", object: { template: "#design-widget-blank-template", props: { primary : {type: String, default: ""}, widget_code: {type: String, default: ""}, site_code : {type: String, default: ""}, }, data() { return { load : false, component_name: "design-widget-blank", component_idx : "", table : null, resizing : false, deviceMode : "desktop", savingResize : false, mobilePcSectionLocked: false, blankSaveOwner: null, blankPanelBridge: null, blankCommitted: null, blankSaveError: "", blankDeleting: false, row : { widget_code : this.widget_code, pc_height : 75, mobile_height_type : "auto", mobile_height_mode : null, mobile_height : 75, }, }; }, async created() { this.component_idx = this.lib.generateUniqueId(); this.api.component_name = this.component_name; this._resizeStartY = 0; this._resizeStartHeight = 75; this._resizeField = "pc_height"; this._bodyClassObserver = null; this._resizeDraggable = null; this._blankDisposed = false; this._blankEdgeResize = (event) => { if (this._blankDisposed || this.blankDeleting || (event.type === "mousedown" && event.button !== 0)) return; const target = event.target && event.target.closest ? event.target : null; if (!target || target.closest("button")) return; const edge = target.closest(".editor-hover-widget-edge.is-after"); const widget = edge && edge.closest(".widget"); if (!widget || widget.id !== this.widget_code) return; // The shared insertion edge covers the original resize handle. Keep its + button separate. if (!this.resizeEnabled || this.isMobilePcSection()) return; event.stopPropagation(); if (event.cancelable) event.preventDefault(); this.startResize(event); }; this.blankReady = new Promise((resolve) => { this._resolveBlankReady = resolve; }); window.ISWEB_BLANK_WIDGETS = window.ISWEB_BLANK_WIDGETS || {}; window.ISWEB_BLANK_WIDGETS[this.widget_code] = this; }, async mounted() { try { this.table = await this.api.table("jd_widget_blank"); this.table.where("widget_code", this.widget_code); await this.getRow(); if (this._blankDisposed) return; this.blankCommitted = this.blankSnapshot(); if (window.BLANK_JAYDREAM && this.isDesignMode) { this.blankSaveOwner = BLANK_JAYDREAM.createSaveOwner({ snapshot: () => this.blankSnapshot(), save: (snapshot) => this.persistBlankSnapshot(snapshot), onFailure: (error) => this.onBlankSaveFailure(error), }); } this.load = true; if (this.isDesignMode) { document.addEventListener("mousedown", this._blankEdgeResize, true); document.addEventListener("touchstart", this._blankEdgeResize, {capture:true, passive:false}); } this.$nextTick(() => { this.syncDeviceMode(); this.syncMobilePcSectionLock(); this.syncFirewallSettingButton(); this.bindBodyClassObserver(); }); } catch (error) { this.blankSaveError = error && error.message || "여백 설정을 불러오지 못했습니다."; } finally { this._resolveBlankReady(this.load); } }, beforeUnmount() { this._blankDisposed = true; document.removeEventListener("mousedown", this._blankEdgeResize, true); document.removeEventListener("touchstart", this._blankEdgeResize, true); if (this.blankSaveOwner) this.blankSaveOwner.dispose(); this.unbindResizeEvents(); if (this._bodyClassObserver) { this._bodyClassObserver.disconnect(); this._bodyClassObserver = null; } if (window.ISWEB_BLANK_WIDGETS && window.ISWEB_BLANK_WIDGETS[this.widget_code] === this) { delete window.ISWEB_BLANK_WIDGETS[this.widget_code]; } }, methods: { getDefaultRow() { return { widget_code : this.widget_code, pc_height : 75, mobile_height_type : "auto", mobile_height_mode : null, mobile_height : 75, }; }, async getRow() { const rows = await this.table.get(); Object.assign(this.row, this.getDefaultRow(), rows.length > 0 ? rows[0] : {}); this.normalizeRow(); }, normalizeRow() { this.row.pc_height = Math.max(0, parseInt(this.row.pc_height, 10) || 0); this.row.mobile_height = Math.max(0, parseInt(this.row.mobile_height, 10) || this.row.pc_height); if (!["auto", "custom", "hide"].includes(this.row.mobile_height_type)) this.row.mobile_height_type = "auto"; if (["auto", "custom"].includes(this.row.mobile_height_type)) this.row.mobile_height_mode = this.row.mobile_height_type; if (!["auto", "custom"].includes(this.row.mobile_height_mode)) this.row.mobile_height_mode = "auto"; }, blankSnapshot() { return Object.assign({}, this.row); }, async persistBlankSnapshot(snapshot) { // Resolve an uncertain first response before retrying insert. Do not replace live edits with an older response. if (!snapshot.primary) { const lookup = await this.lib.ajax("get", this.table.filter, "/JayDream/api.php", {$rejectOnError:true}); if (!lookup || lookup.success === false || !Array.isArray(lookup.data)) throw new Error("여백 저장 대상을 확인하지 못했습니다."); const existing = lookup.data[0]; if (existing && (existing.primary || existing.idx)) snapshot.primary = existing.primary || existing.idx; } const response = await this.lib.ajax(snapshot.primary ? "update" : "insert", snapshot, "/JayDream/api.php", {table:"jd_widget_blank", $rejectOnError:true, $timeoutMs:300000}); if (!response || response.success === false) throw new Error(response && response.message || "여백 설정을 저장하지 못했습니다."); if (response.primary) snapshot.primary = response.primary; if (!snapshot.primary) throw new Error("여백 저장 결과를 확인하지 못했습니다."); if (!this.row.primary) this.row.primary = snapshot.primary; this.blankCommitted = Object.assign({}, snapshot); this.blankSaveError = ""; if (this.table.clearCurrentWidgetDetailCache) this.table.clearCurrentWidgetDetailCache(snapshot); if (!this._blankDisposed) { this.emitHeightChange(); this.resetGrid(); } return response; }, onBlankSaveFailure(error) { this.blankSaveError = error && error.message || "여백 설정을 저장하지 못했습니다. 다시 시도해 주세요."; if (!this.blankPanelBridge && window.EDITOR_UI) EDITOR_UI.alert({message:this.blankSaveError + " 여백 설정에서 재시도해 주세요."}); }, restoreBlankCommitted() { if (!this.blankCommitted) return; Object.keys(this.row).forEach((key) => { if (!Object.prototype.hasOwnProperty.call(this.blankCommitted, key)) delete this.row[key]; }); Object.assign(this.row, this.blankCommitted); this.blankSaveError = ""; if (this.blankSaveOwner) this.blankSaveOwner.discard(); this.emitHeightChange(); this.resetGrid(); }, syncDeviceMode() { this.deviceMode = document.body.classList.contains("_mbv") ? "mobile" : "desktop"; }, bindBodyClassObserver() { if (this._bodyClassObserver || typeof MutationObserver === "undefined") return; this._bodyClassObserver = new MutationObserver(() => { this.syncDeviceMode(); this.syncMobilePcSectionLock(); this.syncFirewallSettingButton(); }); this._bodyClassObserver.observe(document.body, { attributes: true, attributeFilter: ["class"], }); }, getCookie(name) { const cookies = (`; ${document.cookie}`).split(`; ${name}=`); return cookies.length === 2 ? cookies.pop().split(";").shift() : ""; }, isMobileDesignMode() { return document.body.classList.contains("_mbv") || this.getCookie("lc_device") === "mobile"; }, isMobilePcSection() { const widget = document.getElementById(this.widget_code); const section = widget && widget.closest ? widget.closest("section") : null; return this.isMobileDesignMode() && !!section && !section.classList.contains("from-mobile"); }, alertMobilePcSectionBlocked() { const message = "PC에서 만든 섹션 또는 위젯은 모바일 디자인모드에서 설정할 수 없습니다."; if (window.jQuery && jQuery.alert) { jQuery.alert(message); } else { alert(message); } }, syncMobilePcSectionLock() { this.mobilePcSectionLocked = this.isMobilePcSection(); if (this.mobilePcSectionLocked && this.resizing) { this.resizing = false; this.unbindResizeEvents(); } }, syncFirewallSettingButton() { const widget = document.getElementById(this.widget_code); const firewall = widget ? widget.querySelector(".firewall") : null; if (!firewall) return; if (this.mobilePcSectionLocked) { firewall.classList.remove("widget_setting_btn"); return; } if (!this.row.idx) { firewall.classList.add("widget_setting_btn"); } }, getPcHeight() { return Math.max(0, parseInt(this.row.pc_height, 10) || 0); }, getMobileHeight() { return Math.max(0, parseInt(this.row.mobile_height, 10) || this.getPcHeight()); }, getResizeField() { return this.deviceMode === "mobile" ? "mobile_height" : "pc_height"; }, getResizeHeight() { return this.getResizeField() === "mobile_height" ? this.getMobileHeight() : this.getPcHeight(); }, prepareResizeTarget() { if (this.deviceMode !== "mobile") return; const currentHeight = this.row.mobile_height_type === "custom" ? this.getMobileHeight() : this.getPcHeight(); if (this.row.mobile_height_type !== "custom") { this.row.mobile_height_type = "custom"; } this.row.mobile_height_mode = "custom"; this.row.mobile_height = this.normalizeResizeHeight(currentHeight); }, getResizePoint(event) { const source = event.touches && event.touches.length ? event.touches[0] : event; return { y: source.clientY, }; }, normalizeResizeHeight(value) { return Math.max(1, parseInt(value, 10) || 1); }, startResize(event) { this.syncDeviceMode(); this.syncMobilePcSectionLock(); if (this.mobilePcSectionLocked) { this.alertMobilePcSectionBlocked(); return; } if (!this.resizeEnabled) return; this.prepareResizeTarget(); const point = this.getResizePoint(event); this._resizeField = this.getResizeField(); this._resizeStartY = point.y; this._resizeStartHeight = this.normalizeResizeHeight(this.getResizeHeight()); this.resizing = true; document.body.classList.add("design-widget-blank-resizing"); this.disableWidgetDrag(); this.bindResizeEvents(); }, bindResizeEvents() { document.addEventListener("mousemove", this.onResizeMove); document.addEventListener("mouseup", this.stopResize); document.addEventListener("touchmove", this.onResizeMove, {passive: false}); document.addEventListener("touchend", this.stopResize); document.addEventListener("touchcancel", this.stopResize); }, unbindResizeEvents() { document.removeEventListener("mousemove", this.onResizeMove); document.removeEventListener("mouseup", this.stopResize); document.removeEventListener("touchmove", this.onResizeMove); document.removeEventListener("touchend", this.stopResize); document.removeEventListener("touchcancel", this.stopResize); document.body.classList.remove("design-widget-blank-resizing"); this.enableWidgetDrag(); }, onResizeMove(event) { if (!this.resizing) return; if (event.cancelable) event.preventDefault(); const point = this.getResizePoint(event); const nextHeight = this.normalizeResizeHeight(this._resizeStartHeight + point.y - this._resizeStartY); this.row[this._resizeField] = nextHeight; this.emitHeightChange(); }, async stopResize() { if (!this.resizing) return; this.resizing = false; this.unbindResizeEvents(); await this.saveResizeHeight(); }, async saveResizeHeight() { if (this.blankDeleting || !this.blankSaveOwner) return false; const resizeField = this._resizeField || this.getResizeField(); if (resizeField === "mobile_height") { this.row.mobile_height_type = "custom"; this.row.mobile_height_mode = "custom"; } this.row[resizeField] = this.normalizeResizeHeight(this.row[resizeField]); this.blankSaveOwner.touch(); this.savingResize = true; try { return await this.blankSaveOwner.flush(); } finally { this.savingResize = false; } }, emitHeightChange() { if (typeof window === "undefined" || typeof window.CustomEvent !== "function") return; window.dispatchEvent(new CustomEvent("design-widget-blank-height-change", { detail: { widget_code: this.widget_code, pc_height: this.getPcHeight(), mobile_height: this.getMobileHeight(), mobile_height_type: this.row.mobile_height_type, mobile_height_mode: this.row.mobile_height_mode, resize_field: this._resizeField || this.getResizeField(), row: Object.assign({}, this.row), }, })); }, disableWidgetDrag() { const widget = document.getElementById(this.widget_code); if (!widget || !window.jQuery) return; const $widget = window.jQuery(widget); if (!$widget.data("ui-draggable")) return; this._resizeDraggable = $widget; $widget.draggable("disable"); }, enableWidgetDrag() { if (!this._resizeDraggable || !this._resizeDraggable.data("ui-draggable")) return; this._resizeDraggable.draggable("enable"); this._resizeDraggable = null; }, resetGrid() { if (window.design && window.design.menu && window.design.menu.grid) { window.design.menu.grid.reset(); } }, waitBlankSave() { return this.blankSaveOwner ? this.blankSaveOwner.wait() : Promise.resolve(true); }, }, computed: { blankStyle() { const pcHeight = Math.max(0, parseInt(this.row.pc_height, 10) || 0); const mobileHeight = Math.max(0, parseInt(this.row.mobile_height, 10) || pcHeight); return { "--design-widget-blank-pc-height" : `${pcHeight}px`, "--design-widget-blank-mobile-height": `${mobileHeight}px`, }; }, mobileClass() { const type = this.row.mobile_height_type || "auto"; return `design-widget-blank--mobile-${type}`; }, isDesignMode() { return typeof window !== "undefined" && !!(window.design && window.design.menu); }, resizeEnabled() { return this.isDesignMode && !this.mobilePcSectionLocked && !this.blankDeleting; }, appState() { return window.JAYDREAM_VUE_GLOBAL[this.$app_name]; }, }, watch: { appState: { async handler(newVal) { if (newVal.reload) { await this.getRow(); this.appState.reload = false; } }, deep: true, }, }, }}); JayDream_components.push({name : "design-widget-map-google",object : { template: "#design-widget-map-google-template", props: { primary : {type : String, default : ""}, modelValue : {type : Object, default : ""}, }, data: function () { return { load : false, component_name : "design-widget-map-google", component_idx: "", table : null, row: {}, rows : [], }; }, async created() { this.component_idx = this.lib.generateUniqueId(); this.api.component_name = this.component_name }, async mounted() { // this.table = await this.api.table("exam"); // await this.table.get(this.rows,{paging : 10}) this.load = true; this.$nextTick(async () => { // 해당부분에 퍼블리싱 라이브러리,플러그인 선언부분 하시면 됩니다 ex) swiper }); }, updated() { }, methods: { }, computed: { }, watch: { } }}); JayDream_components.push({name "design-widget-map-kakao",object { template: "#design-widget-map-kakao-template", props: { primary {type String, default ""}, modelValue {type Object, default ""}, widget_code {type String, default ""}, }, data: function () { return { load false, component_name "design-widget-map-kakao", component_idx: "", kakaoMapEmbedOrigin "https:\/\/", }; }, async created() { this.component_idx = this.lib.generateUniqueId(); this.api.component_name = this.component_name }, async mounted() { this.load = true; }, updated() { }, methods: { getStyle() { let style = { width: "100%", border: "0", }; if(this.lib.isMobile()) { style.height = (this.row.mobile_height || this.row.pc_height || 320) + "px"; } else { style.height = (this.row.pc_height || 450) + "px"; } return style; } }, computed: { row() { return this.modelValue || {}; }, iframeSrc() { const code = this.row.widget_code || this.widget_code || ""; const origin = this.kakaoMapEmbedOrigin || window.location.origin; return origin.replace(/\/$/, "") + "/JayDream/kakaoMapEmbed.php?widget_code=" + encodeURIComponent(code); } }, watch: { } }}); 구글 지도 삽입 코드를 입력해주세요. 삽입 코드 입력 JayDream_components.push({name:'design-widget-map-modal-google',object:{ template:'#design-widget-map-modal-google-template', props:{modelValue:Object,previewOnly:Boolean}, emits:['update:modelValue','editor-ready'], data(){return {editor:null};}, computed:{ row:{get(){return this.modelValue||{};},set(value){this.$emit('update:modelValue',value);}}, validCode(){return / 주소 검색 주소 검색 주소 지번 주소{{displayJibun}} 지번 상세 주소상세 주소 도로명 주소{{displayAddress}} 도로명 상세 주소상세 주소 상세 정보 상호명상호명 지도 크기 지도 높이 PC 모바일 주소 검색 닫기 JayDream_components.push({name:'design-widget-map-modal-kakao',object:{ template:'#design-widget-map-modal-kakao-template', props:{modelValue:Object,widget_code:String,previewOnly:Boolean}, emits:['update:modelValue'], data() { return {modal:this.lib.createModalObject(),origin:"https:\/\/",previewRow:{},viewport:window.innerWidth,previewFallback:false,previewNavigationZ:null}; }, computed:{ row:{get(){return this.modelValue||{};},set(value){this.$emit('update:modelValue',value);}}, phone(){return [this.row.phone1,this.row.phone2,this.row.phone3].filter(value=>value!==null&&value!==undefined&&value!=='').join('-');}, previewKey(){return JSON.stringify(['address','jibun','address2','jibun2','title','phone1','phone2','phone3'].map(key=>this.row[key]));}, hasAddress(){return Boolean(String(this.row.address||'').trim()||String(this.row.jibun||'').trim());}, isNewUnset(){return !this.row.primary && !this.row.idx && !['address','jibun','address2','jibun2','title','phone1','phone2','phone3'].some(key=>String(this.row[key]||'').trim());}, displayJibun(){return this.row.jibun || (this.hasAddress ? '-' (this.previewFallback ? '서울 강서구 마곡동 759-1' '-'));}, displayAddress(){return this.row.address || (this.hasAddress ? '-' (this.previewFallback ? '서울 강서구 마곡서로 152' '-'));}, previewHeight(){ const value=this.viewport=0?number:(this.viewportparams.set(key,this.previewRow[key]??'')); params.set('z',this.previewNavigationZ == null ? (this.previewRow.z??'') : this.previewNavigationZ); return (this.origin||window.location.origin).replace(/\/$/,'')+'/JayDream/kakaoMapEmbed.php?'+params.toString(); } }, methods:{ setPhone(value){ value=String(value||''); let parts=value.split('-'); if(parts.length>1) parts=[parts[0],parts[1],parts.slice(2).join('-')]; else if(/^\d{9,11}$/.test(value)){ const prefix=value.startsWith('02')?2:3, tail=value.slice(prefix); parts=[value.slice(0,prefix),tail.slice(0,-4),tail.slice(-4)]; } else parts=[value,'','']; [this.row.phone1,this.row.phone2,this.row.phone3]=[parts[0]||'',parts[1]||'',parts[2]||'']; }, sendPreviewUpdate(){ const frame=this.$refs.frame; if (!frame || !frame.contentWindow) return; const next={}; ['address','jibun','address2','jibun2','title','phone1','phone2','phone3','z'].forEach(key=>next[key]=this.previewRow[key] == null ? '' : String(this.previewRow[key])); frame.contentWindow.postMessage({type:'jd-kakao-map-preview-update',widget_code:this.widget_code||this.row.widget_code||'',row:next},new URL(this.iframeSrc,window.location.href).origin); }, syncPreview(initial){ if(!this.previewOnly)return; const address=JSON.stringify([this.row.address,this.row.jibun]); const previewZoom=this.previewFallback ? (this.previewRow.z??3) : (this.row.z??3); if (initial && this

댓글목록

등록된 댓글이 없습니다.