Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
goodsshare_www_encrypt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
goodmorning
goodsshare
goodsshare_www_encrypt
Commits
df90ac65
Commit
df90ac65
authored
Jan 26, 2022
by
platyhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- encrypted
parent
2a97ea0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
modules/ptyshop/ptyshop.cart.status.common.view.html
modules/ptyshop/ptyshop.cart.status.common.view.html
+22
-20
No files found.
modules/ptyshop/ptyshop.cart.status.common.view.html
View file @
df90ac65
...
...
@@ -23,7 +23,8 @@
</head>
<script
type=
"text/javascript"
>
// var CDN = '//gcdn.sale09.kr/data/image/';
var
DEEP
=
'
intent://jasonpay_salepoison
'
;
// var DEEP = 'intent://jasonpay_salepoison';
var
DEEP
=
'
goodsshare://shop/item/
'
;
var
AGENT
=
'
android
'
;
// var CART = JSON.parse('{"uid":"a27b1d76-d4aa-3f11-b384-d6b8431e6a51","goods":[{"10036480":{"tidx":10036464,"giftyn":"N","timeyn":"N","checkyn":"N","title":"[\\uad6d\\ub0b4 \\uc7a5\\ub2f9 96\\uc6d0]\\ud074\\ub9b0\\uc564\\uc601 KF-AD \\ube44\\ub9d0\\ucc28\\ub2e8\\ub9c8\\uc2a4\\ud06c 50\\ub9e4 (\\ubc34\\ub4dc\\ud615\\/\\ub048\\ud615)","inven":0,"wmsid":"aboutgoods3","image1":"1614764692_1_651941049.jpg","image2":"1614764692_2_191304448.jpg","shipping":2500,"shippingprice":9600,"shippingcnt":0,"prepaid":"Y","fararea":0,"tprice":7300,"gprice":4800,"dprice":2500,"aprice":0,"type":"option","options":[{"cidx":15173205,"name":"1) KF-AD \\ubc34\\ub4dc\\ud615 50\\ub9e4","oldname":"1) KF-AD \\ubc34\\ub4dc\\ud615\\/50\\ub9e4","price":4800,"rprice":2750,"sort":1,"limit":0,"cnt":1,"buycnt":0,"inven":6621,"choice":[],"addbuy":[]}]}},{"10013863":{"tidx":10013394,"giftyn":"N","timeyn":"N","checkyn":"N","title":"[\\uc2ac\\ub808\\uc9c4\\uc800]\\ud074\\ub9ac\\ud504 \\ubcf4\\uc628 \\ubc29\\ud55c\\ud654 144","inven":0,"wmsid":"thatsmine","image1":"1608711130_1_2025833567.jpg","image2":"1608711130_2_1888598184.jpg","shipping":2500,"shippingprice":0,"shippingcnt":4,"prepaid":"Y","fararea":0,"tprice":0,"gprice":0,"dprice":0,"aprice":0,"type":"option","options":[{"cidx":13735103,"name":"1) \\ube14\\ub799 260","oldname":"1) \\ube14\\ub799\\/260","price":0,"rprice":14850,"sort":3,"limit":0,"cnt":1,"buycnt":0,"inven":0,"choice":[],"addbuy":[]}]}},{"10031868":{"tidx":10031733,"giftyn":"N","timeyn":"N","checkyn":"N","title":"[\\uc2dc\\uc98c\\uc624\\ud504] \\uc790\\uac00\\ubcf4\\uc628 \\ud6c4\\ub048\\ud6c4\\ub048 \\uc591\\ud138 \\uc790\\uc774\\uc5b8\\ud2b8 \\ud1a0\\ud37c","inven":1,"wmsid":"hongji","image1":"1606294404_1_1428737848.jpg","image2":"1606294404_2_1977380105.jpg","shipping":5000,"shippingprice":0,"shippingcnt":1,"prepaid":"Y","fararea":0,"tprice":24800,"gprice":19800,"dprice":5000,"aprice":0,"type":"option","options":[{"cidx":13734513,"name":"1) \\uc288\\ud37c\\uc2f1\\uae00","oldname":"1) \\uc288\\ud37c\\uc2f1\\uae00","price":19800,"rprice":13900,"sort":1,"limit":0,"cnt":1,"buycnt":1,"inven":1,"choice":[],"addbuy":[]}]}},{"10033606":{"tidx":10033511,"giftyn":"N","timeyn":"N","checkyn":"N","title":"\\uc11c\\uc6b8\\uc6b0\\uc720\\ub808\\ud2b8\\ub85c \\ubcf4\\uc628\\/\\ubcf4\\ub0c9 \\ud140\\ube14\\ub7ec 5\\uc885","inven":199,"wmsid":"bladcompany","image1":"1609234409_1_1763495530.jpg","image2":"1609234409_2_1926604875.jpg","shipping":2500,"shippingprice":0,"shippingcnt":0,"prepaid":"Y","fararea":1,"tprice":22300,"gprice":19800,"dprice":2500,"aprice":0,"type":"option","options":[{"cidx":13716208,"name":"3) \\ubc00\\ud06c\\ub4dc\\ub78d","oldname":"3) \\ubc00\\ud06c\\ub4dc\\ub78d","price":19800,"rprice":14850,"sort":3,"limit":0,"cnt":1,"buycnt":0,"inven":199,"choice":[],"addbuy":[]}]}}],"soldout":true}');
var
CART
=
JSON
.
parse
(
'
<?=json_encode($cartInfo, JSON_UNESCAPED_UNICODE)?>
'
);
...
...
@@ -53,8 +54,8 @@
return
this
;
};
$
.
fn
.
subsum
=
function
(
opt
)
{
console
.
log
(
"
subsum() opt =
"
);
console
.
log
(
opt
);
//
console.log("subsum() opt = ");
//
console.log(opt);
this
.
find
(
'
.sub_tprice
'
).
data
(
'
price
'
,
opt
.
tprice
).
text
(
$number
(
opt
.
tprice
)
+
"
원
"
);
this
.
find
(
'
.sub_gprice
'
).
data
(
'
price
'
,
opt
.
gprice
).
text
(
$number
(
opt
.
gprice
)
+
"
원
"
);
if
(
opt
.
prepaid
===
'
Y
'
)
{
...
...
@@ -75,15 +76,15 @@
gprice
+=
parseInt
(
item
.
find
(
'
.sub_gprice
'
).
data
(
'
price
'
));
dprice
+=
parseInt
(
item
.
find
(
'
.sub_dprice
'
).
data
(
'
price
'
));
console
.
log
(
"
item =========
"
);
console
.
log
(
item
.
find
(
'
.goodscheck
'
).
data
(
'
prepaid
'
));
//
console.log("item =========");
//
console.log(item.find('.goodscheck').data('prepaid'));
if
(
item
.
find
(
'
.goodscheck
'
).
data
(
'
prepaid
'
)
===
'
Y
'
)
{
prepaidY
=
true
;
console
.
log
(
'
prepaidY = true
'
);
//
console.log('prepaidY = true');
}
else
{
prepaidN
=
true
;
console
.
log
(
'
prepaidN = true
'
);
//
console.log('prepaidN = true');
}
});
...
...
@@ -91,7 +92,7 @@
$
(
'
#total_tprice
'
).
text
(
$number
(
tprice
)
+
"
원
"
);
$
(
'
#total_gprice
'
).
text
(
$number
(
gprice
)
+
"
원
"
);
console
.
log
(
"
prepaidY =
"
+
prepaidY
+
"
, prepaidN =
"
+
prepaidN
);
//
console.log("prepaidY = " + prepaidY + ", prepaidN = " + prepaidN);
if
(
prepaidY
===
true
&&
prepaidN
===
true
)
{
$
(
'
.prepaid
'
).
show
();
...
...
@@ -111,7 +112,7 @@
var
newcart
=
{
"
uid
"
:
CART
.
uid
,
"
goods
"
:
{}};
this
.
each
(
function
()
{
item
=
$
(
this
);
console
.
log
(
item
);
//
console.log(item);
var
idx
=
item
.
find
(
'
.goodscheck
'
).
data
(
'
idx
'
);
var
prepaid
=
item
.
find
(
'
.goodscheck
'
).
data
(
'
prepaid
'
);
...
...
@@ -168,8 +169,8 @@
// data: JSON.stringify(newcart),
data
:
newcart
,
success
:
function
(
request
)
{
console
.
log
(
"
/cart/addCart/ type =
"
+
type
+
"
request =============
"
);
console
.
log
(
request
);
//
console.log("/cart/addCart/ type = " + type + " request =============");
//
console.log(request);
if
(
type
===
'
goodsremove
'
||
type
===
'
remove
'
||
type
===
'
soldout
'
)
{
window
.
location
.
reload
(
true
);
return
true
;
...
...
@@ -183,8 +184,8 @@
}
for
(
var
idx
in
request
.
cart
)
{
console
.
log
(
"
idx =
"
+
idx
+
"
, request.cart =
"
);
console
.
log
(
request
.
cart
);
//
console.log("idx = " + idx + ", request.cart = ");
//
console.log(request.cart);
$
(
'
#check_
'
+
idx
).
closest
(
'
.item
'
).
subsum
(
request
.
cart
[
idx
]);
}
},
...
...
@@ -197,7 +198,7 @@
//$('.wrap-loading').hide();
},
error
:
function
(
request
,
status
,
_error
)
{
console
.
log
(
'
code:
'
+
request
.
status
+
"
\n
"
+
'
message:
'
+
request
.
responseText
+
"
\n
"
+
'
error:
'
+
_error
);
//
console.log('code: ' + request.status + "\n" + 'message: ' + request.responseText + "\n" + 'error: ' + _error);
}
});
return
this
;
...
...
@@ -284,10 +285,10 @@
//수량 선택 상품
var
choice
=
null
;
console
.
log
(
'
goods[
'
+
idx
+
'
] =
'
);
console
.
log
(
goods
[
idx
]);
//
console.log('goods[' + idx + '] = ');
//
console.log(goods[idx]);
var
isTodayCart
=
goods
[
idx
].
checkyn
===
'
Y
'
;
console
.
log
(
'
isTodayCart =
'
+
isTodayCart
);
//
console.log('isTodayCart = ' + isTodayCart);
if
(
opt
.
choice
.
length
>
0
)
{
choice
=
$
(
'
<div />
'
,
{
"
class
"
:
"
panel-choice
"
});
for
(
var
j
in
opt
.
choice
)
{
...
...
@@ -377,8 +378,8 @@
}
}
console
.
log
(
"
opt ====
"
);
console
.
log
(
opt
);
//
console.log("opt ====");
//
console.log(opt);
//수량 상품
var
strname
=
opt
.
oldname
;
...
...
@@ -472,7 +473,8 @@
if
(
AGENT
===
'
web
'
)
{
window
.
location
.
href
=
'
/goods/get/?idx=
'
+
idx
+
'
&uid=
'
+
CART
.
uid
;
}
else
{
window
.
location
.
href
=
DEEP
+
"
?idx=
"
+
idx
+
"
#Intent;scheme=view;end
"
;
// window.location.href = DEEP + "?idx=" + idx + "#Intent;scheme=view;end";
window
.
location
.
href
=
DEEP
+
"
?productId=
"
+
idx
;
}
})
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment