Ver código fonte

上朵双十二

wangxiaoming 5 anos atrás
pai
commit
b87141541b

+ 98 - 0
tooth/index-2018-12-12.html

@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<meta charset="UTF-8">
+		<title>soodo上朵</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
+		<meta name="apple-mobile-web-app-capable" content="yes">
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
+		<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
+		<link rel="stylesheet" type="text/css" href="css/iconfont.css" />
+		<link rel="stylesheet" type="text/css" href="css/main.css" />
+		<style>
+			.ul-2018-12-12 img{width: 100%;display: block;}
+		</style>
+		<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
+		<script>
+			//屏蔽分享
+			document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
+				WeixinJSBridge.call('hideOptionMenu');
+			});
+		</script>
+	</head>
+	<body>
+<footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
+<a class="mui-tab-item">
+<span class="iconfont icon-shouye"></span>
+<span class="mui-tab-label">首页</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-liebiao"></span>
+<span class="mui-tab-label">列表</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-gouwuche"></span>
+<span class="mui-tab-label">购物车</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-huiyuan"></span>
+<span class="mui-tab-label">会员</span>
+</a>
+</footer>
+		<div class="mui-content">
+			<ul class="ul-2018-12-12">
+				<li>
+					<img src="images/wap-12_01.jpg" />
+				</li>
+				<li>
+					<img src="images/wap-12_02.jpg" />
+				</li>
+				<li>
+					<img src="images/wap-12_03.jpg" />
+				</li>
+				<li name="pro-list.html">
+					<img src="images/wap-12_04.jpg" />
+				</li>
+				<li name="pro-details.html?colorId=42">
+					<img src="images/wap-12_05.jpg" />
+				</li>
+				<li name="pro-details.html?colorId=60">
+					<img src="images/wap-12_06.jpg" />
+				</li>
+				<li name="pro-details.html?colorId=76">
+					<img src="images/wap-12_07.jpg" />
+				</li>
+				<li name="pro-details.html?colorId=310">
+					<img src="images/wap-12_08.jpg" />
+				</li>
+			</ul>
+		</div>
+		<!-- 加载ing begin-->
+		<div class="loading covers">
+			<div class="loading-bj"></div>
+			<p>正在加载...</p>
+		</div>
+		<!-- 加载ing end -->
+	<script type="text/javascript" src="js/mui.min.js"></script>
+	<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
+	<script type="text/javascript" src="js/main.js"></script>
+	<script type="text/javascript">
+		window.addEventListener('pageshow', function(e) {
+				// 通过persisted属性判断是否存在 BF Cache
+				if(e.persisted) {
+					location.reload();
+				}
+		});
+	mui.ready(function(){
+		$(".loading").hide().css("opacity", "0");//隐藏(正在加载...)
+	});	
+	//跳转订单详情
+	$(document).on('tap','.ul-2018-12-12>li',function(){
+		console.log($(this).attr("name"))
+		if(typeof($(this).attr("name"))!="undefined"){
+			location.href=$(this).attr("name");
+		}
+	});
+	</script>
+	</body>
+</html>

+ 117 - 0
tooth/index-2019-06-01.html

@@ -0,0 +1,117 @@
+<!DOCTYPE html>
+<html>
+	<head>
+		<meta charset="UTF-8">
+		<title>soodo上朵</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
+		<meta name="apple-mobile-web-app-capable" content="yes">
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
+		<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
+		<link rel="stylesheet" type="text/css" href="css/iconfont.css" />
+		<link rel="stylesheet" type="text/css" href="css/main.css" />
+		<style>
+			.ul-content{padding-bottom: 5%;}
+			.ul-content img{width: 100%;display: block;}
+			.ul-content .iteam-3{display: table;width: 95%;margin: 0 auto;background: url(images/20190501_789.png) left top no-repeat;background-size: 100%;}
+			.ul-content .iteam-3 .img{display: table-cell;width: 33%;}
+			.footer-dic{font-size: 12px;color: #333;text-align: center;margin: 20px 0 30px 0;}
+		</style>
+		<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
+		<script>
+			//屏蔽分享
+			document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
+				WeixinJSBridge.call('hideOptionMenu');
+			});
+		</script>
+	</head>
+	<body>
+<footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
+<a class="mui-tab-item">
+<span class="iconfont icon-shouye"></span>
+<span class="mui-tab-label">首页</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-liebiao"></span>
+<span class="mui-tab-label">列表</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-gouwuche"></span>
+<span class="mui-tab-label">购物车</span>
+</a>
+<a class="mui-tab-item">
+<span class="iconfont icon-huiyuan"></span>
+<span class="mui-tab-label">会员</span>
+</a>
+</footer>
+		<div class="mui-content" style="background: #f7e4c4;">
+			<ul class="ul-content">
+				<li>
+					<img src="images/2019060101.jpg" />
+				</li>
+				<li>
+					<img style="width: 70%;display: block;margin: 7% auto 4% auto;" src="images/2019060102.png" />
+				</li>
+				<li name="pro-details.html?colorId=335">
+					<img style="margin: 0 auto 12px auto;width: 75%;" src="images/2019060103.png" />
+				</li>
+				<li name="pro-details.html?colorId=344">
+					<img style="margin: 0 auto 12px auto;width: 75%;" src="images/2019060104.png" />
+				</li>
+			</ul>
+		</div>
+		<!-- 加载ing begin-->
+		<div class="loading covers">
+			<div class="loading-bj"></div>
+			<p>正在加载...</p>
+		</div>
+		<!-- 加载ing end -->
+	<script type="text/javascript" src="js/mui.min.js"></script>
+	<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
+	<script type="text/javascript" src="js/main.js"></script>
+	<script type="text/javascript">
+		window.addEventListener('pageshow', function(e) {
+				// 通过persisted属性判断是否存在 BF Cache
+				if(e.persisted) {
+					location.reload();
+				}
+		});
+	mui.ready(function(){
+		$.ajax(base_path + '/wechat/coupon/re_coupon', {
+        data: {
+           couponId : '20003'
+        },
+        dataType: 'json',
+        type: 'post',
+        timeout: 15000,
+        xhrFields: {
+			withCredentials: true
+		},
+		crossDomain: true,
+        success: function(dt) {
+        	if(dt.isRedirect) {
+				location.href = dt.redirectURL;
+			} else {
+        	  if(dt.status){
+				//领取成功
+				mui.alert('领取了40元优惠券一张,祝您儿童节愉快!');
+			  }else{
+				//失败
+			  }
+			}
+        },
+        error: function(xhr, type, errorThrown) {
+            errorfn(xhr)
+        }
+    });
+		$(".loading").hide().css("opacity", "0");//隐藏(正在加载...)
+	});	
+	//跳转详情
+	$(document).on('tap','.ul-content>li',function(){
+		console.log($(this).attr("name"))
+		if(typeof($(this).attr("name"))!="undefined"){
+			location.href=$(this).attr("name");
+		}
+	});
+	</script>
+	</body>
+</html>

+ 45 - 4
tooth/index-2019-12-12.html

@@ -53,7 +53,8 @@
 			<div><img src="images/20191212/index-ban.jpg" style="width: 100%;"></div>
 			<div><img src="images/20191212/lingquan.png" style="width: 100%;"></div>
 			
-			<div class="ul_class">
+			    
+			<div class="ul_class" style="overflow: hidden; padding-bottom: 20px;">
 				<ul>
 					<li class="ul_li_coupon get_coupon" couponId="90000" style="margin-left: 10%;"><img src="images/20191212/40_coupon.png" style=""></li>
 					<li class="ul_li_coupon get_coupon" couponId="90001" style="margin-left: 10%;"><img src="images/20191212/90_coupon.png" style=""></li>
@@ -90,7 +91,7 @@
 		<script src="js/jquery-2.1.1.min.js"></script>
 		<script src="js/swiper.min.js"></script>
 		<script src="js/main.js"></script>
-		<!-- <script src="js/wechat-utils-1.0.js"></script> -->
+		<script src="js/wechat-utils-1.0.js"></script>
 		<script>
 			//ready事件
 			mui.ready(function() {
@@ -167,7 +168,7 @@
 				if (!window.localStorage) {
 					console.log("您的浏览器不支持localStorage");
 				} else {
-					oldrefreshUserInfo = localStorage.getItem('refreshUserInfo');
+					oldrefreshUserInfo = localStorage.getItem('refreshUserDate');
 				}
 				var nowdate = new Date();
 				var nowrefreshUserDate = nowdate.format("yyyy-MM-dd");
@@ -189,7 +190,7 @@
 								} else {
 									//自定义json数据
 									var date = new Date();
-									var refreshUserDate = date.Format("yyyy-MM-dd");
+									var refreshUserDate = date.format("yyyy-MM-dd");
 									localStorage.setItem('refreshUserDate', refreshUserDate);
 								}
 							}
@@ -201,6 +202,46 @@
 				}
 			}
 			
+			
+			/**
+			 * 该方法用于将Undefined转换为空值
+			 * @param val
+			 */
+			function convertUndefinedToEmpty(val) {
+			    if (undefined == val || null == val||typeof val == undefined || typeof val == 'undefined'|| 'undefined' == val) {
+			        val = "";
+			    }
+			    return val;
+			}
+			
+			/**
+			 * 该方法用于将Undefined转换为空值
+			 * @param val
+			 */
+			function cufte(val) {
+			    return convertUndefinedToEmpty(val);
+			}
+			
+			/**
+			 * 空值返回0,其他值返回原值
+			 * @param val
+			 */
+			function cufteInt(val) {
+			    if(convertUndefinedToEmpty(val) == "")
+			        return 0;
+			    return val;
+			}
+			
+			/**
+			 * 空值返回false
+			 * @param val
+			 */
+			function isEmpty(val) {
+			    if(convertUndefinedToEmpty(val) == "")
+			        return false;
+			    return true;
+			}
+			
 			//分享
 			function fenxiang(){
 				var src = location.href;

+ 69 - 7
tooth/index.html

@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <html>
 	<head>
 		<meta charset="utf-8">
@@ -59,6 +60,11 @@
 							</div>
 							<div class="mui-slider-item">
 								<a>
+									<img src="images/banner-7.jpg">
+								</a>
+							</div>
+							<div class="mui-slider-item">
+								<a>
 									<img src="images/banner-1.jpg">
 								</a>
 							</div>
@@ -74,7 +80,7 @@
 							</div>
 							<div class="mui-slider-item mui-slider-item-duplicate">
 								<a>
-									<img src="images/banner-1.jpg">
+									<img src="images/banner-7.jpg">
 								</a>
 							</div>
 						</div>
@@ -82,11 +88,42 @@
 							<div class="mui-indicator mui-active"></div>
 							<div class="mui-indicator"></div>
 							<div class="mui-indicator"></div>
+							<div class="mui-indicator"></div>
 						</div>
 					</div>
 					<div class="index-banner" style="display: none;"></div>
 				</div>
 				<div>
+					<img width="100%" src="images/index-tit-0.jpg" />
+				</div>
+				<div>
+					<a class="color_a" href="pro-details.html?colorId=101">
+						<img width="100%" src="images/index-0.jpg" />
+					</a>
+				</div>
+				<div>
+					<ul class="mui-table-view mui-grid-view my-grid-view-no">
+						<li class="mui-table-view-cell mui-media mui-col-xs-4">
+							<a class="color_a" href="pro-details.html?colorId=101">
+								<img class="mui-media-object" src="images/product/a-bai.jpg">
+								<div class="mui-media-body">贝母白</div>
+							</a>
+						</li>
+						<li class="mui-table-view-cell mui-media mui-col-xs-4">
+							<a class="color_a" href="pro-details.html?colorId=100">
+								<img class="mui-media-object" src="images/product/a-fen.jpg">
+								<div class="mui-media-body">樱花粉</div>
+							</a>
+						</li>
+						<li class="mui-table-view-cell mui-media mui-col-xs-4">
+							<a class="color_a" href="pro-details.html?colorId=102">
+								<img class="mui-media-object" src="images/product/a-hei.jpg">
+								<div class="mui-media-body">幻影黑</div>
+							</a>
+						</li>
+					</ul>
+				</div>
+				<div>
 					<img width="100%" src="images/index-tit-1.jpg" />
 				</div>
 				<div>
@@ -133,6 +170,31 @@
 					</div>
 				</div>
 				<div>
+					<img width="100%" src="images/index-tit-6.jpg" />
+				</div>
+				<div>
+					<a class="color_a" href="pro-details.html?colorId=103">
+						<img width="100%" src="images/index-3.jpg" />
+					</a>
+				</div>
+				<div>
+					<br />
+					<ul class="mui-table-view mui-grid-view my-grid-view-no">
+						<li class="mui-table-view-cell mui-media mui-col-xs-6">
+							<a class="color_a" href="pro-details.html?colorId=103">
+								<img class="mui-media-object" src="images/product/r_bai.jpg">
+								<div class="mui-media-body">柔羽呵护刷头</div>
+							</a>
+						</li>
+						<li class="mui-table-view-cell mui-media mui-col-xs-6">
+							<a class="color_a" href="pro-details.html?colorId=108">
+								<img class="mui-media-object" src="images/product/r_hei.jpg">
+								<div class="mui-media-body">柔羽炭洁刷头</div>
+							</a>
+						</li>
+					</ul>
+				</div>
+				<div>
 					<img width="100%" src="images/index-tit-2.jpg" />
 				</div>
 				<div>
@@ -193,7 +255,7 @@
 		<script src="js/jquery-2.1.1.min.js"></script>
 		<script src="js/swiper.min.js"></script>
 		<script src="js/main.js"></script>
-		<script src="js/wechat-utils-1.0.js"></script>
+		<!--<script src="js/wechat-utils-1.0.js"></script>-->
 		<script>
 			window.addEventListener('pageshow', function(e) {
 				// 通过persisted属性判断是否存在 BF Cache
@@ -229,7 +291,7 @@
 				//banner轮播图
 				var slider = mui("#slider");
 				slider.slider({
-					interval: 5000 //interval设置为0(毫秒)时不轮播
+					interval: 3000 //interval设置为0(毫秒)时不轮播
 				});
 				//牙刷图swiper左右切换
 				var swiper = new Swiper('.swiper-container', {
@@ -284,7 +346,7 @@
 						location.href = "cash-coupon.html?id=" + th.attr("name");
 					}
 				});
-				
+
 				//刷新用户信息
 				refreshUserInfo();
 				//设置分享
@@ -309,14 +371,14 @@
 					$(".year-dalog").hide();
 				}, 500);
 			});
-			
+
 			//更新用户信息
 			function refreshUserInfo(){
 				var oldrefreshUserInfo =  null;
 				if (!window.localStorage) {
 					console.log("您的浏览器不支持localStorage");
 				} else {
-					oldrefreshUserInfo = localStorage.getItem('refreshUserInfo');
+					oldrefreshUserInfo = localStorage.getItem('refreshUserDate');
 				}
 				var nowdate = new Date();
 				var nowrefreshUserDate = nowdate.format("yyyy-MM-dd");
@@ -349,7 +411,7 @@
 					});
 				}
 			}
-			
+
 			//分享
 			// function fenxiang(){
 			// 	var src = location.href;

Diferenças do arquivo suprimidas por serem muito extensas
+ 501 - 0
tooth/wechat_activity.html