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.
var day_end = y + '.' + (m < 10 ? ('0' + m) : m) + '.' + (d < 10 ? ('0' + d) : d);
$('#start_date').html(day_start);
$('#end_date').html(day_end);
pkList.getTime();
// pkList.getPkTime();
pkList.getTeamList(0);
pkList.event();
},
......@@ -88,7 +88,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
//生成pk榜
_doc.on('click', '.produce-pk', function(e){
pkList.setTime();
pkList.setPkTime();
});
$(".export-pk").click(function() { //导出列表
if(pkList.mainTabIndexTeam){
......@@ -220,13 +220,15 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
},
//显示 隐藏城市 默认显示 当前账号 所在城市
getTime:function(){
getPkTime:function(){
$.ajax({
url: '/index/configWeek',
type: 'GET',
async: true,
data: {
'site_id':user_info_obj.site_id,
// 'site_id':user_info_obj.site_id,
'site_id':10005,
},
dataType: 'json',
......@@ -243,7 +245,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
});
},
//设置时间
setTime:function(){
setPkTime:function(){
$.ajax({
url: '/index/configWeek',
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