master
tangyi 2021-09-28 18:24:07 +08:00
commit f895aa89fb
5 changed files with 94 additions and 88 deletions

View File

@ -5991,4 +5991,28 @@ ul {
text-align: center; text-align: center;
border-top: 1px solid #E6E6E6; border-top: 1px solid #E6E6E6;
background-color: #fff; background-color: #fff;
} }
/* 购物车 */
.cart-head{color: #333333;text-align: center;font-weight: bold;background: #f3f3f3;padding: 22px 0px 16px 0px;border: 1px solid #e0e0e0;box-sizing: border-box;}
.cart-content>div:nth-child(1),.cart-head div:first-child{width: 12%;padding-left: 20px;box-sizing: border-box;}
.cart-head div:nth-of-type(2){width: 42%;text-align: left;padding-left: 20px;}
.cart-head div:nth-of-type(3){width: 12%;}
.cart-head div:nth-of-type(4){width: 12%;}
.cart-head div:nth-of-type(5){width: 11%;}
.cart-head div:nth-of-type(6){width: 11%;}
.cart-content{color: #333333;text-align: center;margin-top: 20px;border: 1px solid #e0e0e0;box-sizing: border-box;padding: 20px 0;}
.cart-content>div:nth-child(2){width: 42%;text-align: left;padding-left: 20px;padding-top: 10px;}
.cart-content>div:nth-child(2) a{font-size: 15px;height: 50px;line-height: 24px;}
.cart-content>div:nth-child(3){width: 12%;padding-top: 10px;font-size: 14px;font-weight: bold;color: #222222;}
.cart-content>div:nth-child(5){width: 11%;padding-top: 10px;font-size: 14px;font-weight: bold;color: #CB1919;}
.cart-content>div:nth-child(6){width: 11%;padding-top: 10px;}
.num-box{width: 12%;padding-top: 10px;display: flex;justify-content: center;}
.cart-content>div:nth-child(1) input{width: 15px;height: 15px;}
.cart-content img{max-width: 83px;max-height: 83px;float: left;}
.jies-box>div:first-child label{margin-left: -2px;cursor: pointer;}
.jies-box>div:first-child span{margin-left: 20px;cursor: pointer;color: #222222;font-size: 14px;}
.jies-box>div:last-child span span{font-size: 20px;font-weight: bold;color: #CB1919;}
.jies-box .settlement{height: 50px;background: #CB1919;color: #FFFFFF;display: inline-block;width: 130px;text-align: center;font-size: 18px;margin-left: 10px;cursor: pointer;}

View File

@ -362,25 +362,11 @@ section .whole .whole-1 .payment .order .oderhome a {
.zhanw{height: 30px;width: 100%;background: #f5f5f5;} .zhanw{height: 30px;width: 100%;background: #f5f5f5;}
.padding-zy320{padding: 0 320px;} .padding-zy320{padding: 0 320px;}
.backFF{background: #FFFFFF;} .backFF{background: #FFFFFF;}
.table-cbox{border-collapse: separate;border-spacing: 0px 17px;margin-top: -17px;}
.table-cbox thead tr th:nth-child(1){text-align: left;width: 110px;}
.table-cbox thead tr th:nth-child(2){text-align: left;width: 430px;}
.table-cbox thead tr th:nth-child(5){width: 110px;}
.table-cbox tbody tr td:nth-child(1){width: 130px;}
.table-cbox tbody tr td:nth-child(1) div{display: flex;}
.table-cbox tbody tr td:nth-child(1) div input{width: 15px;height: 15px;margin-right: 20px;}
.table-cbox tbody tr td:nth-child(2){font-size: 15px;color: #525252;width: 430px;}
.table-cbox tbody tr td:nth-child(2) div{width: 430px;}
.table-cbox tbody tr td:nth-child(3){font-size: 15px;color: #525252;}
.table-cbox tbody tr td:nth-child(4){font-size: 14px;font-weight: bold;color: #222222;}
.table-cbox tbody tr td:nth-child(5)>div{display: flex;align-items: center;justify-content: center;}
.add,.reduce{width: 17px;height: 23px;background: #f0f0f0;border: 1px solid #e5e5e5;cursor: pointer;} .add,.reduce{width: 17px;height: 23px;background: #f0f0f0;border: 1px solid #e5e5e5;cursor: pointer;}
.count-input{width: 39px;height: 25px;display: inline-block;text-align: center;border: 1px solid #aaaaaa;padding-left: 0px!important;} .count-input{width: 39px;height: 25px;display: inline-block;text-align: center;border: 1px solid #aaaaaa;padding-left: 0px!important;}
.table-cbox tbody tr td:nth-child(6){font-size: 14px;font-weight: bold;color: #CB1919;}
.table-cbox tbody tr td:nth-child(7){font-size: 14px;color: #222222;}
.jies-box{height: 50px;background: #f3f3f3;line-height: 50px;display: flex;justify-content: space-between;font-size: 14px;color: #333333;} .jies-box{height: 50px;background: #f3f3f3;line-height: 50px;display: flex;justify-content: space-between;font-size: 14px;color: #333333;margin-top: 20px;}
.jies-box>div:first-child{padding-left: 10px;} .jies-box>div:first-child{padding-left: 10px;}
.jies-box>div:first-child input{cursor: pointer;"} .jies-box>div:first-child input{cursor: pointer;"}

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" type="text/css" href="../../css/huaxia.css" /> <link rel="stylesheet" type="text/css" href="../../css/huaxia.css" />
<link rel="stylesheet" type="text/css" href="../../css/huaxiaMedia.css" /> <link rel="stylesheet" type="text/css" href="../../css/huaxiaMedia.css" />
<link rel="stylesheet" type="text/css" href="../../css/foot.min.css" /> <link rel="stylesheet" type="text/css" href="../../css/foot.min.css" />
<link rel="stylesheet" type="text/css" href="../../css/logshoppingcar/login_cart.css" /> <link rel="stylesheet" type="text/css" href="../../css/logshoppingcar/login_cart.css"/>
<script src="../../js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/login_cart/login_cart.js" type="text/javascript" charset="utf-8"></script> <script src="../../js/login_cart/login_cart.js" type="text/javascript" charset="utf-8"></script>
</head> </head>
@ -70,80 +70,63 @@
<div class="zhanw"></div> <div class="zhanw"></div>
<section> <section>
<div class="whoil padding-zy320"> <div class="whoil padding-zy320">
<div class="whoil-1 backFF"> <div id="myCart" class="whoil-1 backFF cart-box">
<div class="all">全部商品(20)</div> <div class="all">全部商品(20)</div>
<!-- 选择 --> <!-- 表头 -->
<div> <div class="dac font-14 w100 cart-head">
<div></div> <div class="dac">
<input class="cq-cp allCheck" type="checkbox" name="" onclick="selectAllShopt()" id="allCheck" value="" />
<label for="allCheck" class="m-z10 cq-cp" onclick="selectAllShopt()">全选</label>
</div>
<div>商品</div>
<div>单价</div>
<div>数量</div>
<div>小计</div>
<div>操作</div>
</div> </div>
<table class="table-cbox" border="0" cellspacing="0"> <!-- 列表内容 -->
<thead> <div>
<tr> <div class="dis font-14 w100 cart-content">
<th><input type="checkbox" id="ckAll">全选</th> <div class="djb">
<th>商品</th> <input class="cq-cp" type="checkbox" name="" id="" value=""/>
<th></th> <a href="javascript:;"><img src="../../img/images/1-1.png" alt="图片丢失" title="购物车图片一" /></a>
<th>单价</th> </div>
<th>数量</th> <div class="djb"><a href="javascript:;" class="clips2" style="color: #525252;">竹迪 客厅装饰画现代简约晶瓷画沙发背景墙挂画现代简约晶瓷画沙发背景墙挂画三联画餐厅墙画靠山书房壁画抽象三联画餐厅墙画靠山书房壁画抽象艺术画 11时来运转8190</a><span class="m-z37 font-14" style="color: #525252;">x3</span></div>
<th>小计</th> <div>¥188.00</div>
<th>操作</th> <div class="num-box">
</tr> <div class="reduce">-</div>
</thead> <input type="text" value="3" class="count-input">
<tbody> <div class="add">+</div>
<tr class="inline" valign="top"> </div>
<td> <div>¥564.00</div>
<div> <div>删除</div>
<input type="checkbox" name="ck"> </div>
<img src="../../img/images/1-1.png" alt="图片丢失" title="购物车图片一" /> <div class="dis font-14 w100 cart-content">
</div> <div class="djb">
</td> <input class="cq-cp" type="checkbox" name="" id="" value=""/>
<td> <a href="javascript:;"><img src="../../img/images/1-1.png" alt="图片丢失" title="购物车图片一" /></a>
<div>竹迪 客厅装饰画现代简约晶瓷画沙发背景墙挂画三联画餐厅墙画靠山书房壁画抽象艺术画 11时来运转8190</div> </div>
</td> <div class="djb"><a href="javascript:;" class="clips2" style="color: #525252;">竹迪 客厅装饰画现代简约晶瓷画沙发背景墙挂画现代简约晶瓷画沙发背景墙挂画三联画餐厅墙画靠山书房壁画抽象三联画餐厅墙画靠山书房壁画抽象艺术画 11时来运转8190</a><span class="m-z37 font-14" style="color: #525252;">x3</span></div>
<td><span>x3</span></td> <div>¥188.00</div>
<td>¥188.00</td> <div class="num-box">
<td> <div class="reduce">-</div>
<div> <input type="text" value="3" class="count-input">
<div class="reduce">-</div> <div class="add">+</div>
<input type="text" value="3" class="count-input"> </div>
<div class="add">+</div> <div>¥564.00</div>
</div> <div>删除</div>
</td> </div>
<td>¥564.00</td> </div>
<td class="delete">删除</td> <!-- 结算 -->
</tr>
<tr class="inline" valign="top">
<td>
<div>
<input type="checkbox" name="ck">
<img src="../../img/images/1-1.png" alt="图片丢失" title="购物车图片一" />
</div>
</td>
<td>
<div>竹迪 客厅装饰画现代简约晶瓷画沙发背景墙挂画三联画餐厅墙画靠山书房壁画抽象艺术画 11时来运转8190</div>
</td>
<td><span>x3</span></td>
<td>¥188.00</td>
<td>
<div>
<div class="reduce">-</div>
<input type="text" value="3" class="count-input">
<div class="add">+</div>
</div>
</td>
<td>¥564.00</td>
<td class="delete">删除</td>
</tr>
</tbody>
</table>
<div class="jies-box"> <div class="jies-box">
<div> <div>
<input type="checkbox" id="ckAll"> <input type="checkbox" onclick="selectAllShop()" class="chooseAllT" id="ckAll">
<span style="margin-left: -2px;cursor: pointer;">全选</span> <label for="ckAll" onclick="selectAllShop()">全选</label>
<span style="margin-left: 20px;cursor: pointer;">删除</span> <span>删除</span>
</div> </div>
<div> <div>
<span>合计:¥<span style="font-size: 20px;font-weight: bold;color: #CB1919;" id="allPrice">0.00</span></span> <span>合计:¥<span id="allPrice">0.00</span></span>
<span id="settlementt" class="settlement" style="height: 50px;background: #CB1919;color: #FFFFFF;display: inline-block;width: 130px;text-align: center;font-size: 18px;margin-left: 10px;cursor: pointer;">结算</span> <span id="settlementt" class="settlement">结算</span>
</div> </div>
</div> </div>
<!-- 轮播图 --> <!-- 轮播图 -->

View File

@ -607,7 +607,6 @@
</div> </div>
</div> </div>
<!-- 底部导航 --> <!-- 底部导航 -->
<!-- <iframe src="public/foot-tab.html" class="foot-iframe" frameborder="0" scrolling="no" marginwidth='0' marginheight='0'></iframe> -->
<div class="foot-nav-box"> <div class="foot-nav-box">
<!-- 导航文字 --> <!-- 导航文字 -->
<div class="foot-box-nav"> <div class="foot-box-nav">

View File

@ -244,6 +244,20 @@ $(function(){
} }
}) })
}) })
function selectAllShop(){//推荐作品全选,全不选事件
var isCheck = $('.chooseAllT').is(':checked')
console.log(isCheck);
$("#myCart input[type='checkbox']").each(function(){
this.checked = isCheck
})
}
function selectAllShopt(){//推荐作品全选,全不选事件
var isCheck = $('.allCheck').is(':checked')
console.log(isCheck);
$("#myCart input[type='checkbox']").each(function(){
this.checked = isCheck
})
}
function dateDao(){ function dateDao(){
if(allTime==60){ if(allTime==60){
allTime = 59 allTime = 59