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

fix:商机管理隐藏项目关注

wangkaiyue 3 жил өмнө
parent
commit
aa3a7d092a

+ 3 - 3
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -1317,7 +1317,7 @@
           }
         })
       } else if (str == 'g') {
-        $(".follow").css("display","")
+
         // 关注
         let param = {
           sid:id
@@ -1327,8 +1327,8 @@
           url: '/entnicheNew/follow/project/check',
           data: param,
           success: function(res) {
-            console.log(res)
-            if(res.error_code == 0) {
+            if(res.error_code == 0 &&fd.data&& fd.data.showFollow) {
+              $(".follow").css("display","")
               if(res.data.flag) {
                 followFlag = true
                 $(".follow").addClass('follow_vip').html('<i class="glyphicon yiguanzhu"></i>已关注');