Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl_help
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Max
gl_help
Commits
369d2aa8
Commit
369d2aa8
authored
Aug 11, 2023
by
何毅恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享优化
parent
91959458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
src/pages/mobile/articleDetails/index.vue
src/pages/mobile/articleDetails/index.vue
+24
-4
No files found.
src/pages/mobile/articleDetails/index.vue
View file @
369d2aa8
...
...
@@ -3,13 +3,19 @@
<h2>
{{
informationDetail
.
title
}}
</h2>
<div
class=
"downBox"
>
<span>
{{
formatDate
(
informationDetail
.
add_time
)
}}
</span>
<
!--
<
a
v-if=
"informationDetail.is_down"
<a
v-if=
"informationDetail.is_down
&& downType == 1
"
:href=
"imgUrl + informationDetail.pdf_url"
:download=
"informationDetail.title"
>
点击下载
</a
>
-->
<div
class=
"downLoadBtn"
@
click=
"downLoad"
>
点击下载
</div>
>
<div
class=
"downLoadBtn"
v-if=
"informationDetail.is_down && downType == 0"
@
click=
"downLoad"
>
点击下载
</div>
</div>
<p
v-html=
"informationDetail.content"
></p>
</div>
...
...
@@ -40,7 +46,21 @@ onMounted(() => {
script
.
type
=
"
text/javascript
"
;
script
.
src
=
"
https://res.wx.qq.com/open/js/jweixin-1.3.2.js
"
;
document
.
body
.
appendChild
(
script
);
//微信环境下
if
(
globalProperties
.
$wx
.
isWeixin
())
{
wx
.
miniProgram
.
getEnv
(
function
(
res
)
{
if
(
res
.
miniprogram
)
{
// 小程序环境下逻辑
downType
.
value
=
0
;
}
else
{
//非小程序环境下逻辑
downType
.
value
=
1
;
}
});
}
});
let
downType
:
any
=
ref
(
0
);
let
id
=
route
.
currentRoute
.
value
.
query
.
id
;
let
informationDetail
:
any
=
ref
();
const
getInformationDetail
=
async
(
id
)
=>
{
...
...
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