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
6653d04c
Commit
6653d04c
authored
Jul 11, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'活动异常状态处理'
parent
7edc3050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
6 deletions
+39
-6
index.js
showPhotos/js/page/index.js
+11
-0
signup.js
showPhotos/js/page/signup.js
+18
-5
user.js
showPhotos/js/page/user.js
+10
-1
No files found.
showPhotos/js/page/index.js
View file @
6653d04c
...
...
@@ -377,7 +377,18 @@ function voteClickFn(){
}
else
if
(
data
.
status
==
201
)
{
$
(
'#act51626389412499 span'
).
text
(
5
)
$
(
'#html-template-5'
).
fadeIn
()
}
else
if
(
data
.
status
>=
400
)
{
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
},
error
:
function
(
data
){
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
})
}
...
...
showPhotos/js/page/signup.js
View file @
6653d04c
...
...
@@ -257,12 +257,25 @@ function btnBindClick() {
url
:
baseUrl
+
'/ACTIVITY/sz/sign-up/'
+
activityCode
,
data
:
JSON
.
stringify
(
params
),
success
:
function
(
data
)
{
if
(
data
.
status
>=
200
&&
data
.
status
<
300
){
$
.
dialog
({
showTitle
:
false
,
contentHtml
:
'您的资料已成功提交审核中,请耐心等待审核结果'
,
onClickOk
:
function
()
{
transPage
(
'1'
,
activityCode
,
_token
);
}
});
}
else
{
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
},
error
:
function
(
data
){
// 异常处理
$
.
dialog
({
showTitle
:
false
,
contentHtml
:
'您的资料已成功提交审核中,请耐心等待审核结果'
,
onClickOk
:
function
()
{
transPage
(
'1'
,
activityCode
,
_token
);
}
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
})
...
...
showPhotos/js/page/user.js
View file @
6653d04c
...
...
@@ -209,10 +209,19 @@ function voteClickFn(){
}
else
{
$
(
'#html-template-7'
).
fadeIn
()
}
}
else
if
(
data
.
status
>=
400
)
{
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
},
error
:
function
()
{
error
:
function
(
data
)
{
gb_vote_loaded
=
false
// 异常处理
$
.
dialog
({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
});
}
})
}
...
...
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