Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
Overview
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
谭新宇
h5_activity
Commits
c1c4152b
Commit
c1c4152b
authored
Jul 26, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'调整loading'
parent
ddeb2ff8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
dialog.js
showPhotos/js/dialog.js
+2
-1
common.js
showPhotos/js/page/common.js
+14
-7
index.js
showPhotos/js/page/index.js
+2
-1
user.js
showPhotos/js/page/user.js
+2
-1
No files found.
showPhotos/js/dialog.js
View file @
c1c4152b
...
...
@@ -254,7 +254,7 @@
};
$
.
dialog
.
close
=
function
(){
$
.
dialog
.
close
=
function
(
callback
){
settings
.
onBeforeClosed
();
dialogWrapper
.
removeClass
(
'dialog-wrap-show'
);
...
...
@@ -271,6 +271,7 @@
// 解决touchend点透,延迟阻止点透层隐藏
setTimeout
(
function
(){
solveTapBug
.
remove
();
callback
&&
callback
();
},
350
);
};
...
...
showPhotos/js/page/common.js
View file @
c1c4152b
...
...
@@ -348,8 +348,8 @@ function showLoading(msg){
});
}
// 关闭loading
function
hideLoading
()
{
$
.
dialog
.
close
();
function
hideLoading
(
callback
)
{
$
.
dialog
.
close
(
callback
);
}
/* ***********************弹出框控制全部逻辑************************** */
...
...
@@ -372,7 +372,7 @@ function voteClickFn(params, successCallback, errorCallback){
'x-token'
:
getToken
()
},
success
:
function
(
data
)
{
hideLoading
();
if
(
data
.
status
==
200
)
{
// 已报名-通过审核
if
(
user
.
reviewStatus
===
1
)
{
...
...
@@ -387,6 +387,7 @@ function voteClickFn(params, successCallback, errorCallback){
});
}
successCallback
&&
successCallback
(
data
);
hideLoading
();
}
else
if
(
data
.
status
==
201
)
{
// 已报名-通过审核
if
(
user
.
reviewStatus
===
1
)
{
...
...
@@ -401,20 +402,26 @@ function voteClickFn(params, successCallback, errorCallback){
});
}
errorCallback
&&
errorCallback
(
data
);
hideLoading
();
}
else
{
hideLoading
(
function
(){
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
});
}
gb_vote_loaded
=
false
;
},
error
:
function
(
data
){
hideLoading
(
);
// 异常处理
$
.
dialog
({
hideLoading
(
function
(){
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
responseJSON
.
message
+
'</p>'
});
});
gb_vote_loaded
=
false
;
}
});
...
...
showPhotos/js/page/index.js
View file @
c1c4152b
...
...
@@ -280,8 +280,9 @@ function getPlayerList(playerListData) {
userId
:
id
,
userName
:
userName
}
showLoading
(
'处理中...'
);
isAttention
(
function
(){
showLoading
(
'处理中...'
);
// 投票
voteClickFn
(
params
,
function
(
data
){
// success
...
...
showPhotos/js/page/user.js
View file @
c1c4152b
...
...
@@ -76,8 +76,9 @@ function btnBindClick() {
userId
:
_userId
,
userName
:
_userName
}
showLoading
(
'处理中...'
);
isAttention
(
function
(){
showLoading
(
'处理中...'
);
voteClickFn
(
params
,
function
(
data
){
$
(
'#act3932189955 .userVoteNum span'
).
text
(
data
.
result
.
voteNum
);
});
...
...
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