Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
8d7ba571
Commit
8d7ba571
authored
May 15, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享
parent
55d6ffdd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
detail.vue
src/views/mobile/article/detail.vue
+5
-3
No files found.
src/views/mobile/article/detail.vue
View file @
8d7ba571
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment