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
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
7e39ee34a466c832b64c74ee9f09e33497050ef2
1 parent
ead6eefa
购物车页面添加商品的skn
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
template/m.yohobuy.com/partials/cart/good.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
template/m.yohobuy.com/partials/cart/good.phtml
View file @
7e39ee3
<div class="shopping-cart-good clearfix" data-id="{{id}}">
<div class="shopping-cart-good clearfix" data-id="{{id}}"
data-skn="{{skn}}"
>
{{#if inValid}}
<span class="few-tag-expire">失效</span>
{{/if}}
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
7e39ee3
...
...
@@ -224,8 +224,7 @@ class CartModel
$product
=
CartData
::
cartProductData
(
$uid
,
$skn
);
if
(
isset
(
$product
[
'code'
])
&&
$product
[
'code'
]
===
200
)
{
$result
[
'code'
]
=
200
;
$result
[
'data'
]
=
self
::
procGoodsDetail
(
$product
[
'data'
],
$num
);
$result
=
self
::
procGoodsDetail
(
$product
[
'data'
],
$num
);
}
return
$result
;
...
...
@@ -244,7 +243,7 @@ class CartModel
$product
=
CartData
::
giftProductData
(
$skn
,
$promotionId
);
if
(
isset
(
$product
[
'code'
])
&&
$product
[
'code'
]
===
200
)
{
$result
[
'data'
]
=
self
::
procGoodsDetail
(
$product
[
'data'
]);
$result
=
self
::
procGoodsDetail
(
$product
[
'data'
]);
}
return
$result
;
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
7e39ee3
...
...
@@ -195,7 +195,9 @@ class IndexController extends AbstractAction
$result
[
'num'
]
=
$num
;
}
$this
->
echoJson
(
$result
);
$this
->
_view
->
display
(
'gift-info'
,
array
(
'cartInfo'
=>
$result
));
}
// /*
...
...
@@ -223,7 +225,7 @@ class IndexController extends AbstractAction
$this
->
_view
->
display
(
'gift-info'
,
array
(
'promotionId'
=>
$promotionId
,
'cartInfo'
=>
$result
[
'data'
]
'cartInfo'
=>
$result
));
}
...
...
Please
register
or
login
to post a comment