Răsfoiți Sursa

修改跳转

bding 2 ani în urmă
părinte
comite
38ef13ecdf
1 a modificat fișierele cu 14 adăugiri și 6 ștergeri
  1. 14 6
      reportPages/keyCompany/keyCompany.vue

+ 14 - 6
reportPages/keyCompany/keyCompany.vue

@@ -15,7 +15,7 @@
     </view>
     </view>
     <view class="description">
     <view class="description">
       <mp-html :content="reportDetail.MarketStrategy" />
       <mp-html :content="reportDetail.MarketStrategy" />
-      <view class="detailed">
+      <view class="detailed" v-if="reportDetail.CeLueArticleId > 0">
         <text>详细策略报告请</text>
         <text>详细策略报告请</text>
         <text @click="reportDetailLink">点击查看</text>
         <text @click="reportDetailLink">点击查看</text>
       </view>
       </view>
@@ -48,7 +48,7 @@
           <view class="li-item" v-for="key in item.List" :key="key.IndustrialSubjectId">
           <view class="li-item" v-for="key in item.List" :key="key.IndustrialSubjectId">
             <view :id="'subject' + key.IndustrialSubjectId" class="li-subject">
             <view :id="'subject' + key.IndustrialSubjectId" class="li-subject">
               <view class="item-name">
               <view class="item-name">
-                <text style="display: inline-block;vertical-align: middle;">{{ key.SubjectName }}</text>
+                <text style="display: inline-block; vertical-align: middle">{{ key.SubjectName }}</text>
                 <image v-if="key.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png"></image>
                 <image v-if="key.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png"></image>
               </view>
               </view>
               <text class="itel-label" v-for="val in key.CompanyLabel" :key="val"># {{ val }}</text>
               <text class="itel-label" v-for="val in key.CompanyLabel" :key="val"># {{ val }}</text>
@@ -56,7 +56,7 @@
             <mp-html :content="key.Body" />
             <mp-html :content="key.Body" />
             <view class="subject-detali" v-if="key.OverviewArticleId > 0">
             <view class="subject-detali" v-if="key.OverviewArticleId > 0">
               <text style="display: inline-block">公司综述报告请</text>
               <text style="display: inline-block">公司综述报告请</text>
-              <text style="color: #3385ff; margin-left: 10rpx; display: inline-block" @click="IndustryReport(key.OverviewArticleId)">点击查看</text>
+              <text style="color: #3385ff; margin-left: 10rpx; display: inline-block" @click="goArticle(key.OverviewArticleId)">点击查看</text>
             </view>
             </view>
             <view class="subject-detali" v-if="key.List">
             <view class="subject-detali" v-if="key.List">
               <text style="display: inline-block">相关调研纪要、深度报告请</text>
               <text style="display: inline-block">相关调研纪要、深度报告请</text>
@@ -118,7 +118,15 @@ export default {
     },
     },
     // 详细策略报告请
     // 详细策略报告请
     reportDetailLink() {
     reportDetailLink() {
-      this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + this.reportDetail.CeLueArticleId);
+      if (this.reportDetail.CeLueArticleId > 0) {
+        this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + this.reportDetail.CeLueArticleId);
+      } else {
+        uni.showToast({
+          title: "文章ID有误",
+          icon: "error",
+          duration: 2000,
+        });
+      }
     },
     },
     // 锚点
     // 锚点
     positionSubject(item) {
     positionSubject(item) {
@@ -143,8 +151,8 @@ export default {
         .exec();
         .exec();
     },
     },
     // 公司综述报告请
     // 公司综述报告请
-    IndustryReport(id) {
-      this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + id);
+    goArticle(id) {
+      this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + id);
     },
     },
     // 判断一个还是多个
     // 判断一个还是多个
     industry(item) {
     industry(item) {