dever 7 years ago
parent
commit
e27901a056
2 changed files with 7 additions and 2 deletions
  1. 1 1
      tm/template_dir/events_infos.html
  2. 6 1
      tm/template_dir/events_try.html

+ 1 - 1
tm/template_dir/events_infos.html

@@ -359,7 +359,7 @@ $(body).addClass("bg_white");
 
 <{/if}>
 
-<{if $info.type == 4}>
+<{if $info.type == 4 && $info.yaoqing}>
 <section class="layer" id="layerbox" style="display:none;">
     <section class="loginbox">
         <h3>申请成功!</h3>

+ 6 - 1
tm/template_dir/events_try.html

@@ -105,7 +105,12 @@ KISSY.use('node, io', function (S, Node, IO) {
 			, function (data) {
 				if (data.ok) {
 					//showOkMsg();
-					$('#layerbox').show();
+					if ($('#layerbox').length) {
+						$('#layerbox').show();
+					} else {
+						toast('提交成功,请等待管理员审核', false);
+					}
+					
 					//toast('提交成功,请等待管理员审核', false);
 				} else {
 					if(data.msg.url){