瀏覽代碼

gouwuchewxiugai

qihanjiao 7 年之前
父節點
當前提交
9c11831e63
共有 3 個文件被更改,包括 22 次插入33 次删除
  1. 11 15
      aiberle/index.html
  2. 6 6
      aiberle/my-center.html
  3. 5 12
      aiberle/pro-list.html

+ 11 - 15
aiberle/index.html

@@ -259,7 +259,8 @@
 									colors.push({
 										"id": colors.length + 1,
 										"typeId": this.typeId,
-										"label": this.typeName
+										"label": this.typeName,
+										"url":"1"
 									});
 									$.each(this.childTypeList, function() {
 										
@@ -271,7 +272,8 @@
 												"id": colors.length + 1,
 												"typeId": this.typeId,
 												"label": this.childTypeName,
-												"childTypeId": this.childTypeId
+												"childTypeId": this.childTypeId,
+												"url":"1"
 											});
 										
 										
@@ -334,16 +336,18 @@
 					$(".icon-caidan").hide();
 					$('.my-btn-cancel').show();
 					if($(this).val().length > 0) {
-						$('#search-hot').hide();
+						$('#search-hot').hide(500);
 						$(".autocompleter-list").css("height", $(document).height())
 					} else {
 						$("#search-hot").css("height",$(document.body).height()).show();
+						$("body").css("overflow","hidden");
 					}
 				});
 				//搜索框失去焦点事件
 				$('#search').on('blur', function(e) {
 					setTimeout(function(){
 						$('#search-hot,.my-btn-cancel').hide();
+						$("body").css("overflow","auto");
 						$(".icon-caidan").show();
 					},700);
 					
@@ -353,6 +357,7 @@
 					$('#search').val($(this).text());
 					console.log($(this).text())
 					$('#search-hot').hide();
+					$("body").css("overflow","auto");
 					var parameter = {};
 					parameter["id"] = $(this).attr("name");
 					parameter["label"] = $(this).text();
@@ -362,17 +367,6 @@
 					}
 					search(parameter);
 				});
-				//点击历史记录跳转
-//				$(document).on('tap', '#history button', function() {
-//					var parameter = {};
-//					parameter["id"] = $(this).attr("name");
-//					parameter["label"] = $(this).text();
-//					parameter["typeId"] = $(this).attr("typeid");
-//					if(typeof($(this).attr("childtypeid")) != "undefined") {
-//						parameter["childTypeId"] = $(this).attr("childtypeid");
-//					}
-//					search(parameter);
-//				});	
 				//搜索框本地缓存
 				function search(selected) {
 					if(!window.localStorage) {
@@ -401,7 +395,7 @@
 						//json格式化插入    
 						localStorage.setItem('search_histoty', JSON.stringify(obj));
 						sessionStorage.setItem('search_data', JSON.stringify(searchobj));
-						console.log(obj)
+						console.log("999999999999")
 						mui.openWindow({
 							url: 'pro-list.html?productId=' + selected.typeId
 						});
@@ -414,6 +408,7 @@
 						$(".autocompleter-list").css("height", $(document).height());
 					} else {
 						$('#search-hot').show();
+						$("body").css("overflow","hidden");
 						$(".autocompleter-list").css("height", "auto");
 					}
 				});
@@ -424,6 +419,7 @@
 			$(document).on('tap', '.my-btn-cancel', function() {
 				$(this).hide();
 				$('#search-hot').hide();
+				$("body").css("overflow","auto");
 				$('#search').autocompleter("close");
 				$(".autocompleter-list").empty().css("height", "auto");
 				$('.autocompleter-hint').removeClass('autocompleter-hint-show').empty();

+ 6 - 6
aiberle/my-center.html

@@ -21,7 +21,7 @@
 
 	<body>
 		<footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
-			<a class="mui-tab-item mui-active">
+			<a class="mui-tab-item">
 				<span class="iconfont icon-shouye"></span>
 				<span class="mui-tab-label">首页</span>
 			</a>
@@ -33,7 +33,7 @@
 				<span class="iconfont icon-dingdan"></span>
 				<span class="mui-tab-label">订单</span>
 			</a>
-			<a class="mui-tab-item">
+			<a class="mui-tab-item mui-active">
 				<span class="iconfont icon-wode"></span>
 				<span class="mui-tab-label">我的</span>
 			</a>
@@ -56,10 +56,10 @@
 						</div>
 						券包
 					</a>
-					<a class="mui-control-item">
+					<!--<a class="mui-control-item">
 						<div class="iconfont icon-zhibaoqia"></div>
 						质保卡
-					</a>
+					</a>-->
 					<a class="mui-control-item" href="order-list.html">
 						<div class="iconfont icon-dingdan"></div>
 						订单
@@ -107,7 +107,7 @@
 						</div>
 					</div>
 				</li>
-				<li class="mui-table-view-cell" href="understanding-brands.html">
+				<!--<li class="mui-table-view-cell" href="understanding-brands.html">
 					<div class="mui-table">
 						<div class="mui-table-cell mui-col-xs-5">
 							<span class="iconfont icon-dansheng"></span>Aiberle诞生
@@ -136,7 +136,7 @@
 							<span class="mui-icon mui-icon-arrowright"></span>
 						</div>
 					</div>
-				</li>
+				</li>-->
 			</ul>
 			<br />
 		</div>

文件差異過大導致無法顯示
+ 5 - 12
aiberle/pro-list.html