Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王水玲
7 years ago
Commit
c0fe710ac9e4bff64b00c64df84112f1f8d2f57c
2 parents
a6966f7d
8ba84556
tab 修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
doraemon/views/partial/product/latest-walk.hbs
public/js/product/detail/latest-walk.js
public/scss/product/_latest-walk.css
doraemon/views/partial/product/latest-walk.hbs
View file @
c0fe710
...
...
@@ -11,11 +11,9 @@
<input
id=
"latest-walk-count"
type=
"hidden"
value=
"
{{
latestWalk
}}
"
>
<div
class=
"latest-walk"
>
<div
id=
"latest-walk-goods"
class=
"goods clearfix"
></div>
{{#
unless
latestWalk
}}
<p
class=
"null-data"
>
无最近浏览的商品
</p>
{{/
unless
}}
<p
class=
"null-data"
>
无最近浏览的商品
</p>
</div>
{{>
product
/
latest-walk-tpl
}}
...
...
public/js/product/detail/latest-walk.js
View file @
c0fe710
...
...
@@ -39,7 +39,8 @@ function fetchLatestWalk() {
// 若无最近浏览,请隐藏容器
if
(
res
.
length
===
0
)
{
$
(
'.latest-walk'
).
addClass
(
'hide'
);
$
(
'#latest-walk-goods'
).
addClass
(
'hide'
);
$
(
'.latest-walk .null-data'
).
show
();
return
;
}
for
(
i
=
0
;
i
<
res
.
length
;
i
++
)
{
...
...
public/scss/product/_latest-walk.css
View file @
c0fe710
...
...
@@ -101,6 +101,7 @@
font-size
:
15px
;
font-weight
:
bold
;
text-align
:
center
;
display
:
none
;
}
}
}
...
...
Please
register
or
login
to post a comment