bding 2 жил өмнө
parent
commit
74f49672c8

+ 4 - 0
config/modules/Reports.js

@@ -119,4 +119,8 @@ export const Reports = {
   reportVoiceHistoryAdd: (params) => {
     return postHttp("/report/voiceHistory/add", params);
   },
+ /* 标的点击记录 报告精选 */
+ reportClickHistory: (params) => {
+  return postHttp("/report_selection/click/history", params);
+},
 };

+ 1 - 1
pageMy/myPage/myPage.vue

@@ -72,7 +72,7 @@
             <block v-if="type == 'PC网页版'">
               <text @click="copyPcWebUrl" style="margin-right: 20rpx; font-size: 28rpx; color: #3385ff">web.hzinsights.com</text>
             </block>
-            <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
+            <u-icon v-if="type != 'PC网页版'" name="arrow-right" color="#BDBDBD" size="34"></u-icon>
           </view>
         </view>
       </view>

+ 8 - 3
reportPages/keyCompany/keyCompany.vue

@@ -31,7 +31,6 @@
           <view :class="['industry-subject', item.ListSubject.length < 3 && 'industry-top-border']">
             <view
               :class="['subject-item', 'text_oneLine', item.ListSubject.length < 3 && 'subject-item-top-border']"
-              class=""
               @click="positionSubject(key)"
               v-for="key in item.ListSubject"
               :key="key.IndustrialSubjectId"
@@ -121,9 +120,11 @@ export default {
       });
       if (res.Ret === 200) {
         this.reportDetail = res.Data.Detail;
-        this.haveData = true;
+        this.haveData = this.reportDetail ? true : false;
         this.dataList = res.Data.List;
         this.dataListSubject = res.Data.ListPermissionSubject;
+      } else {
+        this.haveData = false;
       }
     },
     // 详细策略报告请
@@ -139,7 +140,7 @@ export default {
       }
     },
     // 锚点
-    positionSubject(item) {
+    async positionSubject(item) {
       let className = `#subject${item.IndustrialSubjectId}`;
       uni
         .createSelectorQuery()
@@ -159,6 +160,10 @@ export default {
             .exec();
         })
         .exec();
+      const res = await Reports.reportClickHistory({
+        ArticleId: this.reportDetail.ArticleId,
+        IndustrialSubjectId: item.IndustrialSubjectId,
+      });
     },
     // 公司综述报告请
     goArticle(id) {