qihanjiao 7 年之前
父節點
當前提交
cf6abd4485
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      aiberle/order-details.html

+ 10 - 10
aiberle/order-details.html

@@ -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 + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
-//	                                    } else {
-//	                                        a += '<h6>&nbsp;&nbsp;&nbsp;&nbsp;' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
-//	                                    }
-//	                                });
-//	                                str += a
+									mui(this.salesUserGiftList).each(function(index) {
+	                                    var txt_gift = this;
+	                                    if (index == 0) {
+	                                        a += '<h6>赠品:' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
+	                                    } else {
+	                                        a += '<h6>&nbsp;&nbsp;&nbsp;&nbsp;' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
+	                                    }
+	                                });
+	                                str += a
 								});
 								document.querySelector('.shopping-cart-list').innerHTML = str;
 								document.querySelector('.loading-bg').style.display = 'none';