tsz 3 år sedan
förälder
incheckning
db7ac8df74

+ 16 - 22
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -39,29 +39,8 @@ function getUserNewType() {
             newUserType = res.data.isUpgrade
         }
     })
-    let entnicheRoot = sessionStorage.getItem('entniche-root')
-    if(entnicheRoot) {
-      entnicheRoot = JSON.parse(entnicheRoot)
-      SuperSearch.isEntNicheNew = entnicheRoot.isNew
-    } else {
-      getNewEntNiche()
-    }
 }
 
-// 获取是否是商机管理
-function getNewEntNiche () {
-  $.ajax({
-    type: 'POST',
-    url: '/entnicheNew/buy/whetherbuy',
-    success: function(res) {
-      console.log(res)
-      if(res.error_code == 0) {
-        sessionStorage.setItem('entniche-root', JSON.stringify(res.data))
-        SuperSearch.isEntNicheNew = res.data.isNew
-      }
-    },
-  })
-}
 getUserNewType()
 
 function hiddenTips2() {
@@ -490,6 +469,21 @@ var SuperSearch = {
             SuperSearch.dyDiv = true;
         });
 
+        // 获取是否是商机管理
+        function getNewEntNiche () {
+          $.ajax({
+            type: 'POST',
+            url: '/entnicheNew/buy/whetherbuy',
+            success: function(res) {
+              console.log(res)
+              if(res.error_code == 0) {
+                SuperSearch.isEntNicheNew = res.data.isNew
+              }
+            },
+          })
+        }
+
+        getNewEntNiche()
 
         // 获取用户信息-用于立即订阅按钮
         function getKeyUserInfo() {
@@ -4215,4 +4209,4 @@ window.onload = function(){
 	if(ActiveTipFlag){
 		ActiveTip = new Active_Tip();
 	}
-}
+}

+ 5 - 1
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -855,7 +855,7 @@
     var industry = {{.T.obj.industry}};
     var subscopeclass = {{.T.obj.s_subscopeclass}};
     var forceShareFlag = {{.T.forceShareFlag}};
-
+    var newEntNiche = false
     var inithgt = 45;//tab高度
     var cHeight = document.body.clientHeight;
     var m1 = 0;     // 滚动的值
@@ -990,6 +990,9 @@
 
     function toMyFollowList(e){
         var url = $(e).attr("data-url")
+        if(newEntNiche) {
+          url = '/jyapp/big/page/client_follow_list'
+        }
         window.location.href = url;
     }
 
@@ -1167,6 +1170,7 @@
           success: function(res) {
             console.log(res)
             if(res.error_code == 0) {
+              newEntNiche = res.data.isNew
               if(res.data.isNew) {
                 $('.commonUser').hide()
                 $('.entnicheUser').show()