Эх сурвалжийг харах

Merge branch 'dev4.6.3' of http://192.168.3.207:8080/qmx/jy into dev4.6.3

xuzhiheng 3 жил өмнө
parent
commit
79abb072e5

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

@@ -469,22 +469,6 @@ 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() {
             // 免费用户

+ 17 - 0
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -637,6 +637,23 @@
 <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/collection/js/industry-mobile.js?v={{Msg "seo" "version"}}'></script>
 <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/ent-search/ent-search-template.js?v={{Msg "seo" "version"}}'></script>
 <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/searchindex.js?v={{Msg "seo" "version"}}'></script>
+<script>
+  // 获取是否是商机管理
+  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()
+</script>
 <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
 <script>
 // 初始化