|
|
@ -663,7 +663,7 @@
|
|
|
|
$('.add-game').on('click', function () {
|
|
|
|
$('.add-game').on('click', function () {
|
|
|
|
var thisElement = $(this);
|
|
|
|
var thisElement = $(this);
|
|
|
|
var gameId = thisElement.attr('game-id');
|
|
|
|
var gameId = thisElement.attr('game-id');
|
|
|
|
var promoteType = thisElement.attr('promote-type');
|
|
|
|
var promoteType = parseInt(thisElement.attr('promote-type'));
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "post",
|
|
|
|
type: "post",
|
|
|
@ -690,8 +690,16 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (promoteType == 3) {
|
|
|
|
switch (promoteType) {
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
$('#add_promote_title').text('添加部长:');
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
$('#add_promote_title').text('添加组长:');
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
$('#add_promote_title').text('添加推广员:');
|
|
|
|
$('#add_promote_title').text('添加推广员:');
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$.myMethod("#add_promote_data",tagData,"add_promote_ids");
|
|
|
|
$.myMethod("#add_promote_data",tagData,"add_promote_ids");
|
|
|
|