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
2d44c3d2
Commit
2d44c3d2
authored
Jan 25, 2021
by
xiongyuwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
9785353c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
9 deletions
+71
-9
Avatar.vue
components/Avatar.vue
+3
-3
ImageUpload.vue
components/editor/ImageUpload.vue
+1
-1
knowledgeDetail.vue
pages/knowledge/knowledgeDetail.vue
+67
-5
No files found.
components/Avatar.vue
View file @
2d44c3d2
...
...
@@ -189,9 +189,9 @@ export default {
right
:
0
;
bottom
:
0
;
}
.img
{
object-fit
:
cover
;
}
//
.img
{
//
object-fit
:
cover
;
//
}
.prevent-jump
{
cursor
:
default
;
}
...
...
components/editor/ImageUpload.vue
View file @
2d44c3d2
...
...
@@ -137,7 +137,7 @@ export default {
border-radius
:
5px
;
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
//
object-fit
:
cover
;
}
>
.progress
{
...
...
pages/knowledge/knowledgeDetail.vue
View file @
2d44c3d2
...
...
@@ -57,11 +57,43 @@
/>
-->
<div
class=
"list-top-item"
>
<nuxt-link
:to=
"`/thread/`"
target=
"_blank"
class=
"top-title"
>
<template>
百伦论坛知识库
</
template
>
<div
/>
</nuxt-link>
<a
href=
"#"
class=
"top-title"
>
百伦论坛知识库
<div></div
></a>
<div
/>
</div>
<attachment-list
:file=
"attachmentFile"
:is-paid=
"isPaid"
:price=
"price"
:is-paid-attachment=
"isPaidAttachment"
:attachment-price=
"attachmentPrice"
/>
<topic-reward-list
:author=
"thread.user ||
{}"
:paid-information="paidInformation"
:can-paid="forums
&&
forums.paycenter
&&
forums.paycenter.wxpay_close"
:can-reward="
forums
&&
forums.paycenter
&&
forums.paycenter.wxpay_close
&&
thread.canBeReward
"
:thread-type="thread.type || 0"
:user-lists="[
thread.paidUsers || [],
thread.rewardedUsers || [],
article.likedUsers || [],
[],
]"
@payOrReward="showCheckoutCounter = true"
/>
<topic-actions
:thread-id=
"threadId"
:actions=
"actions || []"
@
clickAction=
"postCommand"
/>
<comment
v-if=
"renderComponent"
ref=
"comment"
:thread-id=
"threadId"
/>
</div>
</div>
...
...
@@ -77,7 +109,9 @@ const threadInclude =
"category,threadVideo,paidUsers,question,question.beUser,question.images,onlookers"
;
import
env
from
"@/utils/env"
;
import
config
from
"@/config.js"
;
import
AttachmentList
from
"../../components/topic/AttachmentList.vue"
;
export
default
{
components
:
{
AttachmentList
},
data
()
{
return
{
threadId
:
"26"
,
...
...
@@ -185,6 +219,26 @@ export default {
passwordError
:
false
,
passwordErrorTip
:
""
,
findPassword
:
false
,
attachmentPrice
:
"0.00"
,
attachmentFile
:
{
attachment
:
""
,
extension
:
"pdf"
,
fileName
:
""
,
filePath
:
""
,
fileSize
:
349279
,
fileType
:
""
,
id
:
93
,
isApproved
:
1
,
isRemote
:
false
,
order
:
0
,
thumbUrl
:
""
,
type
:
0
,
type_id
:
118
,
url
:
""
,
},
isPaid
:
false
,
isPaidAttachment
:
false
,
price
:
"0.00"
,
};
},
computed
:
{
...
...
@@ -257,7 +311,6 @@ export default {
const
fatherid
=
this
.
$route
.
query
.
fatherid
;
const
appointfileid
=
this
.
$route
.
query
.
appointfileid
;
const
firstfileid
=
this
.
$route
.
query
.
firstfileid
;
if
(
!!
appointfileid
)
{
fildId
=
firstfileid
;
}
...
...
@@ -329,6 +382,13 @@ export default {
if
(
data
.
file
)
{
this
.
showViewloading
=
true
;
axios
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/GetAttchmattachmentByFileId?fileId=
${
data
.
id
}
`
)
.
then
((
res
)
=>
{
this
.
attachmentFile
=
res
.
data
.
result
;
});
axios
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/GetFileInfo?fileId=
${
data
.
id
}
`
)
.
then
((
res
)
=>
{
// const ele = document.querySelector(".WACPageBorder");
...
...
@@ -621,6 +681,7 @@ export default {
width: 200px;
overflow: hidden;
} */
.el-image__inner
{
object-fit
:
fill
!important
}
.detail-content-left-text
.el-tree--highlight-current
.el-tree-node.is-current
...
...
@@ -639,6 +700,7 @@ export default {
}
</
style
>
<
style
lang=
"scss"
scoped
>
.el-image__inner
{
object-fit
:
fill
!important
}
@import
"@/assets/css/variable/color.scss"
;
.iframe-box
{
position
:
relative
;
...
...
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