Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b6aaac47
authored
Sep 20, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
6767420a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
src/views/download/Index.vue
view/14.js
src/views/download/Index.vue
View file @
b6aaac47
...
...
@@ -22,15 +22,20 @@
<p
class=
"t1"
>
{{item.title}}
</p>
<div
class=
"bar"
>
<p
class=
"t2"
>
已下载{{item.download_num}}次
</p>
<a
class=
"btn"
@
click=
"download(item.data_id)"
>
下载
</a>
<
template
v-if=
"loginCheck"
>
<a
class=
"btn"
@
click=
"download(item.data_id)"
>
下载
</a>
</
template
>
<
template
>
<a
class=
"btn"
@
click=
"toUrl"
>
下载
</a>
</
template
>
</div>
</li>
</ul>
</div>
<
template
v-if=
"
articleShowData.length <= 3
"
>
<
template
v-if=
"
!loginCheck
"
>
<div
class=
"islogin"
@
click=
"toUrl"
>
<img
src=
"../../assets/images/download/loading.png"
alt=
""
>
<a
href=
"javascript:;"
>
点击登录查看更多 >
</a>
<a
href=
"javascript:;"
>
登录查看更多哦
</a>
</div>
</
template
>
<div
class=
"slide-bar"
v-backTopWindow
style=
"cursor: pointer;"
>
...
...
@@ -63,7 +68,8 @@
computed
:
{
...
mapState
({
getfileuploadbanner
:
state
=>
state
.
download
.
getfileuploadbanner
,
articleShowData
:
state
=>
state
.
download
.
articleShowData
articleShowData
:
state
=>
state
.
download
.
articleShowData
,
loginCheck
:
state
=>
state
.
common
.
loginCheck
})
},
created
()
{
...
...
@@ -80,6 +86,10 @@
this
.
$store
.
dispatch
({
type
:
"articleShowData"
});
this
.
$store
.
dispatch
({
type
:
"loginCheck"
,
is_jump
:
false
});
},
download
(
id
)
{
this
.
$store
.
dispatch
({
...
...
@@ -94,7 +104,7 @@
});
setTimeout
(()
=>
{
window
.
location
.
href
=
'/v3/login?from=download'
window
.
location
.
href
=
'/v3/login?
referer=%2fh5%2fview%2f%23%2fdownoad&
from=download'
},
2000
)
},
...
...
view/14.js
View file @
b6aaac47
This diff is collapsed.
Click to expand it.
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