瀏覽代碼

添加3.6折空气净化器

wangxiaoming 5 年之前
父節點
當前提交
b06fe85f2e

+ 3 - 2
aiberle/clearing.html

@@ -261,6 +261,7 @@
 															checked = '';
 														}
 														break;
+													case 50001:
 													case 50000:
 														if(!hasKqjhq){
 															disabled = 'disabled="disabled"'
@@ -597,7 +598,7 @@
 				var couponid = parseInt($("input[name=checkbox]:checked").attr('couponid'));
 				
 				//1、购买除滤芯外产品,下单享受95折   2、购买滤芯产品,下单享受88折
-				if(userIsVip == 2 && couponid != 40001 && couponid != 50000){
+				if(userIsVip == 2 && couponid != 40001 && couponid != 50000 && couponid != 50001){
 					$('.shopping-cart-list').find(".mui-table-view-cell").each(function(){
 						var colortype = $(this).attr('colortype');
 						var productdiscount = $(this).attr('productdiscount');
@@ -656,7 +657,7 @@
 								var redu = $("input[name=checkbox]:checked").attr("val")
 								redu = accAdd(1,-redu);
 								
-								if(couponid == 50000){
+								if(couponid == 50000 || couponid == 50001){
 									if(kqjhj_amount_50000 > 0){
 										cout = accMul(kqjhj_amount_50000,redu);
 									}

+ 103 - 0
aiberle/ia_air_purifier_01.html

@@ -0,0 +1,103 @@
+<!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: 107px;"></div>
+			<div class="receive"><img src="images/ia_air_receive.png" alt="" style="width: 66%;display: block;margin-left: 19%;margin-top: 20px;margin-bottom: 35px;"></div>
+			<div class="product_to"><img src="images/ia_air_purifier_product.jpg" alt="" style="width: 66%;display: block;margin-left: 18%;    margin-bottom: 85px;"></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/getUserInfo?dates=' + new Date().getTime(), {
+				dataType: 'json',
+				type: 'post',
+				timeout: 15000,
+				xhrFields: {
+					withCredentials: true
+				},
+				crossDomain: true,
+				success: function(dt) {
+					if(dt.isRedirect) {
+						location.href = dt.redirectURL;
+					} else {
+						console.log("用户信息刷新成功或今日已经刷新");
+					}
+				},
+				error: function(xhr, type, errorThrown) {
+					console.log(xhr)
+				}
+			});
+		});
+		
+		
+		$(document).on('tap', '.receive', function() {
+			$.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
+				data: {
+					"couponId": 50001
+				},
+				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.alert(dt.message, function() {
+							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>

二進制
aiberle/images/ia_air_purifier_back.jpg


二進制
aiberle/images/ia_air_purifier_product.jpg


二進制
aiberle/images/ia_air_receive.jpg


二進制
aiberle/images/ia_air_receive.png