Browse Source

添加企业画像记录地址、三级页标签点击传参

TANGSHIZHE 4 years ago
parent
commit
7af3f889f7

+ 19 - 0
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -21,6 +21,8 @@ var mine = {
         this.showUserMerge()
         // 获取小红点状态
         this.getRedDotState()
+        // 企业画像访问量查询
+        this.getEntVisits()
     },
     // ios返回刷新问题
     iosBackInvoke: function () {
@@ -84,6 +86,23 @@ var mine = {
             return false
         }
     },
+    // 企业画像访问量查询
+    getEntVisits: function() {
+      let _this = this
+      $.ajax({
+          type: "POST",
+          url: "/bigmember/portrait/subVipPortrait/usage",
+          success: function (res) {
+              console.log(res)
+              if(res.error_code == 0) {
+                  if(res.data) {
+                      $('.ent-follow-history .his_usage').text(res.data.usage)
+                      $('.ent-follow-history .his_total').text('/' + ' ' + res.data.total)
+                  }
+              }
+          }
+      });
+    },
     // 设置用户头像
     setUserImg: function () {
         console.log(pageUserInfo)

+ 3 - 3
src/jfw/modules/app/src/web/templates/me/mine.html

@@ -168,15 +168,15 @@
                             <span class="j-icon base-icon icon-arrow-right"></span>
                         </div>
                     </div>
-                    <div data-need-bind-phone class="menu_list ent-follow-history" data-href='/jyapp/frontPage/collection/sess/index'>
+                    <div data-need-bind-phone class="menu_list ent-follow-history" data-href='/jyapp/frontPage/portraitRecord/sess/index'>
                         <div class="menu_list_left">
                             <span class="j-icon base-icon icon-company"></span>
                             <span class="label">企业画像记录</span>
                         </div>
                         <div class="menu_list_right">
                             <span style="margin-right: .08rem;">
-                                <span style="font-size: .28rem;color: #2ABED1;">12</span>
-                                <span style="font-size: .22rem;color: #9B9CA3;">/ 500</span>
+                                <span class="his_usage" style="font-size: .28rem;color: #2ABED1;"></span>
+                                <span class="his_total" style="font-size: .22rem;color: #9B9CA3;"></span>
                             </span>
                             <i class="dot-red"></i>
                             <span class="j-icon base-icon icon-arrow-right"></span>

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

@@ -1869,7 +1869,8 @@
                 if(data && data.length !== 0) {
                     $('.collec_list').show()
                     data.forEach(function(item, index) {
-                        collecHtml += `<span class="collec_tags" onclick="vKeepComponent.tagClick(${index})">${item.labelname}</span>`
+                        console.log(item)
+                        collecHtml += `<span class="collec_tags" onclick="vKeepComponent.tagClick(${index})">${item.title}</span>`
                     })
                     $('.collec_list').html(collecHtml)
                 } else {
@@ -1877,7 +1878,7 @@
                 }
             },
             tagClick (i) {
-                location.href = '/jyapp/frontPage/collection/sess/index?tag=' + encodeURIComponent(this.list[i].id)
+                location.href = '/jyapp/frontPage/collection/sess/index?tag=' + encodeURIComponent(this.list[i].lid)
             }
         }
     })

+ 19 - 0
src/web/staticres/me/js/mine.js

@@ -22,6 +22,8 @@ var mine = {
 
         this.linkClickEvents()
         this.getOfflineMessageCount()
+        // 企业画像访问量查询
+        this.getEntVisits()
     },
     // ios返回刷新问题
     iosBackInvoke: function () {
@@ -36,6 +38,23 @@ var mine = {
             isPageHide = true
         });
     },
+    // 企业画像访问量查询
+    getEntVisits: function() {
+      let _this = this
+      $.ajax({
+          type: "POST",
+          url: "/bigmember/portrait/subVipPortrait/usage",
+          success: function (res) {
+              console.log(res)
+              if(res.error_code == 0) {
+                  if(res.data) {
+                      $('#ent-follow-history .his_usage').text(res.data.usage)
+                      $('#ent-follow-history .his_total').text('/' + ' ' + res.data.total)
+                  }
+              }
+          }
+      });
+    },
     // 设置用户头像
     setUserImg: function () {
         $('.user-img > img').attr("src", this.pageUserInfo.avatar || this.pageUserInfo.headimageurl)

+ 3 - 3
src/web/templates/weixin/my.html

@@ -144,15 +144,15 @@
                             <span class="j-icon base-icon icon-arrow-right"></span>
                         </div>
                     </div>
-                    <div class="menu-list-item clickable" id="ent-follow-history" data-href="/jylab/followent/entList">
+                    <div class="menu-list-item clickable" id="ent-follow-history" data-href="/weixin/frontPage/portraitRecord/sess/index">
                         <div class="m-l-i-left">
                             <span class="j-icon base-icon icon-company"></span>
                             <span class="m-l-i-label">企业画像记录</span>
                         </div>
                         <div class="m-l-i-right">
                             <span style="margin-right: .08rem;">
-                                <span style="font-size: .28rem;color: #2ABED1;">12</span>
-                                <span style="font-size: .22rem;color: #9B9CA3;">/ 500</span>
+                                <span class="his_usage" style="font-size: .28rem;color: #2ABED1;"></span>
+                                <span class="his_total" style="font-size: .22rem;color: #9B9CA3;"></span>
                             </span>
                             <i class="dot-red"></i>
                             <span class="j-icon base-icon icon-arrow-right"></span>