|
@@ -142,19 +142,19 @@
|
|
|
$("#salesAddressTel").html(order.salesAddressTel);
|
|
|
|
|
|
var str = '';
|
|
|
- var num = 0;
|
|
|
+ var num = 0,a='';
|
|
|
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.itemProductColor +'<span class="center">数量:'+ this.itemNum +'</span></h6><div>¥'+ accDiv(this.itemProductDiscount,100) +'</div></div></div>';
|
|
|
-// mui(this.salesUserGiftList).each(function(index) {
|
|
|
-// var txt_gift = this;
|
|
|
-// if (index == 0) {
|
|
|
-// a += '<h6>赠品:' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
-// } else {
|
|
|
-// a += '<h6> ' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
-// }
|
|
|
-// });
|
|
|
-// str += a
|
|
|
+ mui(this.salesUserGiftList).each(function(index) {
|
|
|
+ var txt_gift = this;
|
|
|
+ if (index == 0) {
|
|
|
+ a += '<h6>赠品:' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
+ } else {
|
|
|
+ a += '<h6> ' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ str += a
|
|
|
});
|
|
|
document.querySelector('.shopping-cart-list').innerHTML = str;
|
|
|
document.querySelector('.loading-bg').style.display = 'none';
|