liting2017 6 years ago
parent
commit
6ba1365dab

+ 1 - 0
src/css/newMenu/adviserDetail.css

@@ -42,6 +42,7 @@
     color: #1797e9;
 }
 .collectionN .heart{
+    cursor: pointer;
     vertical-align: top;
     margin-right: 10px;
     margin-top: 5px;

+ 5 - 2
src/css/newMenu/patent.css

@@ -40,6 +40,7 @@
     background: #fff;
 }
 .patentMenu .firstMenu a{
+    display: inline-block;
     color: #7a7878;
 }
 .patentMenu .firstMenu>p{
@@ -100,13 +101,15 @@
 }
 .firstMenu ul li .direction{
      float: right;
-     margin-right: 34px;
+     margin-right: 16px;
      width: 10px;
      font-size: 10px;
      height: 10px;
      display: inline-block;
 }
-
+.firstMenu ul li:nth-child(3)>p{
+    border: none
+}
 .secondMenu{
     overflow: hidden;
     position: absolute;

+ 6 - 6
src/js/newMenu/adviserDetail.js

@@ -19,9 +19,9 @@ $(function () {
     $('.collectionN .heart').click(function () {
         let heart = $('.heart');
         if (heart.hasClass('active')) {
-            collectionApi(0) //取消收藏
+            collectionApi(0) //取消关注
         } else {
-            collectionApi(1) //收藏
+            collectionApi(1) //关注
         }
     })
     let hash = window.location.search,
@@ -29,7 +29,7 @@ $(function () {
         ids =hashArr[1];
     function collectionApi(index) {
         let nub=parseInt($('.nubCollect').text());
-        let url = index?'/api/user/portal/projectInterest':'/api/user/portal/projectCancelInterest'
+        let url = index?'/api/user/portal/expertInterest':'/api/user/portal/expertCancelInterest';
         $.ajax({
             method: "post",
             dataType: "json",
@@ -45,14 +45,14 @@ $(function () {
                         $('.heart').removeClass('active');
                         $('.collectionN').removeClass('active');
                         $('.nubCollect').text((nub-1))
-                        $('#msg').val('撤销收藏')
+                        $('#msg').val('取消关注')
                     }else{
                         $('.heart').addClass('active');
                         $('.collectionN').addClass('active');
                         $('.nubCollect').text((nub+1));
-                        $('#msg').val('收藏成功,请至个人中心查看.')
+                        $('#msg').val('关注成功,请至个人中心-我的关注查看.');
                     }
-		            msg(index?'收藏成功,请至个人中心查看.':'撤销收藏');
+		            msg(index?'关注成功,请至个人中心-我的关注查看.':'取消关注');
                 }
             }
         })

+ 1 - 1
src/js/thinkTank/thinkerDetail.js

@@ -103,7 +103,7 @@ $(function () {
                     if (data.error && data.error.length) {
                         msg(data.error[0].message);
                     }else if(data.error==""){
-                        window.open(globalConfig.context+ '/user/account/index.html#consultList');
+                        window.open(globalConfig.context+ '/user/account/index.html#/consultList');
                     }else{
                         return;
                     }