|
@@ -19,6 +19,9 @@
|
|
|
// 屏蔽分享
|
|
|
window.hiddenAllWechatMenu = true;
|
|
|
</script>
|
|
|
+ <style>
|
|
|
+ .mui-table-view-cell>a:not(.mui-btn) {margin-left: -12px;}
|
|
|
+ </style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
@@ -84,12 +87,30 @@
|
|
|
<ul class="mui-table-view mui-table-view-striped my-grid-view-no mui-table-view-condensed shopping-cart-list">
|
|
|
|
|
|
</ul>
|
|
|
+ <div class="mui-content-padded mui-text-right">合计:<span class="pro-price">¥<span class="count_price">0.0</span></span>
|
|
|
+ </div>
|
|
|
+
|
|
|
<ul class="mui-table-view">
|
|
|
<li class="mui-table-view-cell" id="ul-youhuiquan" style="padding-left:7px;display: none;">
|
|
|
<a class="mui-navigate-right btn-youhuiquan">
|
|
|
优惠券<span class="mui-pull-right cl-red">未选择优惠券</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
+
|
|
|
+ <li class="mui-table-view-cell " id="" style="padding-left:7px;">
|
|
|
+ <a class=" ">
|
|
|
+ 总价<span class="mui-pull-right cl-red ">¥<span class="all_price"></span></span>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li class="mui-table-view-cell" id="" style="padding-left:7px; ">
|
|
|
+ <a class=" " >
|
|
|
+ 邮费 <span style=" font-size: 12px;color: #8f8f94;">(总价满30元包邮)</span><span class="mui-pull-right cl-red">
|
|
|
+ ¥<span class="sales_postage"></span>
|
|
|
+ </span>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+
|
|
|
<li>
|
|
|
<div class="mui-input-row">
|
|
|
<label class="lbl-remarks">订单备注</label>
|
|
@@ -97,8 +118,6 @@
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <div class="mui-content-padded mui-text-right">合计:<span class="pro-price">¥<span class="count_price">0.0</span></span>
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="buy-footer1">
|
|
@@ -275,9 +294,15 @@
|
|
|
}else{
|
|
|
wechatAddr.status = false;
|
|
|
}
|
|
|
- $("#selfAddressName").html(dt.data.channelName);
|
|
|
- $(".count_price,.pay_price").text((dt.data.payTotal / 100).toFixed(2));
|
|
|
+ $(".count_price,.pay_price,.all_price").text(accDiv(dt.data.payTotal,100));
|
|
|
+ if(accDiv(dt.data.payTotal,100) < 30){
|
|
|
+ $(".sales_postage").text(10);
|
|
|
+ }else{
|
|
|
+ $(".sales_postage").text(0);
|
|
|
+ }
|
|
|
$("#pro-count").text(proCount);
|
|
|
+
|
|
|
+ $("#selfAddressName").html(dt.data.channelName);
|
|
|
$(".loading").hide().css("opacity", "0"); //隐藏(正在加载...)
|
|
|
} else {
|
|
|
mui.alert("获取数据失败!", function() {
|
|
@@ -388,12 +413,30 @@
|
|
|
if(price <= 0) {
|
|
|
price = 0.0; //判断商品价格减去现金券价格若<0 则显示0
|
|
|
}
|
|
|
+ $(".all_price").text(price);
|
|
|
+ var postage = 0;
|
|
|
+ if(price<30){
|
|
|
+ $(".sales_postage").text(10);
|
|
|
+ postage = 10;
|
|
|
+ }else{
|
|
|
+ $(".sales_postage").text(0);
|
|
|
+ }
|
|
|
+ price = parseFloat(price + postage);
|
|
|
$(".pay_price").text(price);
|
|
|
} else {
|
|
|
yhq_id = '';
|
|
|
$(".btn-youhuiquan").removeAttr("couponid");
|
|
|
$(".btn-youhuiquan span").text("不使用现金券");
|
|
|
- $(".pay_price").text($(".count_price").text());
|
|
|
+
|
|
|
+ $(".all_price").text($(".count_price").text());
|
|
|
+ var salesPostage = $(".count_price").text();
|
|
|
+ if(salesPostage < 30 ){
|
|
|
+ $(".sales_postage").text(10);
|
|
|
+ salesPostage += 10;
|
|
|
+ }else{
|
|
|
+ $(".sales_postage").text(0);
|
|
|
+ }
|
|
|
+ $(".pay_price").text(parseFloat(salesPostage));
|
|
|
}
|
|
|
$(".my-picker").removeClass("active"); //隐藏弹窗
|
|
|
$(".mui-backdrop").remove(); //移除遮罩层
|