미래약국
17분전
1
0
-
- 관련링크 : https://hanayakmall.top0회 연결
-
- 관련링크 : https://hanayakmall.top0회 연결
본문
미래약국

미래약국 공식 온라인 약국에서 정품 비아그라와 시알리스를 안전하고 편리하게 구매하세요. 전문 약사의 비대면 상담을 통해 제품 정보를 안내받고, 정품 확인부터 꼼꼼한 비밀 포장과 신속한 배송까지 믿을 수 있는 서비스 제공합니다.미래약국 공식 사이트에서 간편하게 주문하세요
미래약국,비아그라,시알리스
서브메뉴가 없습니다. 미래약국 제품 소개 이용 안내 고객 후기 자주 묻는 질문 문의하기 미래약국 | 온라인 약국 미래약국 공식 온라인 약국에서 정품 비아그라와 시알리스를 안전하고 편리하게 구매하세요. 전문 약사의 비대면 상담을 통해 제품 정보를 안내받고, 정품 확인부터 꼼꼼한 비밀 포장과 신속한 배송까지 믿을 수 있는 서비스를 제공합니다. 지금 미래약국 공식 사이트에서 간편하게 주문하세요. 문의하기 미래약국이 특별한 이유 정품 의약품 보장 미래약국은 공식 유통 경로를 통해 공급되는 비아그라와 시알리스의 정품 여부를 확인하고 제품 정보를 제공합니다. ◇ 철저한 비밀 배송 배송 상품은 외부에서 내용물을 확인할 수 없도록 꼼꼼하게 포장하여 고객의 개인정보와 사생활을 보호합니다. 24시간 전문 상담 전문 약사가 의약품 관련 궁금증과 복용 방법, 주의사항에 대해 상세하게 안내합니다. ↗ 전국 당일 퀵 배송 서울, 강남, 부산, 대구, 수원 등 주요 지역을 중심으로 전국 당일 퀵 배송 서비스를 지원합니다. 제품 소개 비아그라 제품 정보 주성분 실데나필 대표 함량 25mg / 50mg / 100mg 효과 발현 일반적으로 30~60분 지속 시간 일반적으로 약 4시간 식사 영향 고지방 식사 시 작용 시작이 늦어질 수 있음 주요 주의사항 질산염 계열 약물과 병용 금지 시알리스 제품 정보 주성분 타다라필 대표 함량 2.5mg / 5mg / 10mg / 20mg 효과 발현 일반적으로 30~60분 지속 시간 최대 36시간 식사 영향 음식의 영향을 비교적 적게 받음 주요 주의사항 질산염 계열 약물과 병용 금지 미래약국 이용 절차 안내 01 간편한 이용 시작 별도의 회원가입 없이 이용 절차와 필요한 정보를 확인할 수 있습니다. 02 제품 선택 및 상담 제품별 상세 정보를 확인하고 약사 상담을 통해 복용 관련 안내를 받습니다. 03 안전한 결제 절차 안내된 결제 방법과 절차를 확인한 후 결제를 진행합니다. 04 배송 및 수령 안내 주문 확인 후 배송 일정과 수령에 필요한 정보를 안내받을 수 있습니다. 고객 후기 “ “제품별 정보가 보기 쉽게 정리되어 있어서 비교하는 데 도움이 됐고, 필요한 내용을 찾기도 편했습니다.” 30대 남성 “ “상담을 통해 복용 방법과 주의사항을 자세히 확인할 수 있어서 좋았습니다. 궁금했던 부분도 이해하기 쉽게 설명해 주었습니다.” 40대 남성 “ “처음 이용하는 입장이라 조금 망설였는데, 이용 절차와 필요한 안내가 명확해서 전체적인 과정을 이해하기 쉬웠습니다.” 50대 남성 자주 묻는 질문 Q 온라인으로 안심하게 주문할 수 있나요? A 네, 미래약국은 제품 정보 확인부터 전문적인 상담 안내까지 체계적으로 제공하며, 주문 및 배송 과정에서도 고객의 개인정보와 사생활 보호를 중요하게 생각합니다. Q 배송은 얼마나 걸리나요? A 서울, 강남, 부산, 대구, 수원 등 주요 지역을 중심으로 당일 배송 서비스를 지원하며, 배송 지역과 주문 시간에 따라 당일 또는 다음 날 수령이 가능합니다. Q 판매하는 제품은 정품인가요? A 네, 미래약국은 공식 유통 경로를 통해 공급된 정품 의약품을 취급하며, 제품의 제조사와 품질 정보를 꼼꼼하게 확인합니다. Q 결제는 어떤 방법으로 할 수 있나요? A 카드결제, 계좌이체, 간편결제 등 다양한 결제 수단을 제공하여 편리한 결제를 지원합니다. Q 비아그라와 시알리스의 차이점은 무엇인가요? A 비아그라는 실데나필을, 시알리스는 타다라필을 주성분으로 하며 약효 발현 시간과 지속 시간에서 차이가 있습니다. 미래약국에서 비아그라와 시알리스 정품을 구매하실 수 있습니다. 미래약국 상호명 : 미래약국 | 대표자 : 김서진 | 사업자등록번호 : 452-24-54561 주소 : 서울특별시 종로구 미래약국 Copyright© 미래약국 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.previewNavigationZ == null) this.previewNavigationZ=previewZoom; if(!initial&&this.previousAddress!==address){this.row.z=3;this.previewNavigationZ=3;} this.previousAddress=address; if (this.hasAddress) this.previewFallback=false; this.previewRow={}; ['address','jibun','address2','jibun2','title','phone1','phone2','phone3','z'].forEach(key=>this.previewRow[key]=this.row[key]??''); if (this.previewFallback) { this.previewRow.address='서울 강서구 마곡동 759-1'; this.previewRow.z=previewZoom; } if (!initial) this.sendPreviewUpdate(); }, onMessage(event){ const frame=this.$refs.frame; if(!frame||event.source!==frame.contentWindow||event.origin!==new URL(this.iframeSrc,window.location.href).origin)return; const data=event.data||{},code=this.widget_code||this.row.widget_code||''; if(data.type==='jd-kakao-map-preview-ready') { this.sendPreviewUpdate(); return; } if(data.type!=='jd-kakao-map-level'||(data.widget_code&&code&&data.widget_code!==code))return; const level=Number(data.z); if(level) { this.row.z=level; if(this.previewFallback) this.previewRow.z=level; } } }, mounted(){ if(this.previewOnly){ this.previewFallback=this.isNewUnset; this.syncPreview(true); this.messageListener=this.onMessage.bind(this); this.resizeListener=()=>{this.viewport=window.innerWidth;}; window.addEventListener('message',this.messageListener); window.addEventListener('resize',this.resizeListener); } else { this.eventNamespace='.jdMapPostcode_'+this.widget_code; this.pickerShown=event=>{ if(!event.target.closest('[data-map-owner="'+this.widget_code+'"]'))return; $(event.target).css('z-index',1380); $('.modal-backdrop').last().addClass('jd-map-postcode-backdrop'); }; $(document).on('shown.bs.modal'+this.eventNamespace,'.jd-map-postcode .modal',this.pickerShown); } }, beforeUnmount(){ if(this.messageListener)window.removeEventListener('message',this.messageListener); if(this.resizeListener)window.removeEventListener('resize',this.resizeListener); if(this.eventNamespace){ $(document).off(this.eventNamespace); const modal=document.querySelector('[data-map-owner="'+this.widget_code+'"] .modal'); if(modal&&$(modal).hasClass('in'))$(modal).modal('hide'); $('.jd-map-postcode-backdrop').remove(); } }, watch:{ previewKey(){this.syncPreview(false);}, previewHeight(){this.syncPreview(true);}, viewport(){this.syncPreview(true);} } }}); {{error}} 다시 불러오기 {{provider.label}} 설정을 불러오는 중입니다. JayDream_components.push({name:'design-widget-map-modal',object:{ template:'#design-widget-map-modal-template', components:{'design-editor-scroll-motion':window.ISWEB_SCROLL_MOTION_EDITOR}, props:{widget_code:String,site_code:String}, data() { return { row:{}, load:false, reading:false, saving:false, disposed:false, error:'', tab:'map', googleEditor:null, scroll:{option_scroll:'효과없음',option_scroll_direction:'center',option_scroll_duration:'0',option_scroll_delay:'0'}, providers:[{value:'kakao',label:'카카오 지도'},{value:'google',label:'구글 지도'}] }; }, mounted() { const bridge = window.ISWEB_MAP_EDITORS[this.widget_code]; bridge.vm = this; this.tab = bridge.tab; this.loadRow(); }, beforeUnmount() { this.disposed = true; if (this.previewAnimation) this.previewAnimation.cancel(); }, methods:{ request(method, payload) { return this.lib.ajax(method, payload, '/JayDream/api.php', { return:true, table:'jd_widget_map', component_name:'design-widget-map-modal', $rejectOnError:true }); }, async readDetail() { const table = this.api.table('jd_widget_map').where('widget_code',this.widget_code); const response = await this.request('get',table.filter); if (!response || !response.success || !Array.isArray(response.data)) throw new Error('설정을 불러오지 못했습니다.'); return response.data[0] || {}; }, async loadRow() { this.reading = true; this.error = ''; try { const row = await this.readDetail(); if (this.disposed) return; this.row = Object.assign({widget_code:this.widget_code,map_type:'kakao',x:14129709.590359,y:4512313.7639686,z:19, jibun:'',jibun2:'',address:'',address2:'',pc_height:450,mobile_height:320,title:'',phone1:'',phone2:'',phone3:'',google_iframe:''},row); if (this.row.map_type==='vworld') this.row.map_type='kakao'; const current = window.ISWEB_MAP_EDITORS[this.widget_code].settingData || {}; Object.keys(this.scroll).forEach(key=>{ if(current[key]!==undefined && current[key]!==null) this.scroll[key]=current[key]; }); if (this.scroll.option_scroll==='플립' && this.scroll.option_scroll_direction==='center') this.scroll.option_scroll_direction='up'; this.load = true; } catch (error) { if(!this.disposed) this.error=error.message; } finally { this.reading=false; } }, updateScroll(next) { this.scroll=next; const bridge=window.ISWEB_MAP_EDITORS[this.widget_code]; if(bridge&&bridge.shell)bridge.shell.markDirty(); }, async readBase() { const ret=await $.ajax({url:'/admin/widget/ajax_get_setting_html',method:'post',dataType:'json', data:
});
if (!ret || !ret.data || ret.data.code!==this.widget_code) throw new Error('최신 위젯 설정을 불러오지 못했습니다.');
const current=ret.data.settingData;
if (typeof current==='string') return JSON.parse(current || '{}');
return current || {};
},
async saveBase(next) {
const bridge=window.ISWEB_MAP_EDITORS[this.widget_code], owner=bridge.owner;
const ret = await $.ajax({url:'/admin/widget/ajax_set_setting_data',method:'post',dataType:'json',
data:});
if (!ret || ret.is_success!=='Y' || !ret.data) throw new Error('애니메이션 설정을 저장하지 못했습니다. 다시 시도해 주세요.');
bridge.settingData=ret.data.settingData || next;
owner.setData(Object.assign({},owner.data,ret.data));
if (owner.widget) {
owner.widget.widgetData[this.widget_code]=ret.data;
if (ret.html && $('#'+this.widget_code).length) {
owner.unmountWidget();
owner.widget.changeHtml($('#'+this.widget_code),ret.html);
}
owner.widget.resetUnit({[this.widget_code]:ret.data});
}
return ret;
},
async save() {
if (this.saving || !this.load) return false;
this.saving=true; this.error='';
let detailSaved=false;
try {
if (this.row.map_type==='google') {
const code=String(this.row.google_iframe||'').trim();
if (!code) throw new Error('코드를 입력해주세요.');
if (!/]+src=["']https:\/\/www\.google\.com\/maps\/embed\?pb=[^"']+["'][^>]*>/i.test(code)) throw new Error('구글 맵 형식의 코드가 아닙니다.');
}
if (this.row.map_type==='kakao' && !this.row.address && !this.row.jibun) throw new Error('주소 검색을 해주세요.');
if (!this.row.primary) {
const existing=await this.readDetail();
if(existing.primary)this.row.primary=existing.primary;
if(existing.idx)this.row.idx=existing.idx;
}
const detail=await this.request(this.row.primary?'update':'insert',JSON.parse(JSON.stringify(this.row)));
if (!detail || !detail.success) throw new Error('지도 설정을 저장하지 못했습니다.')
댓글목록0