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

Merge branch 'dev/v4.8.67_wmh' of qmx/jy into feature/v4.8.67

wenmenghao 1 жил өмнө
parent
commit
cc62ce718b

+ 22 - 0
src/web/staticres/css/pc/index.css

@@ -15,6 +15,28 @@
 /* 结束 */
 /* 头部按钮 及文案 */
 
+/* 招标导航 查看更多 */
+.see_more{
+  overflow: hidden;
+}
+.see_more .see_more_text{
+font-size: 14px;
+font-weight: 400;
+line-height: 22px;
+color: #2ABED1;
+float: right;
+cursor: pointer;
+}
+.see_more .icon-right{
+  width: 16px;
+  height: 16px;
+  float: right;
+  background-size: 16px 16px;
+  background-image: url(/images/index/more_icon_right.png);
+  margin-top: 3px;
+  margin-right: 20px;
+  cursor: pointer;
+}
 #public-nav[data-theme] .logo img{
   width: 106px !important;
   margin-top: 10px !important;

BIN
src/web/staticres/images/index/more_icon_right.png


+ 19 - 0
src/web/templates/pc/index.html

@@ -282,6 +282,7 @@
               {{range $i,$v := .T.hotWinner}}
               <a href="{{$v.Url}}" rel="nofollow" target="_blank">{{$v.Name}}</a>
               {{end}}
+              <div class="see_more"><span class="icon-right"></span><span class="see_more_text" onclick="seeMore_index('hotWinner')">查看更多</span></div>
             </div>
             <div class="recommend-content line-show">
               <ul class="clearfix">
@@ -309,6 +310,7 @@
                 {{range $k,$v := .T.hotBuyers}}
                   <a class="tab-link tab-label" href="{{$v.Url}}" rel="nofollow" target="_blank">{{$v.Name}}</a>
                 {{end}}
+                <div class="see_more"><span class="icon-right"></span><span class="see_more_text" onclick="seeMore_index('buyer')">查看更多</span></div>
             </div>
           </div>
         </div>
@@ -1134,6 +1136,23 @@
       })
       }
   }
+  function seeMore_index(type){
+    if(!loginflag){
+      if(type == 'hotWinner'){
+        window.location.href= "/qy/"
+      } else {
+        window.location.href= "/dw/"
+      }
+    } else {
+      if(type == 'hotWinner'){
+      var goHref_winner = location.origin + '/jylab/entSearch/index.html'
+      window.location.href = '/page_workDesktop/work-bench/page?link=' + goHref_winner
+      } else {
+        var goHref_buyer = location.origin + '/jylab/purSearch/index.html'
+        window.location.href = '/page_workDesktop/work-bench/page?link=' + goHref_buyer
+      }
+    }
+  }
   window.loginCallback = function () {
     $('.jy-index-freeRegistration').hide()
   }