Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
fe8ca4c1
Commit
fe8ca4c1
authored
Dec 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周pk时间优化
parent
fed881b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
pkWeekList.js
public/resource/js/pkWeekList.js
+16
-0
No files found.
public/resource/js/pkWeekList.js
View file @
fe8ca4c1
...
@@ -94,7 +94,23 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
...
@@ -94,7 +94,23 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
});
//生成pk榜
//生成pk榜
_doc
.
on
(
'click'
,
'.produce-pk'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.produce-pk'
,
function
(
e
){
//比赛时间 大于 分档时间
var
start_
=
$
(
'#create_time_start'
).
val
()
+
" 00:00:00"
;
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
var
start_time
=
date_start
.
getTime
();
var
end_
=
$
(
'#sort_time_end'
).
val
()
+
" 00:00:00"
;
date_end
=
new
Date
(
Date
.
parse
(
end_
.
replace
(
/-/g
,
"/"
)));
var
end_time
=
date_end
.
getTime
();
if
(
!
(
start_time
*
1
>
end_time
*
1
)){
alert
(
'分档根据时间的结束时间要 小于 比赛时间的开始时间!'
);
return
;
};
pkList
.
setPkTime
();
pkList
.
setPkTime
();
pkList
.
getList
();
});
});
$
(
".export-pk"
).
click
(
function
()
{
//导出列表
$
(
".export-pk"
).
click
(
function
()
{
//导出列表
if
(
pkList
.
mainTabIndexTeam
){
if
(
pkList
.
mainTabIndexTeam
){
...
...
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