Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:仿得非常像, 你自己是不是也有成就感, 有种能进大厂的冲动了
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>公共头部组件</title>
<link rel="stylesheet" href="public-header.css">
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
</head>
<body>
<!-- 头部 -->
<div class="public-header">
<!-- 左侧导航 -->
<div class="left-link">
<a href="#">网站首页</a>
<a href="#">专题</a>
<a href="#">网站导航</a>
<a href="#">二手商品</a>
<a href="#">讨论区</a>
</div>
<!-- 左侧导航 end -->
<!-- 右侧按钮 -->
<div class="right-link">
<!-- 用户登录 -->
<a href="#">
<i class="iconfont icon-huiyuan2"></i>用户登录
</a>
<!-- 免费注册 -->
<a href="#">免费注册</a>
</div>
<!-- 右侧按钮 end -->
</div>
<!-- 头部 end -->
</body>
</html>
@import url(../public_style.css);
.public-header{
width: 100vw;
height: 44px;
background-color: black;
padding: 0 20px;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
box-sizing: border-box;
}
/*左侧导航*/
.public-header > .left-link{
display: flex;
flex-flow: row nowrap;
}
/*左侧导航 链接文字*/
.public-header > .left-link > a{
color: #ccc;
font-size: 12px;
padding:0 10px;
height: 44px;
line-height: 44px;
}
.public-header > .left-link > a:hover{
background-color: #fff;
color: #000;
}
/*左侧导航 end*/
/*右侧按钮*/
.right-link{
display: flex;
flex-flow: row nowrap;
}
/*右侧按钮 链接文字*/
.public-header > .right-link > a{
color: #ccc;
font-size: 12px;
padding:0 10px;
height: 44px;
line-height: 44px;
}
.public-header > .right-link > a >i{
margin-right: 10px;
}
/*右侧按钮 end*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>公共尾部组件</title>
<link rel="stylesheet" href="public-footer.css">
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
</head>
<body>
<!-- 尾部 -->
<div class="public-footer">
<!-- 左侧 -->
<div class="footer-left">
<!-- 友情链接 -->
<div class="left-link">
<a href="#">简介</a>
<a href="#">联系我们</a>
<a href="#">招聘信息</a>
<a href="#">友情链接</a>
<a href="#">用户服务协议</a>
<a href="#">隐私权声明</a>
<a href="#">法律投诉声明</a>
</div>
<!-- 友情链接 end -->
<!-- 版权声明 -->
<div class="left-info">
<!-- LOGO -->
<span>LOGO</span>
<!-- 版权声明文字 -->
<div>
<span>2019 fengniao.com. All rights reserved . 安徽闹着玩有限公司(无聊网)版权所有</span>
<span>皖ICP证150110号 京ICP备14323013号-2 皖公网安备110108024357788号</span>
<span>违法和不良信息举报电话: 0551-1234567 举报邮箱: admin@baidu.com</span>
</div>
</div>
<!-- 版权声明 end -->
</div>
<!-- 左侧 end -->
<!-- 右侧 -->
<div class="footer-right">
<span>关注公众号</span>
<img src="../../../images/erwei-code.png">
</div>
<!-- 右侧 end -->
</div>
<!-- 尾部 end -->
</body>
</html>
@import url(../public_style.css);
.public-footer{
width: 100vw;
height: 190px;
background-color: #282c31;
padding:20px;
color: #ccc;
display: flex;
flex-flow: row nowrap;
font-size: 13px;
color: #ccc;
}
/*左侧*/
.public-footer > .footer-left{
width: 60vw;
height: 190px;
display: flex;
flex-flow: column wrap;
border-right: 1px solid #000;
box-sizing: border-box;
padding: 20px;
}
/*友情链接*/
.public-footer > .footer-left > .left-link{
width: 60vw;
flex-flow: row nowrap;
justify-content: space-around;
}
.public-footer > .footer-left > .left-link > a{
padding: 5px 15px;
color: #ccc;
}
/*版权声明*/
.public-footer > .footer-left > .left-info{
display: flex;
flex-flow: row nowrap;
justify-content: space-around;
margin-top: 10px;
}
/*LOGO*/
.public-footer > .footer-left > .left-info > span{
font-size: 30px;
line-height: 120px;
}
/*版权声明文字*/
.public-footer > .footer-left > .left-info > div{
display: flex;
flex-direction: column;
align-content: space-around;
}
.public-footer > .footer-left > .left-info > div > span{
line-height: 40px;
}
/*版权声明 end*/
/*左侧 end*/
/*右侧*/
.public-footer > .footer-right{
display: flex;
flex-direction: column;
margin-left: 40px;
}
.public-footer > .footer-right > span{
margin-left: 20px;
}
.public-footer > .footer-right > img{
margin-top: 10px;
width: 110px;
height: 110px;
}
/*右侧 end*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>购物车列表组件</title>
<link rel="stylesheet" href="shop-car.css">
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
</head>
<body>
<!-- 购物车列表组件 -->
<div class="shop-car">
<!-- 选项卡 -->
<div class="tab">
<div class="tab-item">
<span>全部商品</span>
<span>2</span>
</div>
<div class="tab-item">
<span>降价商品</span>
<span>0</span>
</div>
<div class="tab-item">
<span>库存紧张</span>
<span>0</span>
</div>
<div>
<span>已选商品(不含运费)</span>
<span>0.00</span>
<button type="button">结算</button>
</div>
</div>
<!-- 选项卡 end -->
<!-- 购物车标题 -->
<div class="car-title">
<span>
<input type="checkbox" name="all_check" id="all_check" />
<label for="all_check">全选</label>
</span>
<span>商品信息</span>
<span>单价</span>
<span>数量</span>
<span>金额</span>
<span>操作</span>
</div>
<!-- 购物车标题 end -->
<!-- 购物车列表 -->
<div class="car-list">
<div class="car-list-item">
<span>
<input type="checkbox" name="shop_check[]" id="shop_check_1" />
<label for="shop_check_1">店铺:<span>雨色可可</span></label>
</span>
<div class="car-list-goods">
<input type="checkbox" name="goods_check[]" id="goods_check_1" />
<img src="../../../images/4b18efd7c19db04e.jpg" alt="">
<span>颜域女装百搭气质雪纺衬衫秋装2019年新款</span>
<span class="goods-type">颜色分类:灰</span>
<span class="goods-old-price">¥48.00</span>
<input type="number" min="1" class="goods-number">
<span class="goods-price">¥47.00</span>
<a href="#">删除</a>
</div>
</div>
</div>
<!-- 购物车列表 end -->
<!-- 购物车结算 -->
<div class="car-settle">
<span>
<input type="checkbox" name="all_check_settle" id="all_check_settle" />
<label for="all_check_settle">全选</label>
</span>
<span>删除</span>
<span>移入收藏夹</span>
<span>分享</span>
<div>
<span>已选商品 <span>0</span> 件</span>
<span>合计(不含运费):</span>
<span>0.00</span>
<button type="button">结算</button>
</div>
</div>
<!-- 购物车结算 end -->
</div>
<!-- 购物车列表组件 end -->
</body>
</html>
@import url(../../public/public_style.css);
.shop-car{
width: 1200px;
margin: auto;
}
/*选项卡*/
.shop-car > .tab{
width: 1200px;
height:50px;
display: grid;
grid-template-columns: 150px 150px 150px 1fr;
grid-template-rows: 50px;
}
.shop-car > .tab > .tab-item{
place-self: center;
font-size: 20px;
height:50px;
width: 150px;
text-align: center;
line-height: 50px;
border-bottom: 2px solid #ccc;
}
.shop-car > .tab > .tab-item:first-child{
border-bottom: 2px solid #ff5500;
color: #ff5500;
}
.shop-car > .tab > .tab-item:hover{
border-bottom: 2px solid #ff5500;
color: #ff5500;
}
.shop-car > .tab > .tab-item > span:last-child{
font-size: 15px;
color: #ff5500;
}
.shop-car > .tab > div:last-child{
width: 100%;
height: 50px;
font-size: 15px;
border-bottom: 2px solid #ccc;
text-align: right;
line-height: 50px;
}
.shop-car > .tab > div:last-child > span:nth-child(2){
color: #ff5500;
font-weight: bold;
}
.shop-car > .tab > div:last-child > button{
width: 70px;
height: 30px;
background-color: #ff5500;
color: #fff;
border: none;
border-radius: 5px;
}
/*选项卡 end*/
/*购物车标题*/
.shop-car > .car-title{
display: grid;
grid-template-columns: 180px 1fr 150px 150px 150px 150px;
height: 90px;
align-items: center;
font-size: 13px;
padding: 0 10px;
box-sizing: border-box;
}
/*购物车标题 end*/
/*购物车列表*/
.shop-car > .car-list > .car-list-item{
width: 1200px;
height: 170px;
display: grid;
grid-template-rows: 30px 1fr;
}
.shop-car > .car-list > .car-list-item > span{
padding: 0 10px;
box-sizing: border-box;
font-size: 13px;
}
.shop-car > .car-list > .car-list-item > .car-list-goods{
width: 100%;
height: 120px;
background-color: #fbfbfb;
border: 1px solid #ccc;
display: grid;
grid-template-columns: 50px 100px 1fr 150px 150px 150px 150px 150px;
padding-top:20px;
grid-column-gap: 10px;
font-size: 13px;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > img{
width: 100px;
height: 100px;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > .goods-type{
color: #ccc;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > .goods-old-price{
font-weight: bold;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > .goods-number{
height: 20px;
width: 70px;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > .goods-price{
font-weight: bold;
color: #ff5500;
}
.shop-car > .car-list > .car-list-item > .car-list-goods > a{
color: #000;
}
/*购物车列表 end*/
/*购物车结算*/
.shop-car > .car-settle{
width: 1200px;
height: 60px;
display: grid;
grid-template-columns: 100px 80px 80px 80px 1fr;
font-size: 13px;
background-color: #E7ECF0;
align-items: center;
margin-top: 20px;
padding-left: 10px;
box-sizing: border-box;
}
.shop-car > .car-settle > div{
justify-self: flex-end;
}
.shop-car > .car-settle > div > span:first-child > span{
font-size: 20px;
color: #ff5500;
font-weight: bold;
}
.shop-car > .car-settle > div > span:nth-child(3){
font-size: 25px;
color: #ff5500;
font-weight: bold;
}
.shop-car > .car-settle > div > button{
background-color: #ff5500;
color:#fff;
height: 60px;
width: 100px;
border: none;
margin-left: 10px;
}
/*购物车结算 end*/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>结算列表组件</title>
<link rel="stylesheet" href="shop-buy.css">
<link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
</head>
<body>
<!-- 结算列表组件 -->
<div class="shop-buy">
<!-- 收货地址 -->
<div class="address-list">
<div class="title">
<h4>确认收货地址</h4>
<a href="#">管理收货地址</a>
</div>
<div class="list-item active">
<span>寄送至</span>
<div>
<input type="radio" name="address" id="address_1" checked>
<label for="address_1">XX省 XX市 XX区 XX街道 XX收</label>
</div>
<a href="#">修改本地址</a>
</div>
<div class="list-item">
<span></span>
<div>
<input type="radio" name="address" id="address_2">
<label for="address_2">XX省 XX市 XX区 XX街道 XX收</label>
</div>
</div>
</div>
<!-- 收货地址 end -->
<!-- 确认订单 end -->
<div class="order-list">
<div class="title">
<h4>确认订单信息</h4>
</div>
<div class="order-title">
<span>店铺宝贝</span>
<span>商品属性</span>
<span>单价</span>
<span>数量</span>
<span>优惠方式</span>
<span>小计</span>
</div>
<div class="order-good-list">
<div class="order-good-list-item">
<div class="shop-info">
<span>店铺:雨色可可</span>
<span>卖家:小可</span>
</div>
<div class="good-info">
<div>
<img src="../../../images/4b18efd7c19db04e.jpg" alt="">
<span>颜域女装百搭气质雪纺衬衫秋装2019年新款</span>
</div>
<span class="goods-type">颜色分类:灰</span>
<span class="goods-old-price">¥48.00</span>
<span>1</span>
<span>无优惠</span>
<span class="goods-price">¥47.00</span>
</div>
<div class="order-express">
<div class="user-note">
<label for="user_note">卖家留言:</label>
<textarea id="user_note"></textarea>
</div>
<div>
<span>运送方式:普通配送 快递 免邮</span>
<span class="price">0.00</span>
</div>
<div>
<div>
<span>运费险:</span>
<span></span>
<span>运费险</span>
<span>退换货可赔付10元</span>
</div>
<span>1.50</span>
</div>
<div>
<span>店铺合计(含运费):</span>
<span class="price">¥48.00</span>
</div>
</div>
</div>
</div>
</div>
<!-- 确认订单 end -->
<!-- 支付方式 -->
<div class="pay-type">
<span>
<input type="checkbox" name="pay_type[]" id="pay_type_1">
<label for="pay_type_1">朋友代付</label>
</span>
<span>
<input type="checkbox" name="pay_type[]" id="pay_type_2">
<label for="pay_type_2">匿名支付</label>
</span>
</div>
<!-- 支付方式 end -->
<!-- 支付信息 -->
<div class="pay-info">
<div>
<span>
<span>实付款:</span>
<span class="price">¥48.00</span>
</span>
<span><span>寄送至:</span>XX省 XX市 XX区 XX街道</span>
<span><span>收货人:</span>XX 18888888888</span>
</div>
<div>
<a href="#"><i class="iconfont icon-shangyibu"></i>返回购物车</a>
<button>提交订单</button>
</div>
</div>
<!-- 支付信息 end -->
</div>
<!-- 结算列表组件 end -->
</body>
</html>
@import url(../../public/public_style.css);
.shop-buy{
width: 1200px;
margin: auto;
}
/*标题*/
.title{
display: flex;
justify-content: space-between;
border-bottom: 1px solid #ccc;
padding: 5px 0;
margin-top: 20px;
}
/*收货地址*/
.shop-buy > .address-list{
display: flex;
flex-flow: column wrap;
}
.shop-buy > .address-list > .list-item{
margin-top: 10px;
width: 1200px;
height: 30px;
padding: 0 20px;
box-sizing: border-box;
display: grid;
grid-template-columns: 80px 1fr 80px;
font-size: 13px;
line-height: 30px;
}
.shop-buy > .address-list > .list-item:hover{
background-color: #fff0e8;
cursor: pointer;
}
.active{
border:1px solid #f40;
background-color: #fff0e8;
box-shadow: 5px 5px 0 #f3f3f3;
font-weight: bold;
}
.active > span:first-child{
color:#f40;
}
/*收货地址 end*/
/*确认订单*/
.shop-buy > .order-list{
font-size: 13px;
display: flex;
flex-flow: column wrap;
}
.shop-buy > .order-list > .order-title{
width: 1200px;
height: 30px;
line-height: 30px;
border-bottom: 3px solid #b2d1ff;
display: grid;
grid-template-columns: 255px 255px 1fr 1fr 1fr 1fr;
text-align: center;
}
.shop-buy > .order-list > .order-good-list{
display: flex;
flex-flow: column wrap;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item{
display: flex;
flex-flow: column wrap;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .shop-info{
width: 1200px;
height: 30px;
margin-top: 20px;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .shop-info >span{
margin-right: 40px;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info{
display: grid;
grid-template-columns: 255px 255px 1fr 1fr 1fr 1fr;
border-top: 1px dashed #b2d1ff;
background-color: rgb(251, 252, 255);
padding: 10px 0;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > div{
width: 255px;
display: grid;
grid-template-columns: 1fr 1fr;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > div >img{
width: 100px;
height: 100px;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > span{
justify-self: center;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > span:last-child{
color: #f40;
font-weight: bold;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express{
width: 1200px;
height:100px;
background-color: rgb(251, 252, 255);
margin-top: 10px;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
grid-template-areas: 'one two'
'one three'
'four four';
border-top: 1px dashed #b2d1ff;
border-bottom: 1px dashed #b2d1ff;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:first-child{
grid-area: one;
display: flex;
align-items: flex-start;
padding-left: 10px;
padding-top: 10px;
box-sizing: border-box;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:nth-child(2){
align-self: center;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
padding-right: 5px;
box-sizing: border-box;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:nth-child(3){
align-self: center;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
padding-right: 5px;
box-sizing: border-box;
}
.shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:last-child{
grid-area: four;
align-self: center;
text-align: right;
padding-right: 5px;
box-sizing: border-box;
}
.price{
color: #f40;
font-weight: bold;
}
/*确认订单 end*/
/*支付方式*/
.shop-buy > .pay-type{
height: 30px;
text-align: right;
border-bottom: 1px solid #ccc;
font-size: 13px;
margin-top: 20px;
}
.shop-buy > .pay-type > span:first-child{
margin-right: 40px;
}
/*支付方式 end*/
/*支付信息*/
.shop-buy > .pay-info{
width: 1200px;
display: flex;
margin-top: 20px;
flex-direction: column;
justify-content: flex-end;
}
.shop-buy > .pay-info > div{
margin-left: auto;
width:300px;
font-size: 13px;
}
.shop-buy > .pay-info > div:first-child{
border: 1px solid #ff5500;
text-align: right;
display: grid;
line-height: 30px;
padding:10px;
}
.shop-buy > .pay-info > div:first-child > span > span{
font-weight: bold;
}
.shop-buy > .pay-info > div:first-child > span:first-child > span:last-child{
font-size: 25px;
}
.shop-buy > .pay-info > div:last-child{
width:320px;
display: grid;
grid-template-rows: 30px;
grid-template-columns: 1fr 1fr;
}
.shop-buy > .pay-info > div:last-child > a{
justify-self: center;
align-self: center;
}
.shop-buy > .pay-info > div:last-child > button{
border: none;
background-color: #ff5500;
color: #fff;
}
/*支付信息 end*/