|
@@ -81,7 +81,7 @@
|
|
|
<div style="padding: 0.6rem; box-sizing: border-box; overflow: hidden">
|
|
|
|
|
|
<!-- 章节报告 -->
|
|
|
- <div class="chapter-wrap" v-if="reportInfo.HasChapter===1">
|
|
|
+ <!-- <div class="chapter-wrap" v-if="reportInfo.HasChapter===1">
|
|
|
<div class="chapter-item" v-for="item in reportInfo.ChapterList" :key="item.ReportChapterId">
|
|
|
<div style="margin-bottom:10px">
|
|
|
<span class="type" v-if="item.TypeName">{{item.TypeName}}</span>
|
|
@@ -89,9 +89,9 @@
|
|
|
</div>
|
|
|
<div id="resetcss" style="overflow:hidden;" v-html="item.Content"></div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
- <div id="resetcss" style="overflow:hidden;" v-else>
|
|
|
+ <div id="resetcss" style="overflow:hidden;">
|
|
|
<ul>
|
|
|
<li v-for="(html,index) in realContent" :key="index" v-html="html"></li>
|
|
|
</ul>
|
|
@@ -288,8 +288,9 @@ export default {
|
|
|
this.reportInfo = Data.Report;
|
|
|
this.Disclaimer = Data.Disclaimer||'';
|
|
|
this.isshow = true;
|
|
|
+ wxShare(document.location.href,H5ShareName || document.title,wxShareTitle,H5ReportShareImg,0);
|
|
|
|
|
|
- this.splitContentHandle(this.reportInfo.Content);
|
|
|
+ this.splitContentHandle();
|
|
|
|
|
|
$(document).on("click", "#resetcss img", function (event) {
|
|
|
let imgArray = [];
|
|
@@ -303,7 +304,7 @@ export default {
|
|
|
wx.previewImage({ current: curImageSrc, urls: imgArray });
|
|
|
}
|
|
|
});
|
|
|
- wxShare(document.location.href,H5ShareName || document.title,wxShareTitle,H5ReportShareImg,0);
|
|
|
+
|
|
|
//水印
|
|
|
localStorage.setItem('waterMarkStr',this.$route.query.flag||'')
|
|
|
const temwaterMarkStr=this.$route.query.flag||localStorage.getItem('waterMarkStr')
|
|
@@ -350,7 +351,16 @@ export default {
|
|
|
|
|
|
|
|
|
/*内容分割*/
|
|
|
- splitContentHandle(content) {
|
|
|
+ splitContentHandle() {
|
|
|
+ let content='';
|
|
|
+ if(this.reportInfo.HasChapter===1) {
|
|
|
+ this.reportInfo.ChapterList.forEach(item => {
|
|
|
+ content+=item.Content
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ content = this.reportInfo.Content;
|
|
|
+ }
|
|
|
+
|
|
|
const arr = content.split("</p>");
|
|
|
this.totalContent = arr.map((_) => _ + "</p>");
|
|
|
this.realContent = this.totalContent.slice(0, this.pageSize);
|