Commit 2d44c3d2 by xiongyuwen

no message

parent 9785353c
...@@ -189,9 +189,9 @@ export default { ...@@ -189,9 +189,9 @@ export default {
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
.img { // .img {
object-fit: cover; // object-fit: cover;
} // }
.prevent-jump { .prevent-jump {
cursor: default; cursor: default;
} }
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
border-radius: 5px; border-radius: 5px;
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; // object-fit: cover;
} }
> .progress { > .progress {
......
...@@ -57,11 +57,43 @@ ...@@ -57,11 +57,43 @@
/> --> /> -->
<div class="list-top-item"> <div class="list-top-item">
<nuxt-link :to="`/thread/`" target="_blank" class="top-title"> <a href="#" class="top-title">
<template> 百伦论坛知识库 </template> 百伦论坛知识库
<div></div
></a>
<div /> <div />
</nuxt-link>
</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" /> <comment v-if="renderComponent" ref="comment" :thread-id="threadId" />
</div> </div>
</div> </div>
...@@ -77,7 +109,9 @@ const threadInclude = ...@@ -77,7 +109,9 @@ const threadInclude =
"category,threadVideo,paidUsers,question,question.beUser,question.images,onlookers"; "category,threadVideo,paidUsers,question,question.beUser,question.images,onlookers";
import env from "@/utils/env"; import env from "@/utils/env";
import config from "@/config.js"; import config from "@/config.js";
import AttachmentList from "../../components/topic/AttachmentList.vue";
export default { export default {
components: { AttachmentList },
data() { data() {
return { return {
threadId: "26", threadId: "26",
...@@ -185,6 +219,26 @@ export default { ...@@ -185,6 +219,26 @@ export default {
passwordError: false, passwordError: false,
passwordErrorTip: "", passwordErrorTip: "",
findPassword: false, 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: { computed: {
...@@ -257,7 +311,6 @@ export default { ...@@ -257,7 +311,6 @@ 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;
} }
...@@ -329,6 +382,13 @@ export default { ...@@ -329,6 +382,13 @@ export default {
if (data.file) { if (data.file) {
this.showViewloading = true; this.showViewloading = true;
axios 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}`) .get(`${config.WEI_PAN_URL}/weipan/GetFileInfo?fileId=${data.id}`)
.then((res) => { .then((res) => {
// const ele = document.querySelector(".WACPageBorder"); // const ele = document.querySelector(".WACPageBorder");
...@@ -621,6 +681,7 @@ export default { ...@@ -621,6 +681,7 @@ export default {
width: 200px; width: 200px;
overflow: hidden; overflow: hidden;
} */ } */
.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
...@@ -639,6 +700,7 @@ export default { ...@@ -639,6 +700,7 @@ export default {
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
.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;
......
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