From 06ad29c55260214dffb4c7beb5553ab4ac1677a7 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Wed, 27 Nov 2019 18:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E7=AE=A1=E7=90=86->=E4=B8=93=E6=9C=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86|=E6=B7=B7=E6=9C=8D=E7=AE=A1=E7=90=86->=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=B8=B8=E6=88=8F--=E5=90=8D=E8=AF=8D=E8=A7=A3?= =?UTF-8?q?=E9=87=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Apply/my_game.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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");