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