|
@@ -55,7 +55,7 @@
|
|
|
</ul>
|
|
|
<ul class="mui-table-view my-view-no-top">
|
|
|
<li class="mui-table-view-cell cl-red" style="padding: 11px 2px;">
|
|
|
- 共2件<span class="mui-pull-right">合计:¥<span id="salesYetAmount"></span>5998.00</span>
|
|
|
+ 共<span id="num">0</span>件<span class="mui-pull-right">合计:¥<span id="salesYetAmount">0.00</span></span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul class="my-table-view">
|
|
@@ -116,7 +116,9 @@
|
|
|
$("#salesAddressTel").html(order.salesAddressTel);
|
|
|
|
|
|
var str = '';
|
|
|
+ var num = 0;
|
|
|
mui.each(order.orderItemList, function(index) {
|
|
|
+ num += this.itemNum;
|
|
|
str += '<div class="mui-table"><div class="mui-table-cell mui-col-xs-5"><img class="mui-media-object wh-100" src="'+ this.itemProductPic +'"></div><div class="mui-table-cell table-middle mui-col-xs-7" style="line-height:2.5">'+ this.itemProductName +'<h6>颜色:'+ this.productColor +'<span class="center">数量:'+ this.itemNum +'</span></h6><div>¥'+ accDiv(this.itemProductDiscount,100) +'</div></div></div>';
|
|
|
});
|
|
|
document.querySelector('.shopping-cart-list').innerHTML = str;
|
|
@@ -170,7 +172,8 @@
|
|
|
$("#statusName").html(statusName);
|
|
|
$("#orderId").html(order.salesOrderid);
|
|
|
$("#salesCreateDate").html(order.salesCreateDate);
|
|
|
- $("#salesYetAmount").html(order.salesYetAmount);
|
|
|
+ $("#salesYetAmount").html(accDiv(order.salesYetAmount,100));
|
|
|
+ $("#num").html(num);
|
|
|
}
|
|
|
}
|
|
|
},
|