|
|
|
@ -59,12 +59,20 @@
|
|
|
|
|
var tis = this,that = $(tis);
|
|
|
|
|
if (that.hasClass('disabled')) {return false;}
|
|
|
|
|
var mobile = $.trim($('#mobile').val());
|
|
|
|
|
var promoteId = parseInt("{:I('get.pid',0)}");
|
|
|
|
|
var gameId = parseInt("{:I('get.gid',0)}");
|
|
|
|
|
var data = {};
|
|
|
|
|
if (promoteId > 0 && gameId > 0) {
|
|
|
|
|
data = {'phone':mobile,'promote_id':promoteId,'game_id':gameId};
|
|
|
|
|
} else {
|
|
|
|
|
data = {'phone':mobile};
|
|
|
|
|
}
|
|
|
|
|
if (mobile) {
|
|
|
|
|
if (/^1[0-9]{10}$/.test(mobile)) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:'POST',
|
|
|
|
|
url:'{:U("sendsafecode")}',
|
|
|
|
|
data:{'phone':mobile},
|
|
|
|
|
data:data,
|
|
|
|
|
async: false,
|
|
|
|
|
dataType:"Json",
|
|
|
|
|
success:function(data){
|
|
|
|
|