|
@@ -193,6 +193,7 @@ export default {
|
|
|
total_page: 0,
|
|
|
|
|
|
hasPPt:false,
|
|
|
+ shareData:{},//分享的数据传给ppt页
|
|
|
};
|
|
|
},
|
|
|
beforeCreate(){
|
|
@@ -235,8 +236,12 @@ export default {
|
|
|
// },
|
|
|
//跳转ppt预览页
|
|
|
goPPtDetail(){
|
|
|
+ const report_id=this.info.report_chapter_item.report_id
|
|
|
+ const chapterId=this.info.report_chapter_item.report_chapter_id
|
|
|
+ const shareImg=this.shareData.shareImg
|
|
|
+ const shareTitle=this.shareData.title
|
|
|
wx.miniProgram.navigateTo({
|
|
|
- url:`/pages-report/previewImage?reportId=${this.info.report_chapter_item.report_id}&chapterId=${this.info.report_chapter_item.report_chapter_id}`
|
|
|
+ url:`/pages-report/previewImage?reportId=${report_id}&chapterId=${chapterId}&shareImg=${shareImg}&shareTitle=${shareTitle}`
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -316,6 +321,11 @@ export default {
|
|
|
if(rddpImgRes.code===200){
|
|
|
shareImg=rddpImgRes.data
|
|
|
}
|
|
|
+ this.shareData={
|
|
|
+ title:shareTitle,
|
|
|
+ chapterId:this.chapterId,
|
|
|
+ shareImg:shareImg
|
|
|
+ }
|
|
|
wx.miniProgram.postMessage({
|
|
|
data: {
|
|
|
title:shareTitle,
|