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
1b8105b3
Commit
1b8105b3
authored
Jan 23, 2021
by
xiongyuwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1a576f26
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
15 deletions
+18
-15
Header.vue
components/Header.vue
+3
-2
PostItem.vue
components/PostItem.vue
+0
-1
TopicContent.vue
components/topic/TopicContent.vue
+1
-1
config.js
config.js
+2
-2
_id.vue
pages/category/_id.vue
+2
-2
index.vue
pages/index.vue
+2
-2
knowledgeDetail.vue
pages/knowledge/knowledgeDetail.vue
+8
-5
No files found.
components/Header.vue
View file @
1b8105b3
...
...
@@ -162,14 +162,15 @@ export default {
var
token
=
"Bearer%20eyJhbGciOiJSUzI1NiIsImtpZCI6IjQ1ZmMzZDYzYjRmNGM5YjAzMWVhNjQ0MzhhNTE1NmM3IiwidHlwIjoiSldUIn0.eyJuYmYiOjE2MTAxNzMxNTAsImV4cCI6MTYxMDIwOTE1MCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo1MDAxIiwiYXVkIjpbImh0dHA6Ly9sb2NhbGhvc3Q6NTAwMS9yZXNvdXJjZXMiLCJiYWlsdW5BcGkiXSwiY2xpZW50X2lkIjoiYmFpbHVuQ2xpZW50Iiwic3ViIjoi54aK6KOV5paHIiwiYXV0aF90aW1lIjoxNjEwMTczMTUwLCJpZHAiOiJsb2NhbCIsIlVzZXJJZCI6IjI5MjEyNzAiLCJXeFVzZXJJZCI6Inhpb25neXV3ZW4iLCJzdWNlc3NzIjoidHJ1ZSIsIkNvbXBhbnkiOiJ7XCJJZFwiOjEsXCJDb21wYW55Q29kZVwiOlwiYmFpbHVuXCIsXCJDb21wYW55TmFtZVwiOlwi5bm_5bee55m-5Lym5L6b5bqU6ZO-56eR5oqA5pyJ6ZmQ5YWs5Y-4XCJ9IiwiQWxsQ29tcGFueSI6IkZhbHNlIiwiVXNlckNvZGVOZXciOiJCTDE4ODQiLCJVc2VyQ29kZSI6IkJMNTU2NjkyMiIsIk9hVXNlcklkIjoiMzk4OCIsIkRlcGFydG1lbnQiOiJ7XCJEZXBhcnRtZW50SWRcIjoyNTYsXCJOYW1lXCI6XCLliIrnmbvlsI_nu4RcIixcIkNvZGVcIjpcIlwifSIsInNjb3BlIjpbIm9wZW5pZCIsInByb2ZpbGUiLCJiYWlsdW5BcGkiXSwiYW1yIjpbImN1c3RvbSJdfQ.LWd_QutKJiG_zgE8kW2om5I5SB-rEA-c4LHvDZ0CzMLDGNNq-n40WodpD6W3W0nncKSObmvAycGo4Ko5bboAdP4zJykpoHEqSZ2naOZGwpvq8YnE50Ce0Nw1QgLWm0sXdNK6AfxItT04MOqjmhGrZ3KkQsS6VujXFCxBq1Mt2aVjhAgZjH5MKNMrPBuFN2h1l-fDWsjDoJw7JBNQQOJ2PlXHTCXIKLN3GzLt7VTmUa1Up8UozfoXu2k5Vzl5tCrNgGIUAmgdvME_I_eE3M-Klmqa6Tb2XfSRGqkmc7fnbF79ni4YtvxgYhQHAl-v9BNJF3OtQKXnGtGSaUC8rMTxzg"
;
var
token
=
token
.
replace
(
"Bearer%20"
,
""
).
replace
(
"Bearer "
,
""
);
if
(
token
)
{
// 有值
const
jwt
=
require
(
"jsonwebtoken"
);
const
wxUserid
=
jwt
.
decode
(
token
).
WxUserId
;
// 更加微信用户id获取对应得用户信息并返回
axios
.
get
(
`http://discuz.bailuntec.com/api/login?useid=
${
wxUserid
}
`
)
.
get
(
`http://discuz.bailuntec.com/api/login?useid=
chenzekai
`
)
.
then
(
res
=>
{
if
(
res
.
data
.
data
.
relationships
.
users
.
data
.
id
)
{
localStorage
.
setItem
(
...
...
components/PostItem.vue
View file @
1b8105b3
...
...
@@ -169,7 +169,6 @@
class="images"
@click.self="toDetail"
>
<!-- 888888 先演示给你看下到你了 -->
<el-image
v-for=
"(image, index) in item.firstPost.images.slice(0, 3)"
:key=
"index"
...
...
components/topic/TopicContent.vue
View file @
1b8105b3
...
...
@@ -234,7 +234,7 @@ export default {
},
addTextHideCover
()
{
if
(
!!
this
.
article
)
{
if
(
!!
this
.
article
.
attachments
)
{
if
(
!!
this
.
article
.
attachments
[
0
]
)
{
let
filePath
=
this
.
article
.
attachments
[
0
].
filePath
;
if
(
!!
filePath
)
{
this
.
isShowView
=
true
;
...
...
config.js
View file @
1b8105b3
...
...
@@ -5,6 +5,6 @@ export default {
DEV_API_URL
:
'http://discuz.bailuntec.com'
,
// ssr api url
SSR_API_URL
:
'http://discuz.bailuntec.com'
,
//
WEI_PAN_URL: 'http://localhost:5008'
WEI_PAN_URL
:
'http://pps.bailuntec.com/DiscuzApi'
WEI_PAN_URL
:
'http://localhost:5008'
//
WEI_PAN_URL: 'http://pps.bailuntec.com/DiscuzApi'
};
pages/category/_id.vue
View file @
1b8105b3
...
...
@@ -31,12 +31,12 @@
</div>
</div>
<div
v-if=
"total > 0"
class=
"new-post"
>
<div
class=
"new-post-cont"
>
<
!-- <
div class="new-post-cont">
{{ $t("home.hasNewContent", { total }) }}
<span class="refresh" @click="reloadThreadsList">{{
$t("home.clickRefresh")
}}</span>
</div>
</div>
-->
</div>
<!-- <div class="post-list">
<template v-for="(item, index) in threadsData">
...
...
pages/index.vue
View file @
1b8105b3
...
...
@@ -31,12 +31,12 @@
</div>
</div>
<div
v-if=
"total > 0"
class=
"new-post"
>
<div
class=
"new-post-cont"
>
<
!-- <
div class="new-post-cont">
{{ $t("home.hasNewContent", { total }) }}
<span class="refresh" @click="reloadThreadsList">{{
$t("home.clickRefresh")
}}</span>
</div>
</div>
-->
</div>
<!-- <template v-for="(item, index) in threadsData">
<post-item v-if="item.type === 4"
...
...
pages/knowledge/knowledgeDetail.vue
View file @
1b8105b3
...
...
@@ -80,7 +80,7 @@ import config from "@/config.js";
export
default
{
data
()
{
return
{
threadId
:
"
1
"
,
threadId
:
"
999999999
"
,
actions
:
[
{
text
:
this
.
$t
(
"topic.read"
),
...
...
@@ -152,7 +152,6 @@ export default {
.
then
(
res
=>
{
// this.data = res.data.result;
this
.
data
=
this
.
deleteChildren
(
res
.
data
.
result
);
console
.
log
(
this
.
data
,
"this.data"
);
this
.
loading
=
false
;
if
(
this
.
data
.
length
==
1
)
{
if
(
this
.
data
[
0
].
file
)
{
...
...
@@ -160,7 +159,6 @@ export default {
this
.
handleNodeClick
(
this
.
data
[
0
]);
}
}
console
.
log
(
this
.
data
,
222
);
});
// 监听滚动事件
// window.addEventListener("scroll", this.onScroll, false);
...
...
@@ -190,11 +188,12 @@ export default {
window
.
open
(
this
.
fileSrc
,
"_blank"
);
},
handleNodeClick
(
data
)
{
self
=
this
;
if
(
data
.
file
)
{
this
.
showViewloading
=
true
;
axios
.
get
(
`
${
config
.
WEI_PAN_URL
}
/weipan/
getviewfile?userId=
${
this
.
qywxUserid
}
&fileId=
${
data
.
id
}
&md5=
${
data
.
md5
}
&fileName=
${
data
.
label
}
`
`
${
config
.
WEI_PAN_URL
}
/weipan/
GetFileInfo?fileId=
${
data
.
id
}
`
)
.
then
(
res
=>
{
// const ele = document.querySelector(".WACPageBorder");
...
...
@@ -202,7 +201,7 @@ export default {
// console.log(ele, "ele");
this
.
showViewloading
=
false
;
if
(
res
.
data
)
{
const
filePath
=
res
.
data
.
result
;
const
filePath
=
res
.
data
.
result
.
qiniuUrl
;
if
(
filePath
)
{
this
.
isShowView
=
true
;
if
(
/
\.(
gif|jpg|jpeg|png|GIF|JPG|PNG
)
$/
.
test
(
filePath
))
{
...
...
@@ -218,6 +217,10 @@ export default {
this
.
fileSrc
=
`http://ow365.cn/?i=23468&furl=
${
filePath
}
`
;
}
}
//获取fileid对应得threadId
let
threadId
=
res
.
data
.
result
.
threadId
;
this
.
threadId
=
threadId
.
toString
();
console
.
log
(
this
.
threadId
,
3232
);
}
this
.
fileMd5
=
data
.
md5
;
});
...
...
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