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
OF1706
8 years ago
Commit
cecfc857215067e94bbe977fda23ab6c1ad48474
1 parent
741f2787
mini node same
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
template/www.yohobuy.com/partials/layout/page-header.phtml
web-static/js/header.js
web-static/sass/_header.css
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
cecfc85
...
...
@@ -162,10 +162,11 @@
\
{
\{#carData\
}
\}
<div
class=
"gobuy-notempty"
>
<div
class=
"goods-list-wrapper"
>
<h
3
class=
"rich-cart-title"
>最近加入的商品:</h
3
>
<ul
class=
"goods-list"
>
\
{
\{#main_goods\
}
\}
\
{
{#notzero
buy_number
}
}
<li
class=
"goods-item \{\{
@index\}\} \{\{#gt @index 4\}\} hide \{\{else\}\} test \{\{/gt
\}\}"
>
<li
class=
"goods-item \{\{
#gt @index 4\}\} hide \{\{/gt\}\}"
data-num=
"\{\{buy_number
\}\}"
>
<a
href=
"\{\{product_url\}\}"
>
<img
src=
"\{\{default_img\}\}"
alt=
""
class=
"goods-img"
/>
</a>
...
...
@@ -218,7 +219,7 @@
<div
class=
"go-full-cart"
>
<div>
<p
data-role=
"totalinfo"
data-total=
"
{{total}}"
>购物车里还有<span
data-role=
"last-num"
>
{
{total
}
}</span>件商品</p>
data-total=
"
\{\{total\}\}"
>购物车里还有<span
data-role=
"last-num"
>\
{
\{total\
}
\
}</span>件商品</p>
<a
href=
"//www.yohobuy.com/cart/cart"
>查看我的购物车</a>
</div>
</div>
...
...
web-static/js/header.js
View file @
cecfc85
...
...
@@ -1153,12 +1153,13 @@ function loadCartData() {
shoppingData
,
strK
;
$
.
get
Data
(
'//www.yohobuy.com/common/shoppingCart'
,
''
,
function
(
jsonData
)
{
$
.
get
JSON
(
'//www.yohobuy.com/cart/cart/minicart?callback=?'
,
{}
,
function
(
jsonData
)
{
if
(
cartTpl
===
''
)
{
cartTpl
=
handlebars
.
compile
(
$
(
'#mini-cart-tpl'
).
html
());
}
$
(
'#miniCartBox'
).
children
(
'.gobuy-wrapper'
).
html
(
cartTpl
({
carData
:
jsonData
carData
:
jsonData
.
data
}));
refreshCartNum
();
...
...
web-static/sass/_header.css
View file @
cecfc85
...
...
@@ -942,14 +942,23 @@
overflow
:
hidden
;
}
.rich-cart-title
{
font-size
:
16px
;
color
:
#000
;
line-height
:
16px
;
margin
:
0
26px
;
padding
:
18px
0
;
border-bottom
:
1px
solid
#dcdcdc
;
}
.goods-list-wrapper
{
width
:
100%
;
margin-bottom
:
19px
;
margin-bottom
:
0
;
overflow
:
hidden
;
}
.goods-list
{
margin-top
:
40px
;
margin-top
:
0
;
}
.goods-item
{
...
...
Please
register
or
login
to post a comment