Browse Source

免费领取充电器

wangxiaoming 7 years ago
parent
commit
3f2ac6650f
2 changed files with 11 additions and 3 deletions
  1. 8 2
      tooth/free-receive-charger.html
  2. 3 1
      tooth/receive-charger.html

+ 8 - 2
tooth/free-receive-charger.html

@@ -57,7 +57,7 @@
 			</div>
 			<div class="mui-content-padded">
 			<p>提示:</p>
-			<p>1、每位会员每年可免费领取一个充电器</p>
+			<p>1、每位会员每一支已注册产品,每年可免费领取一次充电器(每次只限领取一个充电器</p>
 			<p>2、同一年内,首次领取只需支付10元邮费,充电器无需支付任何费用</p>
 			<p>3、同一年内,第二次领用充电器需支付充电器费用10元,以及10元的邮费</p>
 			<p>4、领取过程如有疑问,请联系客服咨询</p>
@@ -110,7 +110,13 @@
 								location.href = dt.redirectURL;
 							} else {
 								console.log(dt)
-								$(".pay_price").text(accDiv(dt.data.price,100));
+								if(dt.status) {
+									$(".pay_price").text(accDiv(dt.data.price,100));
+								}else{
+									mui.alert(dt.message, function() {
+										location.href = "index.html?dates=" + new Date().getTime(); // 前往首页
+									});
+								}
 							}
 						},
 						error: function(xhr, type, errorThrown) {

+ 3 - 1
tooth/receive-charger.html

@@ -121,7 +121,9 @@
 										$(".btn-submit").show();
 //									}
 								}else{
-									mui.alert("获取数据失败!");
+									mui.alert(dt.message, function() {
+										location.href = "index.html?dates=" + new Date().getTime(); // 前往首页
+									});
 								}
 								$(".loading").hide(); //隐藏(正在加载...)
 							}