Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DiscuzWeb
Overview
Overview
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
Discuz
DiscuzWeb
Commits
4ac24e66
Commit
4ac24e66
authored
Feb 02, 2021
by
zhujunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复:移动端时知识库详情页左边不能全部显示
parent
64700d81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
54 deletions
+59
-54
knowledgeDetail.vue
pages/knowledge/knowledgeDetail.vue
+59
-54
No files found.
pages/knowledge/knowledgeDetail.vue
View file @
4ac24e66
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
<div
class=
"list-top-item"
>
<div
class=
"list-top-item"
>
<a
href=
"#"
class=
"top-title"
>
<a
href=
"#"
class=
"top-title"
>
百伦论坛知识库
百伦论坛知识库
<div
></div
<div
></a>
/
></a>
<div
/>
<div
/>
</div>
</div>
<attachment-list
<attachment-list
...
@@ -76,16 +76,16 @@
...
@@ -76,16 +76,16 @@
:can-paid="forums
&&
forums.paycenter
&&
forums.paycenter.wxpay_close"
:can-paid="forums
&&
forums.paycenter
&&
forums.paycenter.wxpay_close"
:can-reward="
:can-reward="
forums
&&
forums
&&
forums.paycenter
&&
forums.paycenter
&&
forums.paycenter.wxpay_close
&&
forums.paycenter.wxpay_close
&&
thread.canBeReward
thread.canBeReward
"
"
:thread-type="thread.type || 0"
:thread-type="thread.type || 0"
:user-lists="[
:user-lists="[
thread.paidUsers || [],
thread.paidUsers || [],
thread.rewardedUsers || [],
thread.rewardedUsers || [],
article.likedUsers || [],
article.likedUsers || [],
[]
,
[]
]"
]"
@payOrReward="showCheckoutCounter = true"
@payOrReward="showCheckoutCounter = true"
/>
/>
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
data
:
[],
data
:
[],
defaultProps
:
{
defaultProps
:
{
children
:
"children"
,
children
:
"children"
,
label
:
"label"
,
label
:
"label"
},
},
list
:
[],
list
:
[],
thread
:
{},
thread
:
{},
...
@@ -143,7 +143,7 @@ export default {
...
@@ -143,7 +143,7 @@ export default {
count
:
0
,
count
:
0
,
command
:
""
,
command
:
""
,
canOpera
:
false
,
canOpera
:
false
,
icon
:
"book"
,
icon
:
"book"
},
},
{
{
text
:
this
.
$t
(
"topic.getLike"
),
text
:
this
.
$t
(
"topic.getLike"
),
...
@@ -151,21 +151,21 @@ export default {
...
@@ -151,21 +151,21 @@ export default {
command
:
"isLiked"
,
command
:
"isLiked"
,
canOpera
:
true
,
canOpera
:
true
,
isStatus
:
false
,
isStatus
:
false
,
icon
:
"like"
,
icon
:
"like"
},
},
{
{
text
:
this
.
$t
(
"topic.collection"
),
text
:
this
.
$t
(
"topic.collection"
),
command
:
"isFavorite"
,
command
:
"isFavorite"
,
canOpera
:
true
,
canOpera
:
true
,
isStatus
:
false
,
isStatus
:
false
,
icon
:
"favor"
,
icon
:
"favor"
},
},
{
{
text
:
this
.
$t
(
"topic.share"
),
text
:
this
.
$t
(
"topic.share"
),
command
:
"showLink"
,
command
:
"showLink"
,
canOpera
:
true
,
canOpera
:
true
,
icon
:
"link"
,
icon
:
"link"
}
,
}
],
],
paidInformation
:
{
paidInformation
:
{
price
:
"0"
,
price
:
"0"
,
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
paidUsers
:
[],
paidUsers
:
[],
paidCount
:
0
,
paidCount
:
0
,
isPaidAttachment
:
false
,
isPaidAttachment
:
false
,
attachmentPrice
:
"0"
,
attachmentPrice
:
"0"
},
},
payment
:
{
wechat_qrcode
:
""
,
rewardAmount
:
""
},
payment
:
{
wechat_qrcode
:
""
,
rewardAmount
:
""
},
location
:
{
location
:
""
,
latitude
:
""
,
longitude
:
""
},
location
:
{
location
:
""
,
latitude
:
""
,
longitude
:
""
},
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
isStatus
:
false
,
isStatus
:
false
,
canOpera
:
false
,
canOpera
:
false
,
text
:
this
.
$t
(
"topic.edit"
),
text
:
this
.
$t
(
"topic.edit"
),
type
:
"0"
,
type
:
"0"
},
},
{
{
name
:
"canEssence"
,
name
:
"canEssence"
,
...
@@ -192,7 +192,7 @@ export default {
...
@@ -192,7 +192,7 @@ export default {
isStatus
:
false
,
isStatus
:
false
,
canOpera
:
false
,
canOpera
:
false
,
text
:
this
.
$t
(
"topic.essence"
),
text
:
this
.
$t
(
"topic.essence"
),
type
:
"1"
,
type
:
"1"
},
},
{
{
name
:
"canSticky"
,
name
:
"canSticky"
,
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
isStatus
:
false
,
isStatus
:
false
,
canOpera
:
false
,
canOpera
:
false
,
text
:
this
.
$t
(
"topic.sticky"
),
text
:
this
.
$t
(
"topic.sticky"
),
type
:
"2"
,
type
:
"2"
},
},
{
{
name
:
"canHide"
,
name
:
"canHide"
,
...
@@ -208,8 +208,8 @@ export default {
...
@@ -208,8 +208,8 @@ export default {
isStatus
:
false
,
isStatus
:
false
,
canOpera
:
false
,
canOpera
:
false
,
text
:
this
.
$t
(
"topic.delete"
),
text
:
this
.
$t
(
"topic.delete"
),
type
:
"3"
,
type
:
"3"
}
,
}
],
],
showCheckoutCounter
:
false
,
showCheckoutCounter
:
false
,
showPasswordInput
:
false
,
showPasswordInput
:
false
,
...
@@ -234,11 +234,11 @@ export default {
...
@@ -234,11 +234,11 @@ export default {
thumbUrl
:
""
,
thumbUrl
:
""
,
type
:
0
,
type
:
0
,
type_id
:
118
,
type_id
:
118
,
url
:
""
,
url
:
""
},
},
isPaid
:
false
,
isPaid
:
false
,
isPaidAttachment
:
false
,
isPaidAttachment
:
false
,
price
:
"0.00"
,
price
:
"0.00"
};
};
},
},
computed
:
{
computed
:
{
...
@@ -294,7 +294,7 @@ export default {
...
@@ -294,7 +294,7 @@ export default {
}
else
{
}
else
{
return
2
;
return
2
;
}
}
}
,
}
},
},
created
()
{
created
()
{
this
.
fileSrc
=
""
;
this
.
fileSrc
=
""
;
...
@@ -311,7 +311,7 @@ export default {
...
@@ -311,7 +311,7 @@ export default {
const
fatherid
=
this
.
$route
.
query
.
fatherid
;
const
fatherid
=
this
.
$route
.
query
.
fatherid
;
const
appointfileid
=
this
.
$route
.
query
.
appointfileid
;
const
appointfileid
=
this
.
$route
.
query
.
appointfileid
;
const
firstfileid
=
this
.
$route
.
query
.
firstfileid
;
const
firstfileid
=
this
.
$route
.
query
.
firstfileid
;
if
(
!!
appointfileid
)
{
if
(
appointfileid
)
{
fildId
=
firstfileid
;
fildId
=
firstfileid
;
}
}
// 获取树状数据
// 获取树状数据
...
@@ -319,24 +319,24 @@ export default {
...
@@ -319,24 +319,24 @@ export default {
.
get
(
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/getfilelisttree?userId=
${
qywxUserid
}
&fildId=
${
fildId
}
&fatherid=
${
fatherid
}
`
`
${
config
.
WEI_PAN_URL
}
/weipan/getfilelisttree?userId=
${
qywxUserid
}
&fildId=
${
fildId
}
&fatherid=
${
fatherid
}
`
)
)
.
then
(
(
res
)
=>
{
.
then
(
res
=>
{
// this.data = res.data.result;
// this.data = res.data.result;
this
.
data
=
this
.
deleteChildren
(
res
.
data
.
result
);
this
.
data
=
this
.
deleteChildren
(
res
.
data
.
result
);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
!!
this
.
data
)
{
if
(
this
.
data
)
{
if
(
!!
appointfileid
)
{
if
(
appointfileid
)
{
axios
axios
.
get
(
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/getfilelisttree?userId=
${
qywxUserid
}
&fildId=
${
appointfileid
}
`
`
${
config
.
WEI_PAN_URL
}
/weipan/getfilelisttree?userId=
${
qywxUserid
}
&fildId=
${
appointfileid
}
`
)
)
.
then
(
(
res
)
=>
{
.
then
(
res
=>
{
le
t
file
=
res
.
data
.
result
;
cons
t
file
=
res
.
data
.
result
;
// 触发点击事件
// 触发点击事件
this
.
handleNodeClick
(
file
[
0
]);
this
.
handleNodeClick
(
file
[
0
]);
});
});
}
else
{
}
else
{
let
file
=
this
.
data
.
filter
((
item
)
=>
item
.
file
==
true
);
const
file
=
this
.
data
.
filter
(
item
=>
item
.
file
==
true
);
if
(
!!
file
)
{
if
(
file
)
{
// 触发点击事件
// 触发点击事件
this
.
handleNodeClick
(
file
[
0
]);
this
.
handleNodeClick
(
file
[
0
]);
}
}
...
@@ -385,12 +385,12 @@ export default {
...
@@ -385,12 +385,12 @@ export default {
.
get
(
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/GetAttchmattachmentByFileId?fileId=
${
data
.
id
}
`
`
${
config
.
WEI_PAN_URL
}
/weipan/GetAttchmattachmentByFileId?fileId=
${
data
.
id
}
`
)
)
.
then
(
(
res
)
=>
{
.
then
(
res
=>
{
this
.
attachmentFile
=
res
.
data
.
result
;
this
.
attachmentFile
=
res
.
data
.
result
;
});
});
axios
axios
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/GetFileInfo?fileId=
${
data
.
id
}
`
)
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/GetFileInfo?fileId=
${
data
.
id
}
`
)
.
then
(
(
res
)
=>
{
.
then
(
res
=>
{
// const ele = document.querySelector(".WACPageBorder");
// const ele = document.querySelector(".WACPageBorder");
// ele.style.border = "none";
// ele.style.border = "none";
// console.log(ele, "ele");
// console.log(ele, "ele");
...
@@ -429,10 +429,10 @@ export default {
...
@@ -429,10 +429,10 @@ export default {
return
this
.
$store
return
this
.
$store
.
dispatch
(
"jv/get"
,
[
.
dispatch
(
"jv/get"
,
[
`threads/
${
this
.
threadId
}
`
,
`threads/
${
this
.
threadId
}
`
,
{
params
:
{
include
:
threadInclude
}
}
,
{
params
:
{
include
:
threadInclude
}
}
])
])
.
then
(
.
then
(
(
data
)
=>
{
data
=>
{
if
(
data
.
isDeleted
)
return
this
.
$router
.
replace
(
"/error"
);
if
(
data
.
isDeleted
)
return
this
.
$router
.
replace
(
"/error"
);
this
.
articleLoading
=
false
;
this
.
articleLoading
=
false
;
this
.
thread
=
data
;
this
.
thread
=
data
;
...
@@ -440,7 +440,7 @@ export default {
...
@@ -440,7 +440,7 @@ export default {
this
.
postId
=
this
.
article
.
_jv
.
id
;
this
.
postId
=
this
.
article
.
_jv
.
id
;
this
.
initData
();
this
.
initData
();
},
},
(
e
)
=>
this
.
handleError
(
e
,
"thread"
)
e
=>
this
.
handleError
(
e
,
"thread"
)
);
);
},
},
initData
()
{
initData
()
{
...
@@ -461,7 +461,7 @@ export default {
...
@@ -461,7 +461,7 @@ export default {
this
.
article
.
images
.
length
>
0
this
.
article
.
images
.
length
>
0
)
{
)
{
this
.
article
.
images
=
this
.
article
.
images
.
filter
(
this
.
article
.
images
=
this
.
article
.
images
.
filter
(
(
image
)
=>
this
.
article
.
contentAttachIds
.
indexOf
(
image
.
_jv
.
id
)
<
0
image
=>
this
.
article
.
contentAttachIds
.
indexOf
(
image
.
_jv
.
id
)
<
0
);
);
}
}
},
},
...
@@ -480,7 +480,7 @@ export default {
...
@@ -480,7 +480,7 @@ export default {
}
}
},
},
initManagementList
(
data
)
{
initManagementList
(
data
)
{
this
.
managementList
.
forEach
(
(
item
)
=>
{
this
.
managementList
.
forEach
(
item
=>
{
item
.
canOpera
=
data
[
item
.
name
];
item
.
canOpera
=
data
[
item
.
name
];
if
(
item
.
name
===
"canEssence"
)
{
if
(
item
.
name
===
"canEssence"
)
{
item
.
isStatus
=
data
.
isEssence
;
item
.
isStatus
=
data
.
isEssence
;
...
@@ -496,15 +496,15 @@ export default {
...
@@ -496,15 +496,15 @@ export default {
});
});
if
(
if
(
(
this
.
thread
.
type
===
4
||
this
.
thread
.
type
===
5
)
&&
(
this
.
thread
.
type
===
4
||
this
.
thread
.
type
===
5
)
&&
this
.
managementList
.
filter
(
(
item
)
=>
item
.
name
===
"canEdit"
).
length
>
0
this
.
managementList
.
filter
(
item
=>
item
.
name
===
"canEdit"
).
length
>
0
)
{
)
{
// 语音贴和问答帖,不支持编辑
// 语音贴和问答帖,不支持编辑
this
.
managementList
.
filter
(
this
.
managementList
.
filter
(
(
item
)
=>
item
.
name
===
"canEdit"
item
=>
item
.
name
===
"canEdit"
)[
0
].
canOpera
=
false
;
)[
0
].
canOpera
=
false
;
}
}
this
.
thread
.
isEssence
=
data
.
isEssence
;
this
.
thread
.
isEssence
=
data
.
isEssence
;
this
.
managementList
=
this
.
managementList
.
filter
(
(
item
)
=>
item
.
canOpera
);
this
.
managementList
=
this
.
managementList
.
filter
(
item
=>
item
.
canOpera
);
},
},
initActions
(
data
,
firstPost
)
{
initActions
(
data
,
firstPost
)
{
const
viewInfo
=
{
...
this
.
actions
[
0
]
};
const
viewInfo
=
{
...
this
.
actions
[
0
]
};
...
@@ -564,7 +564,7 @@ export default {
...
@@ -564,7 +564,7 @@ export default {
)
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
payOrder
().
then
(
this
.
payOrder
().
then
(
(
wechatQrcode
)
=>
{
wechatQrcode
=>
{
this
.
payment
.
wechat_qrcode
=
wechatQrcode
;
this
.
payment
.
wechat_qrcode
=
wechatQrcode
;
this
.
wxPayActive
().
then
(
this
.
wxPayActive
().
then
(
()
=>
{
()
=>
{
...
@@ -600,7 +600,7 @@ export default {
...
@@ -600,7 +600,7 @@ export default {
return
this
.
$store
return
this
.
$store
.
dispatch
(
"jv/patch"
,
params
)
.
dispatch
(
"jv/patch"
,
params
)
.
then
(
.
then
(
(
data
)
=>
{
data
=>
{
data
.
firstPost
&&
this
.
initManagementList
(
data
);
data
.
firstPost
&&
this
.
initManagementList
(
data
);
data
.
firstPost
&&
this
.
initActions
(
data
);
data
.
firstPost
&&
this
.
initActions
(
data
);
if
(
item
.
command
===
"isSticky"
)
{
if
(
item
.
command
===
"isSticky"
)
{
...
@@ -613,7 +613,7 @@ export default {
...
@@ -613,7 +613,7 @@ export default {
}
}
if
(
item
.
command
===
"isDeleted"
)
return
this
.
afterDeleted
();
if
(
item
.
command
===
"isDeleted"
)
return
this
.
afterDeleted
();
},
},
(
e
)
=>
this
.
handleError
(
e
)
e
=>
this
.
handleError
(
e
)
)
)
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
defaultLoading
=
false
;
this
.
defaultLoading
=
false
;
...
@@ -630,12 +630,12 @@ export default {
...
@@ -630,12 +630,12 @@ export default {
afterDeleted
()
{
afterDeleted
()
{
this
.
$message
({
this
.
$message
({
typeInformation
:
"success"
,
typeInformation
:
"success"
,
message
:
this
.
$t
(
"topic.deleteSuccessAndJumpToBack"
)
,
message
:
this
.
$t
(
"topic.deleteSuccessAndJumpToBack"
)
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
push
(
"/"
);
this
.
$router
.
push
(
"/"
);
},
1000
);
},
1000
);
}
,
}
},
},
head
()
{
head
()
{
return
{
return
{
...
@@ -644,7 +644,7 @@ export default {
...
@@ -644,7 +644,7 @@ export default {
{
{
hid
:
"keywords"
,
hid
:
"keywords"
,
name
:
"keywords"
,
name
:
"keywords"
,
content
:
(
this
.
thread
.
category
&&
this
.
thread
.
category
.
name
)
||
""
,
content
:
(
this
.
thread
.
category
&&
this
.
thread
.
category
.
name
)
||
""
},
},
{
{
hid
:
"description"
,
hid
:
"description"
,
...
@@ -652,20 +652,19 @@ export default {
...
@@ -652,20 +652,19 @@ export default {
content
:
content
:
(
this
.
thread
.
firstPost
&&
(
this
.
thread
.
firstPost
&&
this
.
thread
.
firstPost
.
summaryText
.
slice
(
0
,
80
))
||
this
.
thread
.
firstPost
.
summaryText
.
slice
(
0
,
80
))
||
""
,
""
},
},
{
{
name
:
"og:video"
,
name
:
"og:video"
,
content
:
content
:
(
this
.
thread
.
threadVideo
&&
this
.
thread
.
threadVideo
.
media_url
)
||
(
this
.
thread
.
threadVideo
&&
this
.
thread
.
threadVideo
.
media_url
)
||
""
""
,
}
},
]
],
};
};
},
},
textChange
()
{
textChange
()
{
alert
(
332
);
alert
(
332
);
}
,
}
// },
// },
// destroy() {
// destroy() {
...
@@ -681,7 +680,9 @@ export default {
...
@@ -681,7 +680,9 @@ export default {
width: 200px;
width: 200px;
overflow: hidden;
overflow: hidden;
} */
} */
.el-image__inner
{
object-fit
:
fill
!important
}
.el-image__inner
{
object-fit
:
fill
!important
;
}
.detail-content-left-text
.detail-content-left-text
.el-tree--highlight-current
.el-tree--highlight-current
.el-tree-node.is-current
.el-tree-node.is-current
...
@@ -700,7 +701,9 @@ export default {
...
@@ -700,7 +701,9 @@ export default {
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.el-image__inner
{
object-fit
:
fill
!important
}
.el-image__inner
{
object-fit
:
fill
!important
;
}
@import
"@/assets/css/variable/color.scss"
;
@import
"@/assets/css/variable/color.scss"
;
.iframe-box
{
.iframe-box
{
position
:
relative
;
position
:
relative
;
...
@@ -716,7 +719,9 @@ export default {
...
@@ -716,7 +719,9 @@ export default {
z-index
:
99
;
z-index
:
99
;
}
}
.detail
{
.detail
{
width
:
100%
;
&-content
{
&-content
{
width
:
100%
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-left
{
&-left
{
...
@@ -733,7 +738,7 @@ export default {
...
@@ -733,7 +738,7 @@ export default {
line-height
:
17px
;
line-height
:
17px
;
}
}
&
-custom
{
&
-custom
{
width
:
1
5
0px
;
width
:
1
0
0px
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
...
...
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