Преглед на файлове

修改上朵牙刷扫描注册流程

liujiankang преди 7 години
родител
ревизия
0f7c3c9445
променени са 1 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 7 3
      tooth/register-vip.html

+ 7 - 3
tooth/register-vip.html

@@ -206,11 +206,15 @@
 									if(dt.status) {//判断接口返回状态status
 										if(dt.data.isActivation){
 											//已激活
-											
 											mui.alert('该产品已被激活!', '提醒', function() {  
 												location.href="my-center.html";
 							               }); 
 										}
+										if(dt.data.memberInfo.userStatus != 2){
+											//未关注
+											mui.alert('请先关注公众号再激活!', '提醒', function() {  
+												location.href="follow-me-tooth.html";
+							               }); 
 										//填充用户数据
 										$("#ipt-name").val(dt.data.memberInfo.userName);
 										if(dt.data.memberInfo.userSex != null){
@@ -297,13 +301,13 @@
 												if(isFocusOn == 1 || isFocusOn == 0){//未关注
 													location.href="member-follow-me.html";
 												}else{//以关注
-													location.href="my-center.html";
+													location.href="welfare-service.html";
 												}
 											}else{//非会员
 												if(isFocusOn == 1 || isFocusOn == 0){//未关注
 													location.href="follow-me.html";
 												}else{//以关注
-													location.href="my-center.html";
+													location.href="welfare-service.html";
 												}
 											}