Browse Source

爱贝源添加3折空气净化器券

wangxiaoming 5 years ago
parent
commit
06139f097f

+ 78 - 0
aiberle/ia_air_purifier.html

@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html>
+
+	<head>
+		<meta charset="UTF-8">
+		<meta http-equiv="pragma" content="no-cache">
+		<meta http-equiv="cache-control" content="no-cache">
+		<meta http-equiv="expires" content="0">
+		<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">
+		<meta name="format-detection" content="telphone=no, email=no" />
+		<title>Aiberle爱贝源-内购</title>
+		<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>
+			.back{background: url(images/ia_air_purifier_back.jpg);background-size: 100%; background-repeat:no-repeat;}
+		</style>
+	</head>
+	
+	<body>
+		<div class="back" style="width: 100%; height: 100%;">
+			<div style="height: 355px;"></div>
+			<div class="product_to"><img src="images/ia_air_purifier_product.jpg" alt="" style="width: 66%;display: block;margin-left: 18%;"></div>
+			<div><img src="images/ia_air_purifier.jpg" alt="" style="width: 20%;display: block;margin-left: 40%;margin-top: 9px;"></div>
+			<div style="height: 20px; text-align: center; font-size: 13px; color: #ffffff; margin-bottom: 0px;">扫码领券购买</div>
+		</div>
+		
+		<script src="js/mui.min.js"></script>
+		<script src="js/jquery-2.1.1.min.js"></script>
+		<script src="js/jquery.autocompleter.js"></script>
+		<script src="js/main.js"></script>
+	</body>
+	<script>
+		mui.ready(function() {
+			$.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
+				data: {
+					"couponId": 50000
+				},
+				dataType: 'json',
+				xhrFields: {
+					withCredentials: true
+				},
+				crossDomain: true,
+				type: 'post',
+				timeout: 15000,
+				success: function(dt) {
+					if(dt.isRedirect) {
+						location.href = dt.redirectURL;
+					} else {
+						if(dt.status) {
+							mui.toast(dt.message);
+						} else {
+							mui.toast(dt.message);
+						}
+						mui.openWindow({
+							url: 'pro-details.html?productId=53'
+						});
+					}
+				},
+				error: function(xhr, type, errorThrown) {
+					console.log(xhr);
+					mui.alert("领取失败!网络出小差了", function() {
+					});
+				}
+			});
+		});
+		
+		
+		$(document).on('tap', '.product_to', function() {
+			mui.openWindow({
+				url: 'pro-details.html?productId=53'
+			});
+		});
+	</script>
+
+</html>

BIN
aiberle/images/ia_air_purifier.jpg


BIN
aiberle/images/ia_air_purifier_back.jpg


BIN
aiberle/images/ia_air_purifier_product.jpg