浏览代码

研报报告详情增加跳转预览ppt

jwyu 2 年之前
父节点
当前提交
1111d155a5
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 二进制
      src/assets/hzyb/report/ppt-icon.png
  2. 14 0
      src/views/hzyb/report/Detail.vue

二进制
src/assets/hzyb/report/ppt-icon.png


+ 14 - 0
src/views/hzyb/report/Detail.vue

@@ -63,6 +63,7 @@
                         <span style="color:#E3B377;margin-left:20px" @click="showDisclaimers=true">免责声明</span>
                         <span style="color:#E3B377;margin-left:20px" @click="showDisclaimers=true">免责声明</span>
                     </div>
                     </div>
                 </div>
                 </div>
+                <img class="ppt-icon" v-if="info.report_info.ppt_img_list" @click="goPPtDetail" src="@/assets/hzyb/report/ppt-icon.png" alt="">
             </div>
             </div>
 
 
             <div class="rich-content">
             <div class="rich-content">
@@ -240,6 +241,12 @@ export default {
         //         this.showToTop=false
         //         this.showToTop=false
         //     }
         //     }
         // },
         // },
+        //跳转ppt预览页
+        goPPtDetail(){
+            wx.miniProgram.navigateTo({
+                url:`/pages-report/previewImage?reportId=${this.reportId}`
+            })
+        },
         
         
         //获取报告详情
         //获取报告详情
         async getDetail(){
         async getDetail(){
@@ -574,6 +581,7 @@ export default {
     .tips{
     .tips{
         font-size: 34px;
         font-size: 34px;
         margin-bottom: 51px;
         margin-bottom: 51px;
+        position: relative;
         &::before{
         &::before{
             content: '';
             content: '';
             width: 10px;
             width: 10px;
@@ -589,6 +597,12 @@ export default {
             margin-bottom: 20px;
             margin-bottom: 20px;
             line-height: 1.5;
             line-height: 1.5;
         }
         }
+        .ppt-icon{
+            position: absolute;
+            bottom: 14px;
+            right: 10px;
+            width: 30px;
+        }
     }
     }
 
 
     .disclaimers-box{
     .disclaimers-box{