Commit 6764e1bb authored by platyhouse's avatar platyhouse

- encrypted

parent ee096f74
...@@ -161,7 +161,8 @@ ...@@ -161,7 +161,8 @@
var cidx = request.cidx.map(function (v, k) { var cidx = request.cidx.map(function (v, k) {
return 'cidx[]=' + encodeURIComponent(v); return 'cidx[]=' + encodeURIComponent(v);
}).join('&'); }).join('&');
window.location.href = "/order/form/?uid=" + CART.uid + '&' + cidx; <? // window.location.href = "/order/form/?uid=" + CART.uid + '&' + cidx; ?>
window.location.href = "/ptyshop/order/order/?userId=" + CART.uid + '&' + cidx;
} }
for (var idx in request.cart) { for (var idx in request.cart) {
......
...@@ -358,6 +358,7 @@ namespace platyFramework; ...@@ -358,6 +358,7 @@ namespace platyFramework;
//장바구니 담기 //장바구니 담기
function cart(type) { function cart(type) {
console.log("cart() begins. type = " + type);
var scroll_area = $('.scroll_area'); var scroll_area = $('.scroll_area');
if (scroll_area.css("display") === "none") { if (scroll_area.css("display") === "none") {
console.log("scroll_area.show"); console.log("scroll_area.show");
...@@ -467,9 +468,11 @@ namespace platyFramework; ...@@ -467,9 +468,11 @@ namespace platyFramework;
success: function (request) { success: function (request) {
console.log(request); console.log(request);
console.log("type = " + type);
//장바구니로 이동 //장바구니로 이동
if (type === 'cart' && confirm("장바구니에 상품을 담았습니다.\n지금 확인하러 가시겠습니까?")) { if (type === 'cart' && confirm("장바구니에 상품을 담았습니다.\n지금 확인하러 가시겠습니까?")) {
window.location.href = "/ptyshop/cart/status/?uid=" + GOODS.uid; window.location.href = "/ptyshop/cart/status/?userId=" + GOODS.uid;
/* /*
if (AGENT === 'web') { if (AGENT === 'web') {
window.location.href = "/cart/get/?uid=" + GOODS.uid; window.location.href = "/cart/get/?uid=" + GOODS.uid;
...@@ -484,14 +487,14 @@ namespace platyFramework; ...@@ -484,14 +487,14 @@ namespace platyFramework;
var cidx = request.cidx.map(function (v, k) { var cidx = request.cidx.map(function (v, k) {
return 'cidx[]=' + encodeURIComponent(v); return 'cidx[]=' + encodeURIComponent(v);
}).join('&'); }).join('&');
window.location.href = "/ptyshop/order/status/?uid=" + GOODS.uid + '&' + cidx; window.location.href = "/ptyshop/order/order/?userId=" + GOODS.uid + '&' + cidx;
} else if (type === 'gift') { } else if (type === 'gift') {
//console.log(request.cidx); //console.log(request.cidx);
var cidx = request.cidx.map(function (v, k) { var cidx = request.cidx.map(function (v, k) {
return 'cidx[]=' + encodeURIComponent(v); return 'cidx[]=' + encodeURIComponent(v);
}).join('&'); }).join('&');
window.location.href = "/ptyshop/order/status/?uid=" + GOODS.uid + '&giftyn=' + GOODS.giftyn + '&' + cidx; window.location.href = "/ptyshop/order/order/?userId=" + GOODS.uid + '&giftyn=' + GOODS.giftyn + '&' + cidx;
} }
}, },
beforeSend: function () { beforeSend: function () {
......
<?php
/**
* @see \platyFramework\ptyshopOrderController::order()
* @example http://dev.appju.platyhouse.com/ptyshop/order/order/?userId=KAKAOTALK_1619310304&cidx[]=347
*/
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ko"> <html lang="ko">
<head> <head>
...@@ -169,8 +175,12 @@ ...@@ -169,8 +175,12 @@
}(jQuery)); }(jQuery));
// var address = JSON.parse('[]'); // var address = JSON.parse('[]');
var address = JSON.parse('{"1359026":{"addrno":1359026,"infoNm":"base","bname":"\\uc774\\ubbf8\\uc790","btel":"01012341234","dname":"\\uc774\\ubbf8\\uc790","dtel":"01012341234","dpcode":"06097","daddr1":"\\uc11c\\uc6b8 \\uac15\\ub0a8\\uad6c \\ubd09\\uc740\\uc0ac\\ub85c 403 (\\uc0bc\\uc131\\ub3d9, \\ud558\\ubaa8\\ub2c8 \\ube4c\\ub529)","daddr2":"1234","price":0}}'); var address = JSON.parse('<?=json_encode($address, JSON_UNESCAPED_UNICODE)?>');
var goods = JSON.parse('{"10031868":{"shipping":5000,"shippingcnt":0,"fararea":0,"tprice":34800,"gprice":29800,"dprice":5000,"cnt":1,"cidx":[13734513]}}'); console.log("address ====")
console.log(address);
var goods = JSON.parse('<?=json_encode($goods, JSON_UNESCAPED_UNICODE)?>');
console.log("goods ====")
console.log(goods);
var PREPAIDCNT = parseInt('0'); var PREPAIDCNT = parseInt('0');
var goodsfarstop = false; var goodsfarstop = false;
var giftyn = 'N'; // 선물 var giftyn = 'N'; // 선물
...@@ -859,7 +869,7 @@ ...@@ -859,7 +869,7 @@
<div id="main"> <div id="main">
<form name="order" method="post" action="/ptyshop/order/result/"> <form name="order" method="post" action="/ptyshop/order/result/">
<input type="hidden" name="uid" id="uid" value="a27b1d76-d4aa-3f11-b384-d6b8431e6a51"> <input type="hidden" name="uid" id="uid" value="<?=$userId?>">
<div class="order_item"> <div class="order_item">
<h3 class="order_title"> <h3 class="order_title">
<span>주문자 정보</span> <span>주문자 정보</span>
......
<?php
namespace platyFramework;
/**
* 주문 성공 창
*
* @var ptyshopOrderItemModel $orderItem
*/
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ko"> <html lang="ko">
<head> <head>
...@@ -32,7 +40,7 @@ ...@@ -32,7 +40,7 @@
}); });
//AdBrix //AdBrix
window.CL.callNative(1008, '{"totalAmount":6800,"orderId":"161554153015766","list":[{"productId":10016099,"productName":"DCOVERS \\ub514\\ucee4\\ubc84\\uc2a4 \\uba74, \\ucfe8\\ub860,\\ub808\\uc778\\ubcf4\\uc6b0 (\\ub0a8\\uc5ec\\uacf5\\uc6a9)","price":6800,"quantity":1,"deliveryCharge":0}]}', AGENT); // window.CL.callNative(1008, '{"totalAmount":6800,"orderId":"161554153015766","list":[{"productId":10016099,"productName":"DCOVERS \\ub514\\ucee4\\ubc84\\uc2a4 \\uba74, \\ucfe8\\ub860,\\ub808\\uc778\\ubcf4\\uc6b0 (\\ub0a8\\uc5ec\\uacf5\\uc6a9)","price":6800,"quantity":1,"deliveryCharge":0}]}', AGENT);
}); });
</script> </script>
...@@ -40,6 +48,7 @@ ...@@ -40,6 +48,7 @@
<div class="complete_message"> <div class="complete_message">
<p class="phrase">주문이 완료되었습니다.</p> <p class="phrase">주문이 완료되었습니다.</p>
</div> </div>
<? if (false) { ?>
<div class="order_info"> <div class="order_info">
<h1 class="title">무통장 입금정보</h1> <h1 class="title">무통장 입금정보</h1>
<dl class="individual"> <dl class="individual">
...@@ -48,7 +57,7 @@ ...@@ -48,7 +57,7 @@
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>입금계좌</dt> <dt>입금계좌</dt>
<dd>07503158397136</dd> <dd></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>예금주</dt> <dt>예금주</dt>
...@@ -64,31 +73,34 @@ ...@@ -64,31 +73,34 @@
</dd> </dd>
</dl> </dl>
</div> </div>
<? } ?>
<div class="order_info"> <div class="order_info">
<h1 class="title">주문 정보</h1> <h1 class="title">주문 정보</h1>
<dl class="individual"> <dl class="individual">
<dt>주문번호</dt> <dt>주문번호</dt>
<dd>161554153015766</dd> <dd><?=$orderItem->orderId?></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>상품명</dt> <dt>상품명</dt>
<dd><span class="name">DCOVERS 디커버스 면, 쿨론,레인보우 (남여공용)</span></dd> <dd><span class="name"><?=$orderItem->title?></span></dd>
</dl> </dl>
<? if (false) { ?>
<dl class="individual"> <dl class="individual">
<dt>상품금액</dt> <dt>상품금액</dt>
<dd class="price"><strong>6,800</strong><span></span></dd> <dd class="price"><strong><?=number_format($orderItem->price)?></strong><span></span></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>배송비</dt> <dt>배송비</dt>
<dd class="price"><strong>0</strong><span></span></dd> <dd class="price"><strong></strong><span></span></dd>
</dl> </dl>
<? } ?>
<dl class="individual"> <dl class="individual">
<dt>결제방식</dt> <dt>결제방식</dt>
<dd>가상계좌</dd> <dd><?=$orderItem->getPaymethodTitle()?></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>결제금액</dt> <dt>결제금액</dt>
<dd class="total_price"><strong>6,800</strong><span></span></dd> <dd class="total_price"><strong><?=number_format($orderItem->price)?></strong><span></span></dd>
</dl> </dl>
</div> </div>
...@@ -96,24 +108,24 @@ ...@@ -96,24 +108,24 @@
<h1 class="title">배송 정보</h1> <h1 class="title">배송 정보</h1>
<dl class="individual"> <dl class="individual">
<dt>수령자</dt> <dt>수령자</dt>
<dd>이미자</dd> <dd><?=$orderItem->deliveryName?></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>배송지</dt> <dt>배송지</dt>
<dd>서울 강남구 봉은사로 403 (삼성동, 하모니 빌딩) 1234</dd> <dd><? echo "{$orderItem->deliveryAddress1} {$orderItem->deliveryAddress2}"?></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>연락처</dt> <dt>연락처</dt>
<dd class="telephone">010-1234-1234</dd> <dd class="telephone"><?=$orderItem->getPhoneNumberFormat($orderItem->deliveryPhoneNumber)?></dd>
</dl> </dl>
<dl class="individual"> <dl class="individual">
<dt>배송메모</dt> <dt>배송메모</dt>
<dd></dd> <dd><?=$orderItem->deliveryMemo?></dd>
</dl> </dl>
</div> </div>
<div class="button_area"> <div class="button_area">
<a href="/ptyshop/cart/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="button_home">홈으로</a> <a href="{{home}}/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="button_home">홈으로</a>
<a href="/ptyshop/order/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="buttom_order">주문/배송 조회</a> <a href="/ptyshop/order/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="buttom_order">주문/배송 조회</a>
<!-- <a href="/cart/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="button_home">홈으로</a>--> <!-- <a href="/cart/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="button_home">홈으로</a>-->
<!-- <a href="/order/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="buttom_order">주문/배송 조회</a>--> <!-- <a href="/order/get/?uid=a27b1d76-d4aa-3f11-b384-d6b8431e6a51" class="buttom_order">주문/배송 조회</a>-->
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="arrowls_open"
width="26"
height="22"
viewBox="0 0 26 22"
version="1.1"
sodipodi:docname="arrowls_close.svg"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata
id="metadata46">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1858"
inkscape:window-height="1057"
id="namedview44"
showgrid="false"
inkscape:zoom="10.727273"
inkscape:cx="13"
inkscape:cy="11"
inkscape:window-x="54"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="arrowls_open" />
<defs
id="defs39">
<style
id="style37">
.cls-1 {
fill: #fff;
opacity: 0;
}
.cls-2 {
fill: none;
stroke: #777;
stroke-linecap: round;
stroke-linejoin: round;
}
</style>
</defs>
<rect
id="va"
class="cls-1"
width="26"
height="22" />
<path
id="arrow_n"
class="cls-2"
d="M 20,15 13,8 Z M 6,15 13,8 Z"
inkscape:connector-curvature="0"
style="fill:none;stroke:#777777;stroke-linecap:round;stroke-linejoin:round" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="20.125" height="26" viewBox="0 0 20.125 26">
<defs>
<style>
.cls-1{fill:#fff;opacity:0}.cls-2,.cls-3{fill:#555;stroke:#fff}.cls-2{stroke-width:.25px}.cls-3{stroke-width:.5px}
</style>
</defs>
<g id="ico_delete" transform="translate(4.5 5.5)">
<path id="aV" d="M0 0h20v26H0z" class="cls-1" transform="translate(-4.5 -5.5)"/>
<path id="패스_78" d="M6.929 9.6h.581l1.356 11.335a.521.521 0 0 0 .529.465h9.01a.53.53 0 0 0 .529-.465L20.29 9.6h.581a.53.53 0 0 0 0-1.059h-4.054V6.93a.524.524 0 0 0-.529-.53h-4.776a.524.524 0 0 0-.529.53v1.615H6.929a.524.524 0 0 0-.529.53.532.532 0 0 0 .529.53zm5.112-2.145h3.718v1.09h-3.718zM19.218 9.6L17.94 20.353H9.86L8.582 9.6h10.636z" class="cls-2" data-name="패스 78" transform="translate(-5.901 -6.4)"/>
<path id="패스_79" d="M47.5 50.6c.392 0 .7-.188.7-.429v-5.142c0-.241-.307-.429-.7-.429s-.7.188-.7.429v5.141c0 .242.307.43.7.43z" class="cls-3" data-name="패스 79" transform="translate(-41.212 -39.127)"/>
<path id="패스_80" d="M74.7 50.6c.392 0 .7-.188.7-.429v-5.142c0-.241-.307-.429-.7-.429s-.7.188-.7.429v5.141c0 .242.324.43.7.43z" class="cls-3" data-name="패스 80" transform="translate(-64.986 -39.127)"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="34" viewBox="0 0 45 34">
<defs>
<style>
.cls-1{fill:#fff;opacity:0}.cls-2{fill:#777}
</style>
</defs>
<g id="ico_delete_md" transform="translate(14.501 12.5)">
<path id="aV" d="M0 0h45v34H0z" class="cls-1" transform="translate(-14.501 -12.5)"/>
<g id="그룹_989" data-name="그룹 989" transform="translate(40.075 -1193.065)">
<path id="패스_650" d="M-25.534 1195.306h-4.174v-1.736a.4.4 0 0 0-.114-.285.4.4 0 0 0-.281-.12h-4.785a.371.371 0 0 0-.284.114.4.4 0 0 0-.12.282v1.749h-4.179a.383.383 0 0 0-.284.114.4.4 0 0 0-.12.282.411.411 0 0 0 .357.411h.739l1.369 11.446a.394.394 0 0 0 .393.354H-28a.422.422 0 0 0 .405-.355l1.369-11.445h.692a.405.405 0 0 0 .382-.422.4.4 0 0 0-.382-.389zm-8.95-1.336h3.968v1.34h-3.968zm6.135 13.148h-8.3l-1.307-11h10.916z" class="cls-2" data-name="패스 650"/>
<path id="패스_651" d="M-34.209 1204.26a.451.451 0 0 0 .45-.45v-4.6a.451.451 0 0 0-.45-.45.451.451 0 0 0-.45.45v4.6a.451.451 0 0 0 .45.45z" class="cls-2" data-name="패스 651"/>
<path id="패스_652" d="M-30.788 1204.26a.451.451 0 0 0 .45-.45v-4.6a.451.451 0 0 0-.45-.45.451.451 0 0 0-.45.45v4.6a.451.451 0 0 0 .45.45z" class="cls-2" data-name="패스 652"/>
</g>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="34" viewBox="0 0 45 34">
<defs>
<style>
.cls-1{fill:#fff;opacity:0}.cls-2{fill:#777}
</style>
</defs>
<g id="ico_edit_md" transform="translate(15.5 12.5)">
<path id="aV" d="M0 0h45v34H0z" class="cls-1" transform="translate(-15.5 -12.5)"/>
<path id="패스_649" d="M-33.219 1169.24l-.6-.6a2.16 2.16 0 0 0-1.537-.639 2.162 2.162 0 0 0-1.536.635l-9.135 9.135a.375.375 0 0 0-.1.169l-1.2 4.335a.389.389 0 0 0 .27.476.373.373 0 0 0 .207 0l4.335-1.2a.371.371 0 0 0 .169-.1l9.131-9.131a2.187 2.187 0 0 0-.004-3.08zm-13.181 12.584l.855-3.082 2.228 2.227zm3.809-1.221l-2.587-2.587 7.65-7.65 2.587 2.587zm8.827-8.832l-.631.631-2.587-2.587.632-.631a1.4 1.4 0 0 1 1.985 0l.6.6a1.407 1.407 0 0 1 0 1.986z" class="cls-2" data-name="패스 649" transform="translate(47.544 -1167.9)"/>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="14" viewBox="0 0 13 14">
<defs>
<style>
.cls-1{fill:#fff;opacity:0}.cls-2{fill:#1a1a1a}
</style>
</defs>
<g id="ico_i" transform="translate(-16 -1235)">
<path id="av" d="M0 0h13v14H0z" class="cls-1" transform="translate(16 1235)"/>
<path id="패스_330" d="M6.5 1.118a6.064 6.064 0 0 0 6.058-6.058A6.064 6.064 0 0 0 6.5-11 6.064 6.064 0 0 0 .442-4.94 6.064 6.064 0 0 0 6.5 1.118zM6.5.7A5.637 5.637 0 0 1 .858-4.94 5.637 5.637 0 0 1 6.5-10.582a5.637 5.637 0 0 1 5.642 5.642A5.637 5.637 0 0 1 6.5.7zm-.455-2.65h.923v-4.68h-.923zm.468-5.577a.565.565 0 0 0 .624-.559.578.578 0 0 0-.624-.585.57.57 0 0 0-.6.585.557.557 0 0 0 .6.559z" class="cls-2" data-name="패스 330" transform="translate(16 1247)"/>
</g>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment