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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 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
...
@@ -46,7 +46,7 @@ const actions = {
...
@@ -46,7 +46,7 @@ const actions = {
let
param
=
{
let
param
=
{
data_id
:
payload
.
id
,
data_id
:
payload
.
id
,
download
:
payload
.
download
download
:
payload
.
download
}
}
let
params
=
Util
.
getParams
(
param
);
let
params
=
Util
.
getParams
(
param
);
...
@@ -58,12 +58,12 @@ const actions = {
...
@@ -58,12 +58,12 @@ const actions = {
if
(
data
.
err_code
==
0
)
{
if
(
data
.
err_code
==
0
)
{
let
platform
=
Util
.
isUerAgent
();
let
platform
=
Util
.
isUerAgent
();
if
(
payload
.
download
==
1
)
{
if
(
payload
.
download
==
1
)
{
Toast
({
Toast
({
message
:
data
.
err_msg
,
message
:
data
.
err_msg
,
duration
:
2000
duration
:
2000
});
});
}
else
{
}
else
{
if
(
platform
==
'ios'
)
{
if
(
platform
==
'ios'
)
{
Toast
({
Toast
({
message
:
'该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n'
,
message
:
'该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n'
,
...
@@ -103,8 +103,9 @@ const actions = {
...
@@ -103,8 +103,9 @@ const actions = {
forbidClick
:
true
,
forbidClick
:
true
,
loadingType
:
'spinner'
loadingType
:
'spinner'
});
});
let
param
=
{
let
param
=
{
class_id
:
payload
.
class_id
limit
:
200
,
class_id
:
payload
.
class_id
}
}
let
params
=
Util
.
getParams
(
param
);
let
params
=
Util
.
getParams
(
param
);
Services
.
articleShowData
(
params
).
then
((
res
)
=>
{
Services
.
articleShowData
(
params
).
then
((
res
)
=>
{
...
@@ -128,11 +129,8 @@ const actions = {
...
@@ -128,11 +129,8 @@ const actions = {
},
},
showClass
({
commit
},
payload
)
{
showClass
({
commit
},
payload
)
{
let
param
=
{
limit
:
200
}
var
params
=
Util
.
getParams
(
param
);
var
params
=
Util
.
getParams
();
Services
.
showClass
(
params
).
then
((
res
)
=>
{
Services
.
showClass
(
params
).
then
((
res
)
=>
{
let
data
=
res
.
data
;
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