Browse Source

健康文章自动返回

yingzhou 6 years ago
parent
commit
149b23d06e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/article/html/article.html

+ 4 - 0
app/article/html/article.html

@ -324,6 +324,10 @@
			        		var icon=5;
			        		if(res.status==200){//更新父窗体的状态
			        			icon=1;
			        			setTimeout(function(){
			        				var index = top.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
									top.layer.close(index)  //再改变当前层的标题	
			        			},500)
			        		}
			        		top.layer.msg(res.msg, {icon: icon});
			        	})