Browse Source

爱贝源bug修复

wangxiaoming 7 years ago
parent
commit
6e38b69e68
4 changed files with 18 additions and 11 deletions
  1. 10 6
      aiberle/index.html
  2. 1 1
      aiberle/order-details.html
  3. 1 1
      aiberle/pro-details.html
  4. 6 3
      aiberle/pro-list.html

+ 10 - 6
aiberle/index.html

@@ -17,7 +17,7 @@
 			<!--头部搜索框-->
 			<div class="search-cotainer">
 				<div class="mui-input-row mui-search">
-					<input id="search" name="search" class="my-search-ipt" type="text" placeholder='大家都在搜"电动牙刷刷头"'>
+					<input id="search" name="search" class="my-search-ipt" type="text" placeholder='大家都在搜"净水机"'>
 				</div>
 				<span class="iconfont icon-caidan"></span>
 				<span class="my-btn-cancel">取消</span>
@@ -228,9 +228,11 @@
 								mui(jingxuan1).each(function(index) {
 									var li = document.createElement('li');
 									li.className = 'mui-table-view-cell mui-media mui-col-xs-12';
-									console.log(this.productColorList[0].colorDiscount)
-									li.innerHTML = '<a name="' + this.productId + '"><img class="mui-media-object" src="' + this.productChoicenessIm + '"><div class="index-pro-tit">' + this.productName + '</div><p class="mui-text-left">' + this.productColorDes + '<span class="f-price">¥' + accDiv(this.productColorList[0].colorDiscount , 100) + '</span></p></a>';
-									table.appendChild(li);
+									//console.log(this.productColorList[0].colorDiscount)
+									if(this.productColorList != null && this.productColorList.length > 0){
+										li.innerHTML = '<a name="' + this.productId + '"><img class="mui-media-object" src="' + this.productChoicenessIm + '"><div class="index-pro-tit">' + this.productName + '</div><p class="mui-text-left">' + this.productColorDes + '<span class="f-price">¥' + accDiv(this.productColorList[0].colorDiscount , 100) + '</span></p></a>';
+										table.appendChild(li);
+									}
 								});
 
 								//遍历精选产品(50%宽度)
@@ -238,8 +240,10 @@
 								mui(jingxuan2).each(function(index) {
 									var li = document.createElement('li');
 									li.className = 'mui-table-view-cell mui-media mui-col-xs-6';
-									li.innerHTML = '<a name="' + this.productId + '"><img class="mui-media-object" src="' + this.productChoicenessIm + '"><div class="index-pro-tit">' + this.productName + '</div><p class="mui-text-left">' + this.productColorDes + '</p><p class="l-price">¥' + accDiv(this.productColorList[0].colorDiscount , 100) + '</p></a>';
-									table.appendChild(li);
+									if(this.productColorList != null && this.productColorList.length > 0){
+										li.innerHTML = '<a name="' + this.productId + '"><img class="mui-media-object" src="' + this.productChoicenessIm + '"><div class="index-pro-tit">' + this.productName + '</div><p class="mui-text-left">' + this.productColorDes + '</p><p class="l-price">¥' + accDiv(this.productColorList[0].colorDiscount , 100) + '</p></a>';
+										table.appendChild(li);
+									}
 								});
 
 								//遍历菜单

+ 1 - 1
aiberle/order-details.html

@@ -152,7 +152,7 @@
 								var logisticsHtml =  '';
 								if(status == 5 ||  status == 12 ||  status == 6 ||  status == 11) {  //状态为取消,待支付,代发货,退货,换货都没有物流信息
 									if(order.salesPostFirm != null && order.salesPostFirm != "" && typeof(order.salesPostFirm) != "undefined" && order.salesPostNum != null && order.salesPostNum != "" && typeof(order.salesPostNum) != "undefined"){
-										logisticsHtml = '<button type="button" class="mui-btn my-btn-request logistics" style="margin-right: 20px;">查看物流</button>';
+										logisticsHtml = '<button type="button" class="mui-btn my-btn-request logistics" style="margin-left: 10px;">查看物流</button>';
 									}
 								} 
 								var payHtml = '<button type="button" class="mui-btn my-btn-request go_pay"  style="margin-left: 10px;">立即支付</button>';

+ 1 - 1
aiberle/pro-details.html

@@ -349,7 +349,7 @@
 				if($(this).attr("cart") == "cart") {
 					$(".mui-backdrop").css("opacity", 0).remove(); //移除遮罩层
 					$(".my-picker").remove(); //移除选择颜色列表
-					mui.toast("加成功!");
+					mui.toast("加入购物车成功!");
 				} else {
 					var cartidList = ''; //购物项id集合
 					$.each($(".my-picker .mui-numbox"), function(index) {

File diff suppressed because it is too large
+ 6 - 3
aiberle/pro-list.html