Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
0b0a83d9
Commit
0b0a83d9
authored
Jun 18, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:逾期上报接口对接
parent
05875aa5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
10 deletions
+40
-10
axios_http.js
sdk/axios_http.js
+4
-4
_check_info.html
src/_check_info.html
+3
-3
_check_info.js
src/_check_info.js
+33
-3
No files found.
sdk/axios_http.js
View file @
0b0a83d9
...
...
@@ -25,13 +25,13 @@ axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJlUzUxMiJ9.eyJzdWlioilxNZ92MZAzMDl00SlslmxyZ2luX3VzZXJfa2V5ljoiMEONTM1NzktNTJiMSO0N2QwLTkzNmEtMmViNWFhYzMzMTI1In0.EG_EwS7xS1jgi29Ly7WXOJBCW4DcAyOtLD4he06sV8b4i70kknNQqVAx063NpcDa5kmTFdZ6zEfPHYPfVR4dEO'
// wgy账号token
//
axios.defaults.headers.common['Authorization'] =
//
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6IjU3MTM1MWEyLTVhNDAtNGRhMS05ODk0LTFjMzZhNTJlMzkxMyJ9.ryYWzzcwCU2EHNYb2AQCMfP2S_rvBheuhexKV6NP-E_8BQ7vlpLAYXAB6xmuPgyAotnwzxXOcOxuopdIpbiJnQ'
axios
.
defaults
.
headers
.
common
[
'
Authorization
'
]
=
'
Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlrZnmgJ3lv40iLCJsb2dpbl91c2VyX2tleSI6IjU3MTM1MWEyLTVhNDAtNGRhMS05ODk0LTFjMzZhNTJlMzkxMyJ9.ryYWzzcwCU2EHNYb2AQCMfP2S_rvBheuhexKV6NP-E_8BQ7vlpLAYXAB6xmuPgyAotnwzxXOcOxuopdIpbiJnQ
'
// admin账号token
axios
.
defaults
.
headers
.
common
[
'
Authorization
'
]
=
'
Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw
'
//
axios.defaults.headers.common['Authorization'] =
//
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiOTEyODc0N2ItNGE4NC00MWRjLTg0ZGUtZTY1ODNkMzBiNDcwIn0.w_JRlifng-sUQqvGnuRFH5-wiL-1tfwI1cF7E97gjaOZ37bvRQld3120Myf9MYqLtVHUVX_vhlcBj7Kmg9exZw'
// 请求拦截器
...
...
src/_check_info.html
View file @
0b0a83d9
...
...
@@ -275,9 +275,9 @@
<div
class=
"content"
style=
"padding: 0rem 1rem 0.5rem; text-align: center;"
>
<h4
style=
"text-align: left;font-size: .32rem;"
>
选择行业主管部门
</h4>
<van-checkbox-group
v-model=
"yuqi.dept"
>
<div
v-for=
"(item, subIndex) in 4"
style=
"overflow: hidden;"
>
<van-checkbox
:key=
"subIndex"
:name=
"item
"
shape=
"square
"
>
{{
'社会事业局'
}}
<div
style=
"overflow: hidden;"
>
<van-checkbox
:key=
"subIndex"
:name=
"item
.deptId"
shape=
"square"
v-for=
"(item, subIndex) in yuqi.deptDict
"
>
{{
item.deptName
}}
</van-checkbox>
</div>
</van-checkbox-group>
...
...
src/_check_info.js
View file @
0b0a83d9
...
...
@@ -120,6 +120,7 @@ window.onload = function () {
}
this
.
getDept4jujue
()
this
.
getDept4yuqi
()
},
watch
:
{
checkData
:
{
...
...
@@ -137,6 +138,35 @@ window.onload = function () {
}
},
methods
:
{
getDept4yuqi
(
param
)
{
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
no-page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
interfacePrivateKey
:
API_KEY_MAP
[
"
no-page
"
][
"
privateKey
"
],
reqParams
:
{
sign
:
28
,
// 逾期上报列表获取
}
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
vant
.
Toast
.
clear
()
setTimeout
(()
=>
{
this
.
getDept4yuqi
()
},
0
);
return
}
if
(
res
)
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
})
},
0
);
var
result
=
JSON
.
parse
(
res
)
console
.
log
(
'
接口回调数据getDept4jujue
'
,
JSON
.
parse
(
res
))
this
.
yuqi
.
deptDict
=
result
.
data
}
})
},
getDept4jujue
(
param
)
{
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
no-page
"
][
'
id
'
],
...
...
@@ -172,10 +202,9 @@ window.onload = function () {
"
hdId
"
:
this
.
id
,
}
if
(
type
){
// 为1,则是延期
if
(
type
===
1
){
// 为1,则是延期
reqParams
.
type
=
type
}
if
(
!
type
){
上报
}
else
{
// 上报
if
(
!
this
.
yuqi
.
dept
.
length
){
vant
.
Dialog
.
alert
({
title
:
'
信息提示
'
,
...
...
@@ -185,6 +214,7 @@ window.onload = function () {
}
reqParams
.
reportedIds
=
this
.
yuqi
.
dept
}
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
no-page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
...
...
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