|
@@ -165,15 +165,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- watch: {
|
|
|
- userInfo(n){
|
|
|
- if(n){
|
|
|
- this.$nextTick(()=>{
|
|
|
- this.waterMark(n.mobile,this.$refs.richConBox)
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
showDisclaimers: false, //显示免责声明
|
|
@@ -216,7 +207,6 @@ export default {
|
|
|
this.chapterId=this.$route.query.chapterId
|
|
|
this.fromPage=this.$route.query.fromPage||''
|
|
|
this.getDetail()
|
|
|
- this.getUserInfo()
|
|
|
},
|
|
|
mounted(){
|
|
|
$(document).on('click', '.rich-content img',function(event) {
|
|
@@ -237,10 +227,11 @@ export default {
|
|
|
window.removeEventListener('scroll',this.loadMoreHandle)
|
|
|
},
|
|
|
methods: {
|
|
|
- async getUserInfo(){
|
|
|
+ async getUserInfo(iswatermark){
|
|
|
const res=await apiUserInfo()
|
|
|
if(res.code===200){
|
|
|
this.userInfo=res.data
|
|
|
+ if(!iswatermark) return
|
|
|
this.$nextTick(()=>{
|
|
|
this.waterMark(res.data.mobile,this.$refs.richConBox)
|
|
|
})
|
|
@@ -313,6 +304,9 @@ export default {
|
|
|
this.getReportPPtImg()
|
|
|
}
|
|
|
|
|
|
+ //水印
|
|
|
+ this.getUserInfo(res.data.auth_ok)
|
|
|
+
|
|
|
// 处理标题数据
|
|
|
//【第{{info.report_chapter_item.stage}}期 | {{info.report_chapter_item.classify_name_first}} | {{info.report_chapter_item.type_name}}】{{info.report_chapter_item.title}}({{moment(info.report_chapter_item.publish_time).format('MMDD')}})
|
|
|
this.title=`【第${res.data.report_chapter_item.stage}期 | ${res.data.report_chapter_item.classify_name_first} | ${res.data.report_chapter_item.type_name}】${res.data.report_chapter_item.title}(${moment(res.data.report_chapter_item.publish_time).format('MMDD')})`
|