|
@@ -55,11 +55,11 @@
|
|
.disCount{
|
|
.disCount{
|
|
border: 1px solid rgba(251,72,61,0.10);
|
|
border: 1px solid rgba(251,72,61,0.10);
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
- padding: .02rem .05rem;
|
|
|
|
|
|
+ padding: 0rem .15rem;
|
|
background: rgba(251,72,61,0.10);
|
|
background: rgba(251,72,61,0.10);
|
|
color: #FB483D;
|
|
color: #FB483D;
|
|
font-size: .1rem !important;
|
|
font-size: .1rem !important;
|
|
- margin-right: .2rem;
|
|
|
|
|
|
+ margin-right: -1.8rem
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<body style="visibility:hidden">
|
|
<body style="visibility:hidden">
|
|
@@ -184,6 +184,7 @@
|
|
<div class="weui-half-screen-dialog__ft">
|
|
<div class="weui-half-screen-dialog__ft">
|
|
<div class="va-total-container">
|
|
<div class="va-total-container">
|
|
<span class="total-label"></span>
|
|
<span class="total-label"></span>
|
|
|
|
+ <span class="disCount"></span>
|
|
<span class="total-price"></span>
|
|
<span class="total-price"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -827,16 +828,10 @@
|
|
+ '<div class="vp-type-text">' + typeName + '</div>'
|
|
+ '<div class="vp-type-text">' + typeName + '</div>'
|
|
+ '</div>'
|
|
+ '</div>'
|
|
}
|
|
}
|
|
- var disHtml = ""
|
|
|
|
var price = list[i].price
|
|
var price = list[i].price
|
|
- if (discount_price>0&&i==0){
|
|
|
|
- disHtml = '<span class="footer-label disCount">已优惠:¥'+(discount_price / 100)+'</span>'
|
|
|
|
- price = price - discount_price
|
|
|
|
- }
|
|
|
|
returnHtml += '</div>'
|
|
returnHtml += '</div>'
|
|
+ '</div>'
|
|
+ '</div>'
|
|
+ '<div class="item-footer">'
|
|
+ '<div class="item-footer">'
|
|
- + disHtml
|
|
|
|
+ '<span class="footer-label">小计:</span>'
|
|
+ '<span class="footer-label">小计:</span>'
|
|
+ '<span class="footer-content text-title">¥' + (price / 100) + '</span>'
|
|
+ '<span class="footer-content text-title">¥' + (price / 100) + '</span>'
|
|
+ '</div>'
|
|
+ '</div>'
|
|
@@ -844,6 +839,9 @@
|
|
|
|
|
|
total_price += (list[i].price);
|
|
total_price += (list[i].price);
|
|
}
|
|
}
|
|
|
|
+ if (discount_price>0){
|
|
|
|
+ $(".disCount").text('已优惠:¥'+(discount_price / 100));
|
|
|
|
+ }
|
|
$(".total-price").text("共计:¥" + money / 100);
|
|
$(".total-price").text("共计:¥" + money / 100);
|
|
$(".list-content").html(returnHtml);
|
|
$(".list-content").html(returnHtml);
|
|
}
|
|
}
|