浏览代码

商机管理新老版本判断

tsz 3 年之前
父节点
当前提交
d374724495

+ 7 - 3
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -129,10 +129,14 @@ var mine = {
         // 我的企业跳转
         $('.my-ent').on('click', function(e) {
           setLiActive(e.currentTarget)
-          if(entUserInfo.isNew) {
-            location.href = '/page_entniche_new/ent/enterprise?t=' + new Date().getTime()
+          if(entUserInfo.status === 2||entUserInfo.isPower) {
+            if(entUserInfo.isNew) {
+              location.href = '/page_entniche_new/ent/enterprise?t=' + new Date().getTime()
+            } else {
+              location.href = '/page_entniche/ent/enterprise?t=' + new Date().getTime()
+            }
           } else {
-            location.href = '/page_entniche/ent/enterprise?t=' + new Date().getTime()
+            location.href = '/page_entniche_new/ent/enterprise?t=' + new Date().getTime()
           }
         })
         

+ 6 - 5
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -1217,11 +1217,12 @@
                                 }
                             } else {
                                 // 跳转到创建企业页面
-                                if(res.data.isNew) {
-                                  location.href = '/page_entniche_new/page/introduce_page.html'
-                                } else {
-                                  location.href = '/page_entniche/page/introduce_page.html'
-                                }
+                                location.href = '/page_entniche_new/page/introduce_page.html'
+                                // if(res.data.isNew) {
+                                //   location.href = '/page_entniche_new/page/introduce_page.html'
+                                // } else {
+                                //   location.href = '/page_entniche/page/introduce_page.html'
+                                // }
                             }
                         }
                     });