Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
shuaiguo
5 years ago
Commit
e651f55aef2ec9fcd776869a953a18ad99cc7845
2 parents
83c67c91
fb8384cd
Merge branch 'refs/heads/hotfix/cart' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
apps/cart/controllers/cart.js
package.json
public/js/cart/cart-action.js
public/js/cart/cart-color-panel.js
apps/cart/controllers/cart.js
View file @
e651f55
...
...
@@ -298,8 +298,10 @@ const modifyProductNum = (req, res, next) => {
let
cartDelList
=
helper
.
getCartDelList
(
req
,
res
);
let
batchNo
=
req
.
body
.
batch_no
||
null
;
let
activityId
=
req
.
body
.
activity_id
||
null
;
let
poolType
=
(
+
req
.
body
.
pool_type
)
||
null
;
if
(
activityId
)
{
if
(
activityId
&&
batchNo
&&
poolType
===
3
)
{
// 套餐商品计算
return
req
.
ctx
(
service
).
bundleNumData
({
uid
:
uid
,
batch_no
:
batchNo
,
...
...
package.json
View file @
e651f55
{
"name"
:
"yohobuy-node"
,
"version"
:
"6.9.1
6
"
,
"version"
:
"6.9.1
8
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/js/cart/cart-action.js
View file @
e651f55
...
...
@@ -482,7 +482,8 @@ Cart = {
capi
.
cartItemNumChg
(
$
.
extend
(
countJSON
,
{
sku
:
$item
.
data
(
'id'
),
batch_no
:
$item
.
data
(
'batch-no'
),
activity_id
:
$item
.
data
(
'pool-id'
)
activity_id
:
$item
.
data
(
'pool-id'
),
pool_type
:
$item
.
data
(
'pool-type'
)
}));
if
(
!
$btn
.
hasClass
(
'cart-item-checked'
)
&&
!
$btn
.
hasClass
(
'presale'
))
{
...
...
public/js/cart/cart-color-panel.js
View file @
e651f55
...
...
@@ -83,6 +83,7 @@ ColorPanelAction = {
var
promotionId
=
$item
.
data
(
'promotionid'
);
var
poolId
=
$item
.
data
(
'pool-id'
);
var
batchNo
=
$item
.
data
(
'batch-no'
);
var
poolType
=
$item
.
data
(
'pool-type'
);
// 没有重新选择颜色-尺码,则不用重新请求显示
if
(
!
oldSku
||
!
newSku
||
oldSku
===
newSku
)
{
...
...
@@ -103,7 +104,7 @@ ColorPanelAction = {
};
// 套餐编辑尺码
if
(
poolId
)
{
if
(
poolId
&&
+
poolType
===
3
)
{
$
.
extend
(
swapData
,
{
activity_id
:
poolId
,
batch_no
:
batchNo
...
...
Please
register
or
login
to post a comment