diff --git a/src/main/webapp/WEB-INF/views/ftl/m/bf_growth_review/view_bf_growth_review.ftl b/src/main/webapp/WEB-INF/views/ftl/m/bf_growth_review/view_bf_growth_review.ftl index 9b4da30..cb271d2 100644 --- a/src/main/webapp/WEB-INF/views/ftl/m/bf_growth_review/view_bf_growth_review.ftl +++ b/src/main/webapp/WEB-INF/views/ftl/m/bf_growth_review/view_bf_growth_review.ftl @@ -4,6 +4,7 @@ + @@ -96,7 +97,7 @@
  • -
  • @@ -258,7 +259,14 @@ - + + + +
    @@ -285,6 +293,8 @@ + + - + + + <#include "/m/include/index_bottom.ftl"> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom.ftl b/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom.ftl index dad93f9..b80deb4 100644 --- a/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom.ftl +++ b/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom.ftl @@ -9,6 +9,96 @@ timer: 2000 }); + + $('#share-popup').popup(); + + var pageTitle = document.title; + var pageUrl = location.href + + var shareUrlFB = "https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(pageUrl)+"&t="+encodeURI(pageTitle); + var shareUrlTWT = "https://twitter.com/intent/tweet?text="+encodeURIComponent(pageTitle)+"&url="+encodeURI(pageUrl); + var shareUrlNaver = "https://share.naver.com/web/shareView.nhn?url="+encodeURI(pageUrl)+"&title="+encodeURI(pageTitle); + + $(".facebook").on("click" , function(e) { + e.preventDefault(); + window.open(shareUrlFB, '', 'scrollbars=no, width=584, height=635'); + }); + + $(".twitter").on("click" , function(e) { + e.preventDefault(); + window.open(shareUrlTWT, '', 'scrollbars=no, width=584, height=635'); + }); + + $(".kakao").on("click" , function(e) { + e.preventDefault(); + }); + + Kakao.init("41afd760326f3eb50892555cd0b16a8e"); + Kakao.Link.createDefaultButton({ + container: '#linkedKakao', + objectType: 'feed', + content: { + title: pageTitle, + description: '이유식당 전문가 리뷰', + imageUrl: + 'http://mud-kage.kakao.co.kr/dn/NTmhS/btqfEUdFAUf/FjKzkZsnoeE4o19klTOVI1/openlink_640x640s.jpg', + link: { + mobileWebUrl: window.location.href, + androidExecutionParams: window.location.href, + }, + }, + itemContent: { + profileText: 'Kakao', + profileImageUrl: 'http://mud-kage.kakao.co.kr/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png', + titleImageUrl: 'http://mud-kage.kakao.co.kr/dn/Q2iNx/btqgeRgV54P/VLdBs9cvyn8BJXB3o7N8UK/kakaolink40_original.png', + titleImageText: 'Cheese cake', + titleImageCategory: 'Cake', + items: [ + { + item: 'Cake1', + itemOp: '1000원', + }, + { + item: 'Cake2', + itemOp: '2000원', + }, + { + item: 'Cake3', + itemOp: '3000원', + }, + { + item: 'Cake4', + itemOp: '4000원', + }, + { + item: 'Cake5', + itemOp: '5000원', + }, + ], + sum: 'Total', + sumOp: '15000원', + }, + social: { + likeCount: 10, + commentCount: 20, + sharedCount: 30, + }, + buttons: [ + { + title: '웹으로 이동', + link: { + mobileWebUrl: 'https://developers.kakao.com', + }, + }, + { + title: '앱으로 이동', + link: { + mobileWebUrl: 'https://developers.kakao.com', + }, + }, + ] + }); + });