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
87aff2c2
Commit
87aff2c2
authored
Jul 18, 2019
by
txy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'123'
parent
c0f5c7cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
44 deletions
+52
-44
common.js
showPhotos/js/page/common.js
+52
-44
No files found.
showPhotos/js/page/common.js
View file @
87aff2c2
...
@@ -300,50 +300,58 @@ function voteClickFn(params, successCallback, errorCallback){
...
@@ -300,50 +300,58 @@ function voteClickFn(params, successCallback, errorCallback){
}
}
gb_vote_loaded
=
true
;
gb_vote_loaded
=
true
;
$
.
ajax
({
// $.ajax({
type
:
'PUT'
,
// type: 'PUT',
url
:
baseUrl
+
'/ACTIVITY/sz/vote/'
+
activityCode
,
// url: baseUrl + '/ACTIVITY/sz/vote/' + activityCode,
data
:
params
,
// data: params,
headers
:
{
// headers: {
'x-token'
:
getToken
()
// 'x-token': getToken()
},
// },
success
:
function
(
data
)
{
// success: function(data) {
if
(
data
.
status
==
200
)
{
// if(data.status == 200) {
// 已报名-通过审核
// // 已报名-通过审核
if
(
user
.
reviewStatus
===
1
)
{
// if(user.reviewStatus === 1) {
$
(
'#html-template-4 .struct span'
).
text
(
data
.
result
.
voteNumDay
)
// $('#html-template-4 .struct span').text(data.result.voteNumDay)
$
(
'#html-template-4'
).
fadeIn
();
// $('#html-template-4').fadeIn();
}
else
{
// }else {
$
(
'#html-template-6 .struct span'
).
text
(
data
.
result
.
voteNumDay
)
// $('#html-template-6 .struct span').text(data.result.voteNumDay)
$
(
'#html-template-6'
).
fadeIn
();
// $('#html-template-6').fadeIn();
}
// }
successCallback
&&
successCallback
(
data
);
// successCallback && successCallback(data);
}
else
if
(
data
.
status
==
201
)
{
// }else if(data.status == 201) {
// 已报名-通过审核
// // 已报名-通过审核
if
(
user
.
reviewStatus
===
1
)
{
// if(user.reviewStatus === 1) {
$
(
'#html-template-5 .struct span'
).
text
(
rules
.
settings
.
szRule
.
voteNumDay
)
// $('#html-template-5 .struct span').text(rules.settings.szRule.voteNumDay)
$
(
'#html-template-5'
).
fadeIn
();
// $('#html-template-5').fadeIn();
}
else
{
// }else {
$
(
'#html-template-7 .struct span'
).
text
(
rules
.
settings
.
szRule
.
voteNumDay
)
// $('#html-template-7 .struct span').text(rules.settings.szRule.voteNumDay)
$
(
'#html-template-7'
).
fadeIn
();
// $('#html-template-7').fadeIn();
}
// }
errorCallback
&&
errorCallback
(
data
);
// errorCallback && errorCallback(data);
}
else
{
// }else {
// 异常处理
// // 异常处理
$
.
dialog
({
// $.dialog({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
message
+
'</p>'
// contentHtml : '<p style="text-align:center;">'+ data.message +'</p>'
});
// });
}
// }
gb_vote_loaded
=
false
;
// gb_vote_loaded = false;
},
// },
error
:
function
(
data
){
// error: function(data){
// 异常处理
// // 异常处理
$
.
dialog
({
// $.dialog({
contentHtml
:
'<p style="text-align:center;">'
+
data
.
responseJSON
.
message
+
'</p>'
// contentHtml : '<p style="text-align:center;">'+ data.responseJSON.message +'</p>'
});
// });
gb_vote_loaded
=
false
;
// gb_vote_loaded = false;
}
// }
})
// })
if
(
user
.
reviewStatus
===
1
)
{
$
(
'#html-template-4 .struct span'
).
text
(
data
.
result
.
voteNumDay
)
$
(
'#html-template-4'
).
fadeIn
();
}
else
{
$
(
'#html-template-6 .struct span'
).
text
(
data
.
result
.
voteNumDay
)
$
(
'#html-template-6'
).
fadeIn
();
}
}
}
// 参赛选手投票-有票
// 参赛选手投票-有票
...
...
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