|
@@ -288,9 +288,27 @@ export default {
|
|
|
}
|
|
|
|
|
|
//向小程序发送分享数据
|
|
|
+ //处理分享标题
|
|
|
+ let shareTitle=''
|
|
|
+ const shareTime=moment(res.data.report_info.publish_time).format('MMDD')
|
|
|
+ if(['晨报','周报'].includes(res.data.report_info.classify_name_first)){
|
|
|
+ shareTitle=`【${res.data.report_info.classify_name_first}】${res.data.report_info.title}(${shareTime})`
|
|
|
+ }else{
|
|
|
+ // 专栏类报告
|
|
|
+ if(res.data.report_show_type==2){
|
|
|
+ const abstract=res.data.report_info.abstract?`:${res.data.report_info.abstract}`:''
|
|
|
+ if(res.data.report_info.classify_name_second==res.data.report_info.title){
|
|
|
+ shareTitle=`${res.data.report_info.title}(${shareTime})${abstract}`
|
|
|
+ }else{
|
|
|
+ shareTitle=`【${res.data.report_info.classify_name_second}】${res.data.report_info.title}(${shareTime})`
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ shareTitle=`【${res.data.report_info.classify_name_second}】${res.data.report_info.title}(${shareTime})`
|
|
|
+ }
|
|
|
+ }
|
|
|
wx.miniProgram.postMessage({
|
|
|
data: {
|
|
|
- title:`FICC【${res.data.report_info.classify_name_first}】`,
|
|
|
+ title:shareTitle,
|
|
|
reportId:this.reportId
|
|
|
}
|
|
|
});
|