Explorar o código

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

liujiankang %!s(int64=7) %!d(string=hai) anos
pai
achega
0f7c3c9445
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  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";
 												}
 											}