Commit 155515eb authored by agping's avatar agping

1

parent 1267c562
...@@ -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.getTime(); // pkList.getPkTime();
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.setPkTime();
}); });
$(".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(){ getPkTime: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(){ setPkTime:function(){
$.ajax({ $.ajax({
url: '/index/configWeek', url: '/index/configWeek',
type: 'POST', type: 'POST',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment