//1. 点击补签 data-time
$(".retroactive").click(function(){
var sender = $(this).children().attr("data-time");
if($(this).hasClass("finish")){
alert("已经补签签过了");
}else{
if(null != sender && '' != sender && undefined != sender){
$(this).addClass("finish");
$.post("$ctx/psa/peuceot/retroactiveCheck",{"t":"$!t","signDay":sender},function(data){
console.log("补签状态: "+data);
});
}
}
});
//2. 点击签到
$("#signday").click(function(){
var nowWeek = $!nowWeek;
//样式改变
$('[data-time="$!nowWeek"]').parent().addClass("finish");
$("#signday").unbind();
alert("签到成功");
$.post("$ctx/psa/peuceot/signCheck",{"t":"$!t","signDay":$!nowWeek},function(data){
console.log("签到状态: "+data);
});
});
网友评论