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
0eb4a091
Commit
0eb4a091
authored
9 months ago
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进度加载处理
parent
a12727ea
jpaas
gaoqucodecheck
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
63 deletions
+26
-63
index.js
sdk/jssdk2/index.js
+1
-0
util.js
sdk/util.js
+6
-0
yh-list-detail.js
src/yh-list-detail.js
+14
-63
yh-list.js
src/yh-list.js
+5
-0
No files found.
sdk/jssdk2/index.js
View file @
0eb4a091
...
...
@@ -9,6 +9,7 @@ window.onload = function() {
if
(
!
localStorage
.
getItem
(
'
token
'
)){
getUserInfo
()
}
}
function
getUserInfo
()
{
...
...
This diff is collapsed.
Click to expand it.
sdk/util.js
View file @
0eb4a091
...
...
@@ -194,6 +194,12 @@ gemhoUtil.getPageName = function() {
* @demo navigatePage('/warehouse/company/companyDetail.html?companyId=1002');
*/
gemhoUtil
.
navigatePage
=
function
(
path
)
{
vant
.
Toast
.
loading
({
message
:
'
页面跳转中...
'
,
forbidClick
:
true
,
loadingType
:
'
spinner
'
,
});
if
(
!
path
)
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
src/yh-list-detail.js
View file @
0eb4a091
This diff is collapsed.
Click to expand it.
src/yh-list.js
View file @
0eb4a091
...
...
@@ -27,6 +27,10 @@ window.addEventListener("load", function() {
gemhoUtil
.
navigatePage
(
'
./yh-list-detail.html?hdId=
'
+
item
.
hdId
+
'
&type=edit
'
)
},
getList
(){
if
(
this
.
loading
){
return
}
this
.
loading
=
true
http2
.
post
({
serviceId
:
API_KEY_MAP
[
"
yh-list
"
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
"
yh-list
"
][
"
publicKey
"
],
...
...
@@ -51,6 +55,7 @@ window.addEventListener("load", function() {
if
(
this
.
page
*
this
.
size
>=
this
.
total
){
this
.
finished
=
true
;
// 下滑不在刷新数据
}
this
.
loading
=
false
}
})
// http2.get('/api/thHiddenDanger',{
...
...
This diff is collapsed.
Click to expand it.
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