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
xuqi
9 years ago
Commit
a79dfef1b27cff3592f1301141d67e0b3de8da2f
1 parent
34f42d51
suspend cart count
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
static/js/product/suspend-cart.js
template/m.yohobuy.com/partials/product/suspend-cart.phtml
static/js/product/suspend-cart.js
View file @
a79dfef
...
...
@@ -13,7 +13,7 @@ $.ajax({
url
:
'/cart/index/count'
,
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$cart
.
find
(
'.cart-count'
).
html
(
data
.
data
.
cart_good_count
).
removeClass
(
'hide'
);
$cart
.
find
(
'.cart-count'
).
html
(
data
.
data
.
cart_good
s
_count
).
removeClass
(
'hide'
);
}
}
});
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/suspend-cart.phtml
View file @
a79dfef
...
...
@@ -2,5 +2,5 @@
<a href={{cartUrl}}>
<span class="iconfont"></span>
</a>
<span class="cart-count hide">
1
</span>
<span class="cart-count hide">
0
</span>
</div>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment