Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
0175898e99a6f92168201473e4084f2a9c5690e1
1 parent
9b7092d4
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
static/js/cart/cart.js
static/js/cart/good.js
static/sass/cart/_chose-panel.scss
static/js/cart/cart.js
View file @
0175898
...
...
@@ -79,6 +79,9 @@ if ('advance' === cartType) {
$cartContent
.
toggleClass
(
'hide'
);
$
(
'#common-cart-nav'
).
removeClass
(
'active'
);
$
(
'#presell-cart-nav'
).
addClass
(
'active'
);
$
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
}
if
(
$
(
'.cart-nav'
).
length
>
0
)
{
...
...
@@ -90,6 +93,10 @@ if ($('.cart-nav').length > 0) {
return
;
}
$
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
if
(
cartType
===
'ordinary'
)
{
cartType
=
'advance'
;
$
(
'#cartType'
).
val
(
'advance'
);
...
...
static/js/cart/good.js
View file @
0175898
...
...
@@ -22,9 +22,11 @@ lazyLoad({
try_again_css
:
'good-failure'
});
$
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
setTimeout
(
function
()
{
$
(
'.shopping-cart-good .name'
).
each
(
function
()
{
this
.
mlellipsis
(
2
);
});
},
0
);
function
GoodInfo
(
properties
)
{
this
.
goods_type
=
properties
.
goods_type
;
...
...
static/sass/cart/_chose-panel.scss
View file @
0175898
...
...
@@ -58,6 +58,7 @@
}
.sale-price
{
color
:
#e10
;
margin-right
:
pxToRem
(
15px
);
&
.no-price
{
color
:
#000
;
...
...
Please
register
or
login
to post a comment