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
632be74c
Commit
632be74c
authored
Jul 27, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面加载 空白显示优化处理
parent
ec64a0a8
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
48 additions
and
13 deletions
+48
-13
gaoquyingjih5-asd-jpaas0716.zip
gaoquyingjih5-asd-jpaas0716.zip
+0
-0
http.js
sdk/http.js
+12
-1
dw-list-detail.js
src/dw-list-detail.js
+3
-1
dw-list.js
src/dw-list.js
+3
-1
emergency-detail.js
src/emergency-detail.js
+3
-1
emergency.js
src/emergency.js
+3
-1
law-list-detail.js
src/law-list-detail.js
+3
-1
law-list.js
src/law-list.js
+3
-1
law-lv1.js
src/law-lv1.js
+3
-1
law-lv2.js
src/law-lv2.js
+3
-1
notice-list-detail.js
src/notice-list-detail.js
+3
-1
notice-list.js
src/notice-list.js
+3
-1
yh-list-detail.js
src/yh-list-detail.js
+3
-1
yh-list.js
src/yh-list.js
+3
-1
No files found.
gaoquyingjih5-asd-jpaas0716.zip
0 → 100644
View file @
632be74c
File added
sdk/http.js
View file @
632be74c
...
@@ -2,9 +2,14 @@
...
@@ -2,9 +2,14 @@
* 请求拦截、相应拦截、错误统一处理
* 请求拦截、相应拦截、错误统一处理
*/
*/
const
BASE_URL
=
'
https://gqyjpt.weihai.cn
'
const
BASE_URL
=
'
https://gqyjpt.weihai.cn
'
var
errors
=
[]
if
(
localStorage
.
getItem
(
'
wenti
'
)){
errors
=
JSON
.
parse
(
localStorage
.
getItem
(
'
wenti
'
))
}
localStorage
.
setItem
(
'
wenti
'
,
JSON
.
stringify
(
errors
))
var
http2
=
{
var
http2
=
{
post
:
function
(
params
,
fn
)
{
post
:
function
(
params
,
fn
)
{
console
.
log
(
'
中台错误信息
'
,
JSON
.
stringify
(
localStorage
.
getItem
(
'
wenti
'
)))
/**
/**
* 网关验签接口
* 网关验签接口
* @param {1} = appid应用唯一标识
* @param {1} = appid应用唯一标识
...
@@ -46,6 +51,9 @@ var http2 = {
...
@@ -46,6 +51,9 @@ var http2 = {
success: true
success: true
*/
*/
if
(
!
value
){
if
(
!
value
){
var
errors
=
JSON
.
parse
(
localStorage
.
getItem
(
'
wenti
'
))
errors
.
push
(
'
中台发生了错误-中台value为undefined
'
)
localStorage
.
setItem
(
'
wenti
'
,
JSON
.
stringify
(
errors
))
// vant.Dialog.alert({
// vant.Dialog.alert({
// title: '信息提示',
// title: '信息提示',
// message: '网络异常, 请重试',
// message: '网络异常, 请重试',
...
@@ -61,6 +69,9 @@ var http2 = {
...
@@ -61,6 +69,9 @@ var http2 = {
console
.
log
(
'
vaildInterfacefn响应解密
'
,
sm2_decrypt_result
)
console
.
log
(
'
vaildInterfacefn响应解密
'
,
sm2_decrypt_result
)
if
(
!
sm2_decrypt_result
){
// 解密为空字符串
if
(
!
sm2_decrypt_result
){
// 解密为空字符串
var
errors
=
JSON
.
parse
(
localStorage
.
getItem
(
'
wenti
'
))
errors
.
push
(
'
中台发生了错误-解密为空
'
)
localStorage
.
setItem
(
'
wenti
'
,
JSON
.
stringify
(
errors
))
fn
&&
fn
(
null
,
'
decrypt
'
)
fn
&&
fn
(
null
,
'
decrypt
'
)
return
return
}
}
...
...
src/dw-list-detail.js
View file @
632be74c
...
@@ -220,7 +220,9 @@ window.addEventListener("load", function() {
...
@@ -220,7 +220,9 @@ window.addEventListener("load", function() {
if
(
res
)
{
if
(
res
)
{
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
console
.
log
(
'
接口回调数据
'
,
JSON
.
parse
(
res
))
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
var
result
=
JSON
.
parse
(
res
)
var
result
=
JSON
.
parse
(
res
)
// this.noticeContent = result.noticeContent
// this.noticeContent = result.noticeContent
...
...
src/dw-list.js
View file @
632be74c
...
@@ -72,7 +72,9 @@ window.addEventListener("load", function() {
...
@@ -72,7 +72,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/emergency-detail.js
View file @
632be74c
...
@@ -256,7 +256,9 @@ window.addEventListener("load", function() {
...
@@ -256,7 +256,9 @@ window.addEventListener("load", function() {
}
}
this
.
filePathList
=
this
.
form
.
drillPhotoList
||
[];
this
.
filePathList
=
this
.
form
.
drillPhotoList
||
[];
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
}
}
})
})
...
...
src/emergency.js
View file @
632be74c
...
@@ -82,7 +82,9 @@ window.addEventListener("load", function() {
...
@@ -82,7 +82,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/law-list-detail.js
View file @
632be74c
...
@@ -45,7 +45,9 @@ window.addEventListener("load", function() {
...
@@ -45,7 +45,9 @@ window.addEventListener("load", function() {
this
.
lawChapter
=
result
.
lawChapter
this
.
lawChapter
=
result
.
lawChapter
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
})
})
},
},
...
...
src/law-list.js
View file @
632be74c
...
@@ -63,7 +63,9 @@ window.addEventListener("load", function() {
...
@@ -63,7 +63,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/law-lv1.js
View file @
632be74c
...
@@ -64,7 +64,9 @@ window.addEventListener("load", function() {
...
@@ -64,7 +64,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/law-lv2.js
View file @
632be74c
...
@@ -67,7 +67,9 @@ window.addEventListener("load", function() {
...
@@ -67,7 +67,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/notice-list-detail.js
View file @
632be74c
...
@@ -44,7 +44,9 @@ window.addEventListener("load", function() {
...
@@ -44,7 +44,9 @@ window.addEventListener("load", function() {
this
.
noticeContent
=
result
.
noticeContent
this
.
noticeContent
=
result
.
noticeContent
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
})
})
},
},
...
...
src/notice-list.js
View file @
632be74c
...
@@ -65,7 +65,9 @@ window.addEventListener("load", function() {
...
@@ -65,7 +65,9 @@ window.addEventListener("load", function() {
}
}
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 滚动条跳转位置
// 滚动条跳转位置
...
...
src/yh-list-detail.js
View file @
632be74c
...
@@ -116,7 +116,9 @@ window.addEventListener("load", function() {
...
@@ -116,7 +116,9 @@ window.addEventListener("load", function() {
// 隐患状态 成功和待验证 则不允许编辑
// 隐患状态 成功和待验证 则不允许编辑
this
.
disabled
=
this
.
form
.
hdStatus
===
1
||
this
.
form
.
hdStatus
===
3
this
.
disabled
=
this
.
form
.
hdStatus
===
1
||
this
.
form
.
hdStatus
===
3
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
}
}
...
...
src/yh-list.js
View file @
632be74c
...
@@ -63,7 +63,9 @@ window.addEventListener("load", function() {
...
@@ -63,7 +63,9 @@ window.addEventListener("load", function() {
}
}
this
.
loadFlag
=
false
this
.
loadFlag
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$nextTick
(()
=>
{
vant
.
Toast
.
clear
()
vant
.
Toast
.
clear
()
})
},
0
);
},
0
);
// console.log('响应结束',this.total, this.list.length)
// console.log('响应结束',this.total, this.list.length)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
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