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
c9ff1478
Commit
c9ff1478
authored
Aug 07, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:我已阅读勾选+错误重复请求
parent
aa23bf20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
+27
-9
_tezhongzuoye_detail.html
src/_tezhongzuoye_detail.html
+1
-1
_tezhongzuoye_detail.js
src/_tezhongzuoye_detail.js
+26
-8
No files found.
src/_tezhongzuoye_detail.html
View file @
c9ff1478
...
...
@@ -145,7 +145,7 @@
</div>
<van-button
type=
"info"
size=
"small"
plain
style=
"margin-top: 0.2rem;
width: 100%;"
@
click=
"showTipPopup = false"
>
width: 100%;"
@
click=
"showTipPopup = false
,formData.check=true;
"
>
关闭
</van-button>
</van-popup>
...
...
src/_tezhongzuoye_detail.js
View file @
c9ff1478
...
...
@@ -33,9 +33,11 @@ window.addEventListener("load", function () {
companyName
:
''
,
workerName
:
''
,
startTime
:
''
,
// 开始时间字段
endTime
:
''
// 结束时间字段
endTime
:
''
,
// 结束时间字段
check
:
false
},
id
:
''
id
:
''
,
errorReqCount
:
0
,
}
},
created
()
{
...
...
@@ -87,6 +89,7 @@ window.addEventListener("load", function () {
showTipPage
()
{
this
.
showTipPopup
=
true
this
.
formData
.
check
=
true
this
.
detail4Tip
()
return
...
...
@@ -99,12 +102,16 @@ window.addEventListener("load", function () {
// gemhoUtil.navigatePage(url, '跳转中...')
},
detail4Tip
()
{
// 隐患详情
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
detail4Tip
(
param
)
{
// 隐患详情
// vant.Toast.loading({
if
(
!
param
){
// 初次请求则显示加载框
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
}
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
no-page
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
no-page
"
][
"
publicKey
"
],
...
...
@@ -114,6 +121,16 @@ window.addEventListener("load", function () {
workType
:
this
.
formData
.
workType
,
}
},
(
res
)
=>
{
if
(
!
res
)
{
// 中台返回为undefined 重新请求
console
.
log
(
'
getRemindStatistic方法返回null!!
'
)
if
(
this
.
errorReqCount
<=
5
){
this
.
errorReqCount
++
this
.
detail4Tip
(
'
repeatReq
'
)
// 请求错误后,重新发起请求
}
return
}
if
(
res
)
{
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
setTimeout
(()
=>
{
...
...
@@ -135,6 +152,7 @@ window.addEventListener("load", function () {
// 新增:触发滚动条更新逻辑
this
.
updateScrollWrapper
()
})
}
})
...
...
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