feat/task1-c-wallet
gongfuxiang 2018-10-08 01:17:51 +08:00
parent c4da7c5bc2
commit b64cd25598
4 changed files with 16 additions and 10 deletions

View File

@ -21,7 +21,7 @@
<tr>
<th>商品信息</th>
<th class="am-hide-sm-only">单价</th>
<th class="am-hide-sm-only">数量</th>
<th>数量</th>
<th class="am-hide-sm-only">金额</th>
<th>操作</th>
</tr>
@ -60,10 +60,10 @@
</if>
<p class="line-price">¥{{$goods.price}}</p>
</td>
<td class="number am-hide-sm-only">
<td class="number">
<div class="am-input-group am-input-group-sm stock-tag" data-inventory="{{$goods.inventory}}" data-price="{{$goods.price}}" data-ajax-url="{{:U('Home/Cart/Stock')}}">
<span class="am-input-group-label <if condition="$goods['is_shelves'] eq 1 and $goods['is_delete_time'] eq 0">stock-submit</if>" data-type="min">-</span>
<input type="text" class="am-form-field" value="{{$goods.stock}}" <if condition="$goods['is_shelves'] neq 1 or $goods['is_delete_time'] neq 0">disabled</if> />
<input type="number" class="am-form-field" value="{{$goods.stock}}" <if condition="$goods['is_shelves'] neq 1 or $goods['is_delete_time'] neq 0">disabled</if> />
<span class="am-input-group-label <if condition="$goods['is_shelves'] eq 1 and $goods['is_delete_time'] eq 0">stock-submit</if>" data-type="add">+</span>
</div>
<if condition="$goods['is_shelves'] neq 1">

View File

@ -1,8 +1,8 @@
.goods-detail img { width: 80px; height: 80px; }
.goods-detail { position: relative; margin-left: 20px; }
.goods-detail img { width: 80px; height: 80px; position: absolute; }
.goods-detail { position: relative; margin-left: 18px; min-height: 80px; }
.goods-title { display: block; max-height: 36px; overflow: hidden; text-overflow: ellipsis; }
.goods-title:hover { text-decoration: underline; }
.goods-base { position: absolute; top: 0; left: 85px; }
.goods-base { float: left; top: 0; margin-left: 85px; }
.goods-attr { margin-top: 5px; }
.goods-attr li { color: #888; line-height: 16px; }
.original-price, .line-price { font-family: Verdana,Tahoma,arial; }
@ -13,7 +13,8 @@
.stock-tag .am-form-field { padding: 3px; height: 25px; text-align: center; font-size: 16px !important; }
.stock-tag .am-input-group-label { line-height: 23px; height: 25px; font-size: 14px !important; padding: 0 10px; }
.stock-tag .am-input-group-label, .cart-nav label { cursor: pointer; }
strong.total-price-content, .selected-tips strong, .nav-total-price { color: #d2364c; font-size: 16px; }
.selected-tips strong, .nav-total-price { font-size: 16px; }
strong.total-price-content, .selected-tips strong, .nav-total-price { color: #d2364c; }
.am-table { margin-bottom: 10px; }
.am-table > tbody > tr > td { border-top: 1px solid #F5F5F5; }
.cart-content table td.base input[type="checkbox"] { float: left; }
@ -37,7 +38,7 @@ strong.total-price-content, .selected-tips strong, .nav-total-price { color: #d2
}
@media only screen and (max-width:640px) {
.cart-content table tr .base { width: 85%; }
.cart-content table tr .base { width: 55%; }
.selected-tips { display: none; }
.am-footer { margin-top: 10px; }
@ -48,4 +49,9 @@ strong.total-price-content, .selected-tips strong, .nav-total-price { color: #d2
width: calc(100% - 120px); height: 30px; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.cart-nav .separate-submit { float: right; width: 80px; }
.wap-base { padding-left: 20px; }
.goods-detail { min-height: 40px; }
.goods-detail img { width: 40px; height: 40px; }
.goods-base { margin-left: 45px; }
.stock-tag { width: 85px; }
}

View File

@ -15,7 +15,7 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;}
.theme-poptit{padding:12px;position:relative;overflow: hidden;background:#fff ;height:80px ;}
.theme-poptit .close{float:right;color:#999;padding:5px;margin:-2px -5px -5px;font:bold 14px/14px simsun;text-shadow:0 1px 0 #ddd}
.theme-poptit .close:hover{color:#444;}
.theme-popover .confirm { background-color: #d2364c; border-color: #d2364c; color: #fff; }
.theme-popover .confirm { background-color: #d2364c; border-color: #d2364c; color: #fff !important; }
/* 轮播 */
.scoll { margin-bottom: 10px; }

View File

@ -126,7 +126,7 @@ $(function()
{
$('.cart-nav').css({"position":"fixed", "bottom":0, "width":$('.cart-content').width()+"px", "z-index":1000});
} else {
$('.cart-nav').css({"position":"relative", "bottom":0, "z-index":0});
$('.cart-nav').css({"position":"relative", "bottom":0, "z-index":0, "width":"100%"});
}
}
cart_nav_pop();