Explorar o código

上朵双旦活动

wangxiaoming %!s(int64=5) %!d(string=hai) anos
pai
achega
369ae0d9b4
Modificáronse 2 ficheiros con 51 adicións e 29 borrados
  1. 34 7
      tooth/clearing.html
  2. 17 22
      tooth/index.html

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 34 - 7
tooth/clearing.html


+ 17 - 22
tooth/index.html

@@ -58,18 +58,22 @@
 									<img src="images/index_shuatou_2.png">
 								</a>
 							</div>
-							<div class="mui-slider-item">
+							<div class="mui-slider-item" tourl="pro-details.html?colorId=60">
+								<a>
+									<img src="images/1225_index.jpg">
+								</a>
+							</div>
+							<div class="mui-slider-item" tourl="pro-details.html?colorId=100">
 								<a>
 									<img src="images/banner-7.jpg">
 								</a>
 							</div>
-							<div class="mui-slider-item">
+							<div class="mui-slider-item" tourl="pro-details.html?colorId=42">
 								<a>
 									<img src="images/banner-1.jpg">
 								</a>
 							</div>
 							<div class="mui-slider-item">
-								<a>
 									<img src="images/banner-2.jpg">
 								</a>
 							</div>
@@ -346,6 +350,15 @@
 						location.href = "cash-coupon.html?id=" + th.attr("name");
 					}
 				});
+				
+				$(document).on('tap', '.mui-slider-item', function() {
+					var th = $(this);
+					console.log(th.attr("tourl"))
+					if (isEmpty(th.attr("tourl"))) {
+						location.href = th.attr("tourl");
+					}
+				});
+				
 
 				//刷新用户信息
 				refreshUserInfo();
@@ -374,15 +387,6 @@
 
 			//更新用户信息
 			function refreshUserInfo(){
-				var oldrefreshUserInfo =  null;
-				if (!window.localStorage) {
-					console.log("您的浏览器不支持localStorage");
-				} else {
-					oldrefreshUserInfo = localStorage.getItem('refreshUserDate');
-				}
-				var nowdate = new Date();
-				var nowrefreshUserDate = nowdate.format("yyyy-MM-dd");
-				if(nowrefreshUserDate != oldrefreshUserInfo){
 					$.ajax(base_path + '/getUserInfo?dates=' + new Date().getTime(), {
 						dataType: 'json',
 						type: 'post',
@@ -394,23 +398,14 @@
 						success: function(dt) {
 							if(dt.isRedirect) {
 								location.href = dt.redirectURL;
-							} else {
-								if (!window.localStorage) {
-									console.log("您的浏览器不支持localStorage");
-								} else {
-									//自定义json数据
-									var date = new Date();
-									var refreshUserDate = date.format("yyyy-MM-dd");
-									localStorage.setItem('refreshUserDate', refreshUserDate);
-								}
 							}
 						},
 						error: function(xhr, type, errorThrown) {
 							console.log(xhr)
 						}
 					});
-				}
 			}
+			
 
 			//分享
 			// function fenxiang(){