diff --git a/Application/Home/View/default/Apply/my_game.html b/Application/Home/View/default/Apply/my_game.html index 0f3e90578..33dff8572 100644 --- a/Application/Home/View/default/Apply/my_game.html +++ b/Application/Home/View/default/Apply/my_game.html @@ -663,7 +663,7 @@ $('.add-game').on('click', function () { var thisElement = $(this); var gameId = thisElement.attr('game-id'); - var promoteType = thisElement.attr('promote-type'); + var promoteType = parseInt(thisElement.attr('promote-type')); $.ajax({ type: "post", @@ -690,8 +690,16 @@ }); } - if (promoteType == 3) { - $('#add_promote_title').text('添加推广员:'); + switch (promoteType) { + case 2: + $('#add_promote_title').text('添加部长:'); + break; + case 3: + $('#add_promote_title').text('添加组长:'); + break; + case 4: + $('#add_promote_title').text('添加推广员:'); + break; } $.myMethod("#add_promote_data",tagData,"add_promote_ids");