Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
de5c322dc59fe0f40703e91aca15bcd691f18117
2 parents
0e1b1bef
f41808fc
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
static/js/cart/chose-panel.js
template/m.yohobuy.com/partials/cart/chose-panel.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/js/cart/chose-panel.js
View file @
de5c322
...
...
@@ -310,7 +310,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
if
(
2
===
$chosed
.
length
&&
0
===
$chosed
.
closest
(
'.zero-stock'
).
length
)
{
productSku
=
$curSizeBlock
.
data
(
'skuid'
);
promotionId
=
$
(
'
[data-id="'
+
productSku
+
'"]'
).
closest
(
'.advance-block'
).
data
(
'promotion-id'
);
promotionId
=
$
(
'
#promotionId'
).
val
(
);
if
(
confirming
)
{
return
false
;
}
...
...
template/m.yohobuy.com/partials/cart/chose-panel.phtml
View file @
de5c322
...
...
@@ -67,4 +67,5 @@
</div>
</div>
</div>
{
{/cartInfo
}
}
\ No newline at end of file
{
{/cartInfo
}
}
<input
id=
"promotionId"
type=
"hidden"
value=
"{{promotionId}}"
>
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
de5c322
...
...
@@ -243,7 +243,6 @@ class CartModel
$product
=
CartData
::
giftProductData
(
$skn
,
$promotionId
);
if
(
isset
(
$product
[
'code'
])
&&
$product
[
'code'
]
===
200
)
{
$result
[
'code'
]
=
200
;
$result
[
'data'
]
=
self
::
procGoodsDetail
(
$product
[
'data'
]);
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
de5c322
...
...
@@ -216,6 +216,7 @@ class IndexController extends AbstractAction
}
$this
->
_view
->
display
(
'gift-info'
,
array
(
'promotionId'
=>
$promotionId
,
'cartInfo'
=>
$result
[
'data'
]
));
}
...
...
Please
register
or
login
to post a comment