Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjCode
Project
Project
Details
Activity
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
tanjuanjuan
gjjCode
Commits
1681650a
Commit
1681650a
authored
Jan 03, 2025
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
9bed31e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
2 deletions
+68
-2
request.js
src/api/request.js
+14
-0
index.vue
src/pages/index/index.vue
+20
-2
http.js
src/utils/http.js
+34
-0
No files found.
src/api/request.js
0 → 100644
View file @
1681650a
import
{
request
}
from
'../utils/http'
export
const
payList
=
(
query
)
=>
{
return
request
({
url
:
'/gjjzgcjmx'
,
data
:
query
,
method
:
"POST"
,
header
:
{
'content-type'
:
'application/json'
}
})
}
src/pages/index/index.vue
View file @
1681650a
...
...
@@ -133,7 +133,9 @@
import
{
infoPinia
}
from
'@/store'
;
import
{
payList
}
from
'../../api/request'
const
infoStore
=
infoPinia
()
const
getCurrentTimestamp
=
()
=>
{
...
...
@@ -212,7 +214,7 @@
//公积金个人信息
infoStore
.
spidno
=
info
.
data
.
uIdCardNo
;
xma
.
request
({
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj
/gjjgrxx
'
,
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj'
,
data
:
{
spidno
:
infoStore
.
spidno
,
trantime
:
getCurrentTimestamp
()
...
...
@@ -244,6 +246,22 @@
const
data
=
JSON
.
parse
(
res
.
data
.
data
)
infoStore
.
listInfo
=
data
.
data
.
records
[
0
].
list
.
acc_info
}})
payList
({
"eatda"
:
"string"
,
"iseqno"
:
"string"
,
"jzh"
:
"string"
,
"sdata"
:
"string"
,
"spcode"
:
spcode
.
value
,
"transcode"
:
"string"
}).
then
(
res
=>
{
console
.
log
(
"in request ***"
),
console
.
log
(
res
)
})
//公积金贷款信息
xma
.
request
({
url
:
'https://onemoment.gywb.cn/back/sgy-gjj/gjj/gjjdkxx'
,
...
...
src/utils/http.js
0 → 100644
View file @
1681650a
export
const
request
=
({
url
,
data
=
{},
header
,
method
=
"GET"
})
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
header
=
{
...
header
};
xma
.
request
({
url
:
"https://onemoment.gywb.cn/back/sgy-gjj/gjj"
+
url
,
data
,
header
,
method
,
success
:
(
res
)
=>
{
if
(
res
.
statusCode
!==
200
)
{
xma
.
showToast
({
title
:
res
.
data
.
message
,
duration
:
1000
,
icon
:
'none'
,
});
return
;
}
resolve
(
res
.
data
)
},
fail
:(
err
)
=>
{
reject
(
err
)
}
})
})
}
\ 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