Authored by xuqi

collected brand status

... ... @@ -747,7 +747,8 @@
brandHome: {
id: 0,
banner: ''
intro: '...'
intro: '...',
collected: true //是否已收藏
},
new: [
{
... ...
... ... @@ -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 {
... ...
... ... @@ -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">&#xe622;</span>
收藏
<span class="txt"></span>
</a>
</div>
<div id="intro-box" class="brand-intro-box hide">
... ...