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
155515eb
Commit
155515eb
authored
Dec 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1267c562
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
pkWeekList.js
public/resource/js/pkWeekList.js
+7
-5
No files found.
public/resource/js/pkWeekList.js
View file @
155515eb
...
@@ -21,7 +21,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
...
@@ -21,7 +21,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
var
day_end
=
y
+
'.'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'.'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_end
=
y
+
'.'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'.'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
$
(
'#start_date'
).
html
(
day_start
);
$
(
'#start_date'
).
html
(
day_start
);
$
(
'#end_date'
).
html
(
day_end
);
$
(
'#end_date'
).
html
(
day_end
);
pkList
.
get
Time
();
// pkList.getPk
Time();
pkList
.
getTeamList
(
0
);
pkList
.
getTeamList
(
0
);
pkList
.
event
();
pkList
.
event
();
},
},
...
@@ -88,7 +88,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
...
@@ -88,7 +88,7 @@ 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
){
pkList
.
setTime
();
pkList
.
set
Pk
Time
();
});
});
$
(
".export-pk"
).
click
(
function
()
{
//导出列表
$
(
".export-pk"
).
click
(
function
()
{
//导出列表
if
(
pkList
.
mainTabIndexTeam
){
if
(
pkList
.
mainTabIndexTeam
){
...
@@ -220,13 +220,15 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
...
@@ -220,13 +220,15 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
});
},
},
//显示 隐藏城市 默认显示 当前账号 所在城市
//显示 隐藏城市 默认显示 当前账号 所在城市
getTime
:
function
(){
get
Pk
Time
:
function
(){
$
.
ajax
({
$
.
ajax
({
url
:
'/index/configWeek'
,
url
:
'/index/configWeek'
,
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
'site_id'
:
user_info_obj
.
site_id
,
// 'site_id':user_info_obj.site_id,
'site_id'
:
10005
,
},
},
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -243,7 +245,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
...
@@ -243,7 +245,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
});
},
},
//设置时间
//设置时间
setTime
:
function
(){
set
Pk
Time
:
function
(){
$
.
ajax
({
$
.
ajax
({
url
:
'/index/configWeek'
,
url
:
'/index/configWeek'
,
type
:
'POST'
,
type
:
'POST'
,
...
...
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