Browse Source

feat: 新增新用户未选择区域逻辑跳转

zhangyuhan 3 năm trước cách đây
mục cha
commit
9f603de2ef

+ 8 - 3
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -445,8 +445,9 @@ var SuperSearch = {
       // --> 已设置10组关键词,订阅失败提示
       // --> 小于10组
       //    --> 历史老用户-未选择区域-提示更新
-      //           --> -选择区域-关键词列表
-      //    --> 新用户-未选择区域-关键词列表
+      //           --> 选择区域-关键词列表
+      //    --> 新用户-未选择区域-订阅页面
+      //           --> 选择区域-关键词列表
 
       var isOldUser = false
       var nowKeyLength = 8
@@ -536,8 +537,12 @@ var SuperSearch = {
           });
           if(rFlag){
             SuperSearch.setSessionStorage();
+            var goHref = "/jyapp/vipsubscribe/toSetKeyWordPage";
+            if (!isSelectArea) {
+              goHref = "/jyapp/vipsubscribe/toSubVipSetPage";
+            }
             setTimeout(function(){
-              window.location.href = "/jyapp/vipsubscribe/toSetKeyWordPage";
+              window.location.href = goHref
             },100);
           }
         }

+ 9 - 4
src/web/staticres/js/wxSupersearch.js

@@ -429,8 +429,9 @@ var SuperSearch = {
       // --> 已设置10组关键词,订阅失败提示
       // --> 小于10组
       //    --> 历史老用户-未选择区域-提示更新
-      //           --> -选择区域-关键词列表
-      //    --> 新用户-未选择区域-关键词列表
+      //           --> 选择区域-关键词列表
+      //    --> 新用户-未选择区域-订阅页面
+      //           --> 选择区域-关键词列表
 
       var isOldUser = false
       var nowKeyLength = 8
@@ -488,7 +489,7 @@ var SuperSearch = {
           window.location.href = "/front/vipsubscribe/toSetKeyWordPage";
         }
       }else{
-      // 免费用户
+          // 免费用户
           isOldUser = !jyAddInfo.isUpgrade
           if (nowKeyLength >= 10) {
             return EasyAlert.show("您已经超过订阅<br>关键字上限");
@@ -517,7 +518,11 @@ var SuperSearch = {
         });
         if(rFlag){
             SuperSearch.setSessionStorage();
-            window.location.href = "/front/vipsubscribe/toSetKeyWordPage";
+            var goHref = "/front/vipsubscribe/toSetKeyWordPage";
+            if (!isSelectArea) {
+              goHref = "/front/vipsubscribe/toSubVipSetPage";
+            }
+            window.location.href = goHref
         }
       }
     });