Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
梁志锋
9 years ago
Commit
253f5cacfd253dc8d748537c3ffa4d8584531423
1 parent
8de80e6e
购物车勾选按钮
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 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 @
253f5ca
...
...
@@ -2,7 +2,11 @@
{{#if isSoldOut}}
<span class="few-tag-expire">失效</span>
{{^}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{#if isSelected}}
<span class="checkbox icon-cb-checked iconfont"></span>
{{^}}
<span class="checkbox icon-checkbox iconfont"></span>
{{/if}}
{{/if}}
<div class="info">
...
...
@@ -76,16 +80,4 @@
</span>
</div>
</div>
<!--<div class="opt-panel hide">
<div class="put-in-favorite">
<span class="iconfont"></span>
<span>移入</span>
收藏夹
</div>
<div class="del">
<span class="iconfont"></span>
删除
</div>
</div>-->
</div>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
253f5ca
...
...
@@ -718,7 +718,7 @@ class CartModel
// 结算数据
$result
[
'price'
]
=
Helpers
::
transPrice
(
$data
[
'shopping_cart_data'
][
'order_amount'
]);
$result
[
'activityPrice'
]
=
Helpers
::
transPrice
(
$data
[
'shopping_cart_data'
][
'discount_amount'
]);
$result
[
'count'
]
=
$data
[
'shopping_cart_data'
][
'goods_count'
];
$result
[
'count'
]
=
$data
[
'shopping_cart_data'
][
'
selected_
goods_count'
];
$result
[
'sumPrice'
]
=
Helpers
::
transPrice
(
$data
[
'shopping_cart_data'
][
'order_amount'
]);
}
while
(
0
);
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
253f5ca
...
...
@@ -45,7 +45,6 @@ class IndexController extends AbstractAction
'shoppingCartPage'
=>
true
,
'shoppingCart'
=>
CartModel
::
getCartData
(
$uid
,
$shoppingKey
)
);
// 渲染模板
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
Please
register
or
login
to post a comment