| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 | <!DOCTYPE html><html>	<head>		<meta charset="UTF-8">		<title>福利社</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" />		<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>		<!--<script>			window.repleFlag = true;			window.repleWxData = {			    "imgUrl":'https://w.iamberry.com/tooth/common/images/soodoShare.jpg',			    "link":window.location.href.split("#")[0],			    "desc":"让你的“笑容停留在18岁”",			    "title":"【soodo上朵】柔性声波电动牙刷,赠送您60元现金券",			};						function fenxiang(){				var src = location.href;								src = "https://s.iamberry.com/soodo/wechat/pro-details.html?colorId="+colorId;								window.wxFriend = {										"appId": "",										"imgUrl": 'https://s.iamberry.com/soodo/wechat/images/indexShare.jpg',										"link": src,										"desc": '让你的“笑容停留在18岁”',										"title": "【soodo上朵】柔性声波电动牙刷,赠送您60元现金券",										"netError": "您的网络异常,请刷新重试!如多次刷新无效,请向我们反应 ~",										"shareTimeSuccess": "分享成功",										"shareTimeCancel": "已取消分享",										"shareAppSuccess": "分享成功!",										"shareAppCancel": "已取消分享"								};								getConfig();			}		</script>-->	</head>	<body>			<div class="mui-content">					<img class="fulishe" src="images/fulishe_1.jpg" style="margin: 5%;width: 90%;"/>					<div style="text-align: center;    margin-bottom: 20px;">					<!--<button type="button" class="my-btn-receive  fulishe"  style="width: 168px;height: 38px;padding: 0px;">立即领取</button>-->					<!--<div class="mui-content-padded">						<h6>你的笑容,我来守护右上角点击,分享给好友,守护他/她的笑容</h6>					</div>-->					</div>										<!--<img src="images/fulishe_2.jpg" class="goToShopping" style="margin: 5%;width: 90%;"/>					<div style="text-align: center;margin-bottom: 20px;">						<button type="button" class="my-btn-receive goToShopping" style="width: 168px;height: 38px;padding: 0px;    background: #CEB67D;">立即抢购</button>					</div>-->								</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" src="js/wechat-utils-1.0.js"></script>	<script type="text/javascript">			window.addEventListener('pageshow', function(e) {			// 通过persisted属性判断是否存在 BF Cache			if(e.persisted) {				location.reload();			}		});				var notReceive=null;	//先判断是否领取过		mui.ready(function(){		console.log("页面加载完毕");		$(".loading").hide().css("opacity", "0");//隐藏(正在加载...)				var src = location.href;			src = "https://s.iamberry.com/soodo/wechat/welfare-service.html";			window.wxFriend = {					"appId": "",					"imgUrl": 'https://s.iamberry.com/soodo/wechat/images/indexShare.jpg',					"link": src,					"desc": '让你的齿龄停留在18岁',					"title": "【soodo上朵】柔性声波电动牙刷,赠送您60元现金券",					"netError": "您的网络异常,请刷新重试!如多次刷新无效,请向我们反应 ~",					"shareTimeSuccess": "分享成功",					"shareTimeCancel": "已取消分享",					"shareAppSuccess": "分享成功!",					"shareAppCancel": "已取消分享"			};			});	 	mui('body').on('tap', '.fulishe', function(event) {		if(notReceive){			addAewPeople();		}else{			mui.openWindow({					url: 'pro-list.html'			});		}	});		mui('body').on('tap', '.goToShopping', function(event) {		location.href="pro-details.html?colorId=44";	});					$.ajax(base_path + '/wechat/coupon/getIsReceive?dates=' + new Date().getTime(), {					data: {},// ajax参数 没有则不写					dataType: 'json',					xhrFields: {						withCredentials: true					},					crossDomain: true,					type: 'get',					timeout: 15000,					success: function(dt) {						if(dt.isRedirect) {//先判断isRedirect,然后跳转redirectURL							location.href = dt.redirectURL;						} else {							if(dt.status) {//判断接口返回状态status								notReceive=1;							} else {								if(dt.resultCode == "505"){									mui.alert("需要成为会员才能领取该优惠券", function() {										location.href = "my-center.html?dates=" + new Date().getTime(); // 前往个人中心									});								}else{									mui.alert("已经领取该优惠券了,去下单", function() {										location.href = "pro-list.html?dates=" + new Date().getTime(); // 前往产品列表									});								}							}						}					},					error: function(xhr, type, errorThrown) {						console.log(xhr);						mui.alert("领取现金券失败!网络错误");					}				});		//领取新人现金券	function addAewPeople(){						if(notReceive){				$.ajax(base_path + '/wechat/coupon/addAewPeople?dates=' + new Date().getTime(), {				data: {},// ajax参数 没有则不写				dataType: 'json',				xhrFields: {					withCredentials: true				},				crossDomain: true,				type: 'get',				timeout: 15000,				success: function(dt) {					if(dt.isRedirect) {//先判断isRedirect,然后跳转redirectURL						location.href = dt.redirectURL;					} else {						if(dt.status) {//判断接口返回状态status							notReceive=null;							mui.alert("领取成功,去下单", function() {								location.href = "pro-list.html?dates=" + new Date().getTime(); // 前往产品列表							});							return false;							//$(".fulishe").text("已领取 去下单");						} else {							if(dt.resultCode == "505"){								mui.alert("需要成为会员才能领取该优惠券", function() {									location.href = "my-center.html?dates=" + new Date().getTime(); // 前往个人中心								});							}else{								mui.alert("领取失败!");							}						}					}				},				error: function(xhr, type, errorThrown) {					console.log(xhr);					mui.alert("领取新人现金券失败!网络错误");				}			});			}					}	</script>	</body></html>
 |