|
|
@@ -30,7 +30,7 @@
|
|
|
<div class="wrap">
|
|
|
<div class="content shopping_bag"> <!-- 페이지특정 클래스 = shop_bag -->
|
|
|
<div class="cont_head">
|
|
|
- <h2 class="t_c mb60">쇼핑백<button onclick="save();">이거이거</button></h2>
|
|
|
+ <h2 class="t_c mb60">쇼핑백</h2>
|
|
|
</div>
|
|
|
<div class="cont_body">
|
|
|
<!-- CONT-BODY -->
|
|
|
@@ -1201,6 +1201,28 @@
|
|
|
<!-- // container -->
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
+ /* xodud1202 수정 */
|
|
|
+
|
|
|
+ $(document).ready(function() {
|
|
|
+ // 장바구니 상품 정보 select
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ function selectCartList() {
|
|
|
+ $.ajax( {
|
|
|
+ type: "POST",
|
|
|
+ url : '/cart/goods/list',
|
|
|
+ dataType : 'json',
|
|
|
+ success : function(result) {
|
|
|
+ alert(1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /* // xodud1202 수정 */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
$(function(){
|
|
|
// 추천상품 슬라이드
|
|
|
@@ -1224,74 +1246,6 @@
|
|
|
$(this).toggleClass('active');
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
- function save() {
|
|
|
- // 일반 & deal 상품 장바구니 등록 (일반&딜 상품도 배열에 담아서 전송해주세요.)let compsList = [];
|
|
|
- /*let temp = new Object;
|
|
|
- let compsList = [];
|
|
|
- temp.goodsCd = "14373703";
|
|
|
- temp.optCd = "블랙140";
|
|
|
- temp.goodsQty = 1;
|
|
|
- temp.goodsType = "G056_D";
|
|
|
- temp.dealGoodsCd = "STY"
|
|
|
- temp.cartGb = "C";
|
|
|
- temp.afLinkCd = "afLinkCd";
|
|
|
- temp.ithrCd = "G027_ZZZ";
|
|
|
- temp.contentsLoc = "G028_YYY";
|
|
|
- temp.planDtlSq = "123";
|
|
|
- compsList.push(temp);
|
|
|
- addCart(compsList);*/
|
|
|
-
|
|
|
- // 세트상품 장바구니 (정렬순서는 TB_GOODS_COMPOSE.DISP_ORD ASC로 입력해주세요.)
|
|
|
- /*let length = 2;
|
|
|
- let compsList = [];
|
|
|
- for(let j = 0 ; j < length ; j++) {
|
|
|
- if(j == 0) {
|
|
|
- let temp = new Object;
|
|
|
- temp.goodsCd = "STYS000000016";
|
|
|
- temp.itemCd = '14373757';
|
|
|
- temp.optCd = "핑크120";
|
|
|
- temp.goodsQty = 9;
|
|
|
- temp.goodsType = "G056_S";
|
|
|
- temp.cartGb = "C";
|
|
|
- temp.afLinkCd = "afLinkCd";
|
|
|
- temp.ithrCd = "G027_ZZZ";
|
|
|
- temp.contentsLoc = "G028_YYY";
|
|
|
- temp.planDtlSq = "123";
|
|
|
- compsList.push(temp);
|
|
|
- } else if (j == 1) {
|
|
|
- let temp = new Object;
|
|
|
- temp.goodsCd = "STYS000000016";
|
|
|
- temp.itemCd = '14373758';
|
|
|
- temp.optCd = "블랙100";
|
|
|
- temp.goodsQty = 9;
|
|
|
- temp.goodsType = "G056_S";
|
|
|
- temp.cartGb = "C";
|
|
|
- temp.afLinkCd = "afLinkCd2";
|
|
|
- temp.ithrCd = "G027_ZZZ2";
|
|
|
- temp.contentsLoc = "G028_YYY2";
|
|
|
- temp.planDtlSq = "1232";
|
|
|
- compsList.push(temp);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- addCart(compsList);*/
|
|
|
- }
|
|
|
-
|
|
|
- function addCart(cartList) {
|
|
|
- let jsonData = JSON.stringify(cartList);
|
|
|
-
|
|
|
- $.ajax( {
|
|
|
- type: "POST",
|
|
|
- url : '/cart/save',
|
|
|
- data : jsonData,
|
|
|
- contentType: 'application/json',
|
|
|
- dataType : 'text',
|
|
|
- success : function(result) {
|
|
|
- alert(result);
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
</script>
|
|
|
</th:block>
|
|
|
</body>
|