Commit a97dd824 authored by agping's avatar agping

周pk

parent 9591418f
......@@ -21,7 +21,13 @@ 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.getPkTime();
pkList.getPkTime();
//判断pk生成权限
if(check_auth('index/configWeek')){
$('.produce-pk').show();
}else{
$('.produce-pk').hide();
}
pkList.getTeamList(0);
pkList.event();
},
......@@ -221,13 +227,15 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
},
//显示 隐藏城市 默认显示 当前账号 所在城市
getPkTime:function(){
console.log(5566)
$.ajax({
url: '/index/configWeek',
url: '/index/getconfigWeek',
type: 'GET',
async: true,
data: {
// 'site_id':user_info_obj.site_id,
'site_id':10005,
'site_id':user_info_obj.site_id,
// 'site_id':10005,
},
......@@ -246,6 +254,7 @@ define(['doT', 'text!temp/pk_week_list_template_tpl.html.html', 'css!style/home.
},
//设置时间
setPkTime:function(){
console.log(55)
$.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