| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | 
							- <!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" />
 
- 		<style>
 
- 		
 
- 		</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>
 
- 	<div class="loading-bg">
 
- 			<div class="mui-loading">
 
- 				<div class="mui-spinner">
 
- 				</div>
 
- 				  加载中...
 
- 			</div>
 
- 		</div>
 
- 	
 
- 	<div class="mui-content">
 
- 		<!--下拉刷新容器-->
 
- 		<div id="pullrefresh_yhq_list" class="mui-content mui-scroll-wrapper">
 
- 			<div class="mui-scroll">
 
- 				<!--数据列表-->
 
- 				<ul class="my-yhq-list">
 
- 						
 
- 				</ul>
 
- 			</div>
 
- 		</div>
 
- 	</div>
 
- 	<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>
 
- 	
 
- 	var couponId = getParam("couponId");
 
- 	
 
- 	mui.ready(function() {
 
- 		var currentDate = new Date(2019, 3, 18, 23, 59, 59, 0);
 
- 				var newDate = new Date();
 
- 				if(currentDate <= newDate){
 
- 					 mui.alert("本次活动已经结束,期待您的下次参与!",'提示',function () {
 
-     				 	location.href = 'index.html';
 
-     				 });
 
-     				 return false;
 
- 				}
 
- 				
 
-        $.ajax( base_path + '/wechat/coupon/recCouRen?dates=' + new Date().getTime(),{
 
-                 data :{
 
-                     couponId : couponId
 
-                 },
 
-                 dataType:'json',
 
-                 type:'post',
 
-                 xhrFields: {
 
- 					withCredentials: true
 
- 				},
 
- 				crossDomain: true,
 
-                 timeout:15000,
 
-                 success:function(dt){
 
-                 	console.log(dt);
 
-                 	if(dt.isRedirect) {
 
-                 		location.href = dt.redirectURL;
 
-             		} else {
 
-             			if(dt.status){
 
-             				 mui.alert('恭喜您已领取换新代金券,可在“会员中心—券包”查看。点击下方确定,马上换新选购吧。','温馨提示',function () {
 
-             				 	location.href = 'pro-details.html?productId=33';
 
-             				 });
 
-             			}else{
 
-             				 mui.alert(dt.message,'温馨提示',function () {
 
-             				 	location.href = 'index.html';
 
-             				 });
 
-             			}
 
-                     }
 
-                 },
 
-                 error:function(xhr,type,errorThrown){
 
-                     //异常处理;
 
-                     console.log(xhr);
 
-                 }
 
-             });
 
- 		console.log("页面加载完毕")
 
- 		document.querySelector('.loading-bg').style.display = 'none';
 
- 	});
 
- 	</script>
 
- 	</body>
 
- </html>
 
 
  |