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
457c98e6
authored
May 27, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
BUG
parent
8437b574
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
src/store/modules/download/index.js
view/index.html
view/js/app.e339a004.js → view/js/app.8593ad85.js
src/store/modules/download/index.js
View file @
457c98e6
...
...
@@ -43,12 +43,12 @@ const actions = {
});
},
downloadFile
:
function
({
commit
},
payload
)
{
let
param
=
{
data_id
:
payload
.
id
,
download
:
payload
.
download
download
:
payload
.
download
}
let
params
=
Util
.
getParams
(
param
);
...
...
@@ -58,12 +58,12 @@ const actions = {
if
(
data
.
err_code
==
0
)
{
let
platform
=
Util
.
isUerAgent
();
if
(
payload
.
download
==
1
)
{
if
(
payload
.
download
==
1
)
{
Toast
({
message
:
data
.
err_msg
,
duration
:
2000
});
}
else
{
}
else
{
if
(
platform
==
'ios'
)
{
Toast
({
message
:
'该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n'
,
...
...
@@ -103,8 +103,9 @@ const actions = {
forbidClick
:
true
,
loadingType
:
'spinner'
});
let
param
=
{
class_id
:
payload
.
class_id
let
param
=
{
limit
:
200
,
class_id
:
payload
.
class_id
}
let
params
=
Util
.
getParams
(
param
);
Services
.
articleShowData
(
params
).
then
((
res
)
=>
{
...
...
@@ -128,11 +129,8 @@ const actions = {
},
showClass
({
commit
},
payload
)
{
let
param
=
{
limit
:
200
}
var
params
=
Util
.
getParams
(
param
);
var
params
=
Util
.
getParams
();
Services
.
showClass
(
params
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
...
...
view/index.html
View file @
457c98e6
This diff is collapsed.
Click to expand it.
view/js/app.
e339a004
.js
→
view/js/app.
8593ad85
.js
View file @
457c98e6
This diff could not be displayed because it is too large.
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