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
xuqi
9 years ago
Commit
9db9d76048ee2d92f586ec00ca659dc08d953213
1 parent
e806b801
collected brand status
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
docs/data-structure.md
static/sass/product/_list.scss
template/m.yohobuy.com/partials/product/list.phtml
docs/data-structure.md
View file @
9db9d76
...
...
@@ -747,7 +747,8 @@
brandHome: {
id: 0,
banner: ''
intro: '...'
intro: '...',
collected: true //是否已收藏
},
new:
[
{
...
...
static/sass/product/_list.scss
View file @
9db9d76
...
...
@@ -73,6 +73,7 @@
>
img
{
display
:
block
;
height
:
100%
;
width
:
100%
;
}
}
...
...
@@ -100,6 +101,18 @@
.iconfont
{
font-size
:
12px
;
}
&
.coled
{
opacity
:
0
.5
;
}
.txt
:after
{
content
:
'收藏'
}
&
.coled
.txt
:after
{
content
:
'已收藏'
}
}
.brand-intro-box
{
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
9db9d76
...
...
@@ -29,9 +29,9 @@
<a
class=
"btn-intro"
href=
"javascript:void(0);"
>
品牌介绍
</a>
<a
class=
"btn-col"
href=
"javascript:void(0);"
>
<a
class=
"btn-col
{{#if collected}} coled{{/if}}
"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
622
;</span>
收藏
<span
class=
"txt"
></span>
</a>
</div>
<div
id=
"intro-box"
class=
"brand-intro-box hide"
>
...
...
Please
register
or
login
to post a comment