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

feat: 未登录下,企业搜索、采购单位搜索跳转seo画像页面

cuiyalong 1 жил өмнө
parent
commit
2ed90af452

+ 6 - 0
src/web/staticres/js/ent-search-index-pc.js

@@ -1079,6 +1079,12 @@ var entSearch = new Vue({
         },
         toDetail: function (item) {
             var id = item.id || item.entId
+            var seoId = item.nseo_id
+            var seoUrl = '/qy/' + seoId + '.html'
+            if (!loginflag) {
+                // 未登录,跳转seo画像
+                window.open(seoUrl)
+            }
             let BIPage = ''
             if (this.getBIParams) {
               BIPage = '?resource=BI'

+ 9 - 2
src/web/staticres/js/pur-search-index-pc.js

@@ -822,8 +822,15 @@ var vm = new Vue({
 	          document.body.scrollTop = oTop
             this.getList()
         },
-        goTitle: function(name) {
-          // 是渠道合作页面需要登录后重定向
+        goTitle: function(item) {
+            var name = item.buyer
+            var seoId = item.seo_id
+            var seoUrl = '/dw/' + seoId + '.html'
+            if (!loginflag) {
+              // 未登录,跳转seo画像
+              window.open(seoUrl)
+            }
+            // 是渠道合作页面需要登录后重定向
             const BIPge = this.getBIParams ? '?resource=BI' : ''
             var url = '/swordfish/page_big_pc/unit_portrayal/' + name
             if (this.isNewEntNiche) {

+ 1 - 1
src/web/staticres/public-pc/css/pc-bottom.css

@@ -154,7 +154,7 @@
   border: none;
   box-sizing: border-box;
   position: fixed;
-  z-index: 100;
+  z-index: 2002;
   /* min-width: 56px; */
   width: 80px;
   bottom: 108px;

+ 1 - 1
src/web/templates/pc/pursearchindex.html

@@ -303,7 +303,7 @@
                             <div class="list-item-left">
                               <div class="list-logo" :class="item.randomBgc">${item.buyerShortName ? item.buyerShortName.slice(0,4) : item.buyer.slice(0,4)}</div>
                               <div class="list-info">
-                                <div class="info-name" @click="goTitle(item.buyer)">${item.buyer}</div>
+                                <div class="info-name" @click="goTitle(item)">${item.buyer}</div>
                                 <div class="info-detail  flex-between">
                                   <div class="flex">
                                     <div class="info-item">