hjg
2023-10-08 a966b5abe5fb804464fe1cd09053a03fe94877fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
window.I = {}
var basic=getpath();
jQuery(document).ready(function($) {
    $('#reg').click(function(){
        if(window.op==1)
            return;
        window.op=1;
        var key=$('#key').val();
        jQuery.post(basic+'/admin/webinfo/reg.htm?tttidt='+Math.random(), {key: key}, function(data, textStatus, xhr) {
          //optional stuff to do after success
          window.op=0;
          if(data.code==0)
          {
              alert('注册成功,起始时间:'+data.stime+";截止时间:"+data.etime+";");
              window.location.href=basic+"/login/login.jsf";
          }else{
              alert(data.errmsg);
          }
        });
        
    });
});