胖纸囧 2015-04-19 22:59:58 2880次浏览 4条回复 0 0 0
// 签到
    $(".btn-registration").click(function(){
        var button = $(this);
        $.ajax({
            url: "/registration",
            dataType: 'json',
            success: function(html){
                button.html("<span class=\"fa fa-calendar disabled\"></span> 今日已签到<br />已连续" + html.days + "天");
            },
            error: function (XMLHttpRequest, textStatus) {
                $('#modal').modal({ remote: '/login'});
                this.abort();
            }
        });
        return false;
    });
您需要登录后才可以回复。登录 | 立即注册