Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
d4bb723a
Commit
d4bb723a
authored
Dec 22, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出修改
parent
d301286e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
602 additions
and
635 deletions
+602
-635
common.js
src/api/common/common.js
+3
-18
paymentDetail.vue
src/pages/course/paymentDetail.vue
+411
-408
erpindex.js
src/utils/erpindex.js
+188
-167
index.js
src/utils/index.js
+0
-42
No files found.
src/api/common/common.js
View file @
d4bb723a
...
...
@@ -104,22 +104,7 @@ export function getFileExt(filename) {
*/
export
function
EduDownLoad
(
cmd
,
msg
,
fileName
)
{
return
request
({
url
:
cmd
,
method
:
'post'
,
data
:
msg
,
headers
:{
responseType
:
'arraybuffer'
}
}).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel;charset=utf-8"
})
let
url
=
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
'a'
);
link
.
href
=
url
;
link
.
setAttribute
(
"download"
,
fileName
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
})
}
\ No newline at end of file
src/pages/course/paymentDetail.vue
View file @
d4bb723a
This diff is collapsed.
Click to expand it.
src/utils/erpindex.js
View file @
d4bb723a
This diff is collapsed.
Click to expand it.
src/utils/index.js
View file @
d4bb723a
...
...
@@ -476,45 +476,3 @@ export function getLocalStorage(){
return
null
;
}
}
export
function
apipost
(
cmd
,
msg
,
successCall
,
faildCall
,
isOnline
){
var
timestamp
=
(
new
Date
()).
valueOf
();
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
token
=
""
;
var
key
=
""
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
Token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
}
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
var
postData
=
{
"msg"
:
msg
,
"cmd"
:
cmd
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"languageId"
:
tempLanguage
}
// return reuest({
// method:'post',
// })
this
.
$http
.
post
(
apiurl
,
postData
,
{
headers
:
{
'Content-Type'
:
'application/json'
,
'Referer-Viitto'
:
this
.
$route
.
path
}
})
.
then
(
res
=>
{
if
(
res
.
data
.
resultCode
==
10000
||
res
.
data
.
resultCode
==
10001
)
{
}
else
if
(
res
.
resultCode
==
10005
)
{
}
else
{
successCall
(
res
);
}
},
faildCall
)
}
\ No newline at end of file
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