Commit 8d7ba571 authored by zhangyanni's avatar zhangyanni

分享

parent 55d6ffdd
......@@ -180,7 +180,7 @@
<reportCmpt v-if="reportVisible" @showReportVisible="showReportVisible" :visible="reportVisible" :reportType="1" :commentsId="commentsId" :class-name="className"></reportCmpt>
<commentCmpt @showCommentVisible="showCommentVisible" :isArticle="true" v-if="commentVisible" :hasScore="hasScore" :hasImportant="false" :commentsId="commentsId" :commentsDeepId="commentsDeepId" :replyCreatedBy="replyCreatedBy" :isReply="isReply" :isDeepReply="isDeepReply" :class-name="className" @commentVisible="commentDialogFunc" :visible="commentVisible"></commentCmpt>
<applyLoginCmpt v-if="isLogin" @isShowLoginDialogFunc="isShowLoginDialogFunc" :activityId="$route.query.activityId" :registerType="66" :visible="isLogin"></applyLoginCmpt>
<shareCmpt :documentFront="documentFront" :pageType="2" :configVal="configVal" @postLog="postLog" @showDialogVisible="showDialogVisible" @closeShareDialog="closeShareDialog" :detailInfo="articleInfo" :visible="isShare" :isActivityList="false" v-if="articleInfo&&documentFront"></shareCmpt>
<shareCmpt :documentFront="frontImgUrl" :pageType="2" :configVal="configVal" @postLog="postLog" @showDialogVisible="showDialogVisible" @closeShareDialog="closeShareDialog" :detailInfo="articleInfo" :visible="isShare" :isActivityList="false" v-if="articleInfo&&frontImgUrl"></shareCmpt>
<div class="dialogTips" v-if="dialogVisible" @click="dialogVisible = false">
<img src="../../../assets/jiantou.gif" alt="">
<p>点击右上角</p>
......@@ -236,6 +236,7 @@
isHasPraise:false,//true点赞过 false没点赞过
isHasCollection:false,
documentFront:"",
frontImgUrl:"",
pathfrom:"",
isShowVideoInfo:true,
dialogVisible:false,
......@@ -259,7 +260,7 @@
this.configVal = {
title: this.articleInfo.contentTitle,
desc: this.articleInfo.contentValidity,
img: this.documentFront+"/public/articleShareLogo.png",
img: this.frontImgUrl+"/public/articleShareLogo.png",
link: document.location.href+"&rDeviceId="+this.publicFun.getCookie("getGuid32")+"&rEmpId="+(this.userInfo?this.userInfo.empId:undefined)+"&rTargetType="
}
if(Object.keys(this.configVal).length!=0){
......@@ -630,6 +631,7 @@
commonApi.getDocumentAxios().then(response => {
if(response.code == 0) {
this.documentFront = response.result.websitePrefix +"#";
this.frontImgUrl = response.result.ossPrefix;
if(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger") {
this.configFunc();
}
......@@ -696,7 +698,7 @@
link: document.location.href+"&rDeviceId="+that.publicFun.getCookie("getGuid32")+"&rEmpId="+(that.userInfo?that.userInfo.empId:undefined)+"&rTargetType=1", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:this.documentFront+"/public/articleShareLogo.png", // 分享图标
imgUrl:this.frontImgUrl+"/public/articleShareLogo.png", // 分享图标
success: function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment