Skip to content

Commit

Permalink
add footer & almost complete
Browse files Browse the repository at this point in the history
  • Loading branch information
taomas committed Aug 23, 2016
1 parent ccbbadb commit 74596e4
Show file tree
Hide file tree
Showing 2 changed files with 275 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/assets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ ul {
.clearfix {
*+height: 1%;
}

a {
text-decoration: none;
color: #333;
}
272 changes: 270 additions & 2 deletions src/components/TempFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,141 @@
</li>
</ul>
</div>
<div class="footer-info">
<ul class="footer-content clearfix">
<li class="footer-item">
<article class="col-links">
<h3>
<a href="#">帮助中心</a>
</h3>
<p>
<a href="#">账户管理</a>
</p>
<p>
<a href="#">购物指南</a>

</p>
<p>
<a href="#">订单操作</a>
</p>
</article>
</li>
<li class="footer-item">
<article class="col-links">
<h3>帮助中心</h3>
<p>
账户管理
</p>
<p>
购物指南
</p>
<p>
订单操作
</p>
</article>
</li>
<li class="footer-item">
<article class="col-links">
<h3>帮助中心</h3>
<p>
账户管理
</p>
<p>
购物指南
</p>
<p>
订单操作
</p>
</article>
</li>
<li class="footer-item">
<article class="col-links">
<h3>帮助中心</h3>
<p>
账户管理
</p>
<p>
购物指南
</p>
<p>
订单操作
</p>
</article>
</li>
<li class="footer-item">
<article class="col-links">
<h3>帮助中心</h3>
<p>
账户管理
</p>
<p>
购物指南
</p>
<p>
订单操作
</p>
</article>
</li>
<li class="footer-item">
<article class="col-links">
<h3>帮助中心</h3>
<p>
账户管理
</p>
<p>
购物指南
</p>
<p>
订单操作
</p>
</article>
</li>
<li class="footer-last-item">
<div class="col-content">
<h3 class="phone-number">400-100-5678</h3>
<p class="phone-desc">
周一至周日 8:00-18:00<br/>(仅收市话费)
</p>
<span class="server-btn">
<i></i>
24小时在线客服
</span>
</div>
</li>
</ul>
</div>
<div class="site-info">
<div class="footer-explan clearfix">
<img class="logo-img" src="http://s01.mifile.cn/i/logo-footer.png?v2" alt="" />
<div class="explan-content">
<ul class="links clearfix">
<li class="link-item">小米商城</li>
<li class="link-item">MIUI</li>
<li class="link-item">米聊</li>
<li class="link-item">多看书城</li>
<li class="link-item">小米路由器</li>
<li class="link-item">视频电话</li>
<li class="link-item">小米后院</li>
<li class="link-item">小米天猫店</li>
<li class="link-item">小米淘宝直营店</li>
<li class="link-item">小米网盟</li>
<li class="link-item">问题反馈</li>
<li class="link-item">Select Region</li>
</ul>
<p class="explan-txt">
©<a href="#">mi.com</a> 京ICP证110507号 京ICP备10046444号 <a href="#">京公网安备11010802020134号 </a> <a href="#">京网文[2014]0059-0009号</a><br/>
违法和不良信息举报电话:185-0130-1238,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试
</p>
</div>
<img class="logo-explan logo-explan-first" src="http://privacy-policy.truste.com/privacy-seal/seal?rid=4fc28a8c-6822-4980-9c4b-9fdc69b94eb8" alt="" />
<img class="logo-explan" src="http://s01.mifile.cn/i/v-logo-2.png" alt="" />
<img class="logo-explan" src="http://s01.mifile.cn/i/v-logo-1.png" alt="" />
<img class="logo-explan" src="http://s01.mifile.cn/i/v-logo-3.png" alt="" />
</div>
<p class="footer-desc">
探索黑科技,小米为发烧而生
</p>
</div>
</div>
</div>
</template>
Expand All @@ -33,8 +168,14 @@
export default {
data () {
return {
service: [{
}]
footerItems: [
{items: ['帮助中心', '账户管理', '购物指南', '订单操作']},
{items: ['服务支持', '售后政策', '自助服务', '相关下载']},
{items: ['线下门店', '小米之家', '服务网点', '零售网点']},
{items: ['关于小米', '了解小米', '加入小米', '联系我们']},
{items: ['关于小米', '了解小米', '加入小米', '联系我们']},
{items: ['关于小米', '了解小米', '加入小米', '联系我们']}
]
}
}
}
Expand All @@ -50,6 +191,7 @@ export default {
.footer-service {
padding: 27px 0;
border-bottom: 1px solid #e0e0e0;
}
.service {
.service-item {
Expand All @@ -59,12 +201,138 @@ export default {
line-height: 27px;
font-size: 16px;
color: #616161;
padding: 0 40px;
box-sizing: border-box;
border-right: 1px solid #e0e0e0;
&:nth-last-child(1) {
border-right: 0;
}
.icon {
display: inline-block;
height: 27px;
line-height: 27px;
font-size: 24px;
margin-right: 10px;
}
}
}
.footer-info {
padding: 40px 0;
}
.footer-content {
.footer-item {
float: left;
width: 160px;
height: 120px;
a {
text-decoration: none;
color: #333;
}
&:nth-last-child(2) {
padding-right: 20px;
border-right: 1px solid #e0e0e0;
}
h3 {
font-size: 14px;
font-weight: normal;
margin-bottom: 26px;
}
p {
font-size: 12px;
margin-top: 10px;
}
}
.footer-last-item {
float: left;
.col-content {
margin-left: 40px;
.phone-number {
margin: 0 0 5px;
font-size: 22px;
text-align: center;
margin-bottom: 5px;
color: #ff6700;
}
.phone-desc {
font-size: 12px;
line-height: 1.5;
text-align: center;
color: #616161;
}
.server-btn {
display: block;
width: 120px;
height: 30px;
line-height: 30px;
font-size: 12px;
text-align: center;
margin: 0 auto;
border: 1px solid #ff6700;
color: #ff6700;
&:hover {
background: #ff6700;
color: #fff;
}
}
}
}
}
.footer-explan {
.logo-img {
float: left;
width: 57px;
height: 57px;
}
.explan-content {
float: left;
padding-left: 10px;
.links {
.link-item {
float: left;
padding: 0 5px;
font-size: 12px;
color: #757575;
border-right: 1px solid #757575;
&:nth-last-child(1) {
border-right: 0;
}
}
}
}
.explan-txt {
margin: 10px 0 0 5px;
line-height: 18px;
font-size: 12px;
color: #b0b0b0;
a {
text-decoration: none;
color: #b0b0b0;
&:hover {
color: #ff6700;
}
}
}
.logo-explan {
width: 85px;
height: 28px;
&.logo-explan-first {
margin-left: 50px;
}
}
}
.site-info {
padding: 30px 0;
.footer-desc {
text-align: left;
text-indent: -9999em;
overflow: hidden;
width: 267px;
height: 19px;
margin: 30px auto 0;
background: url('http://s01.mifile.cn/i/slogan2016.png') center center no-repeat;
}
}
</style>

0 comments on commit 74596e4

Please sign in to comment.