Эх сурвалжийг харах

后台文章点击打开新页面

wangshan 9 жил өмнө
parent
commit
3fa2f9ed01

+ 1 - 0
core/src/qfw/manage/article.go

@@ -138,6 +138,7 @@ func (a *Article) Updatearticle() error {
 			msg = "修改成功!"
 			elastic.UpdateNewDoc("content", "content", FindById("content", _id, ""))
 			redis.Del("other", "/front/webcontent/"+_id+".html")
+			redis.Del("other", "/front/webhelpcontent/"+_id+".html")
 			redis.Del("other", "/front/weixincontent/"+_id)
 			redis.Del("other", "/")
 		} else {

+ 1 - 1
core/src/timetask.json

@@ -1 +1 @@
-{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-03-08 15:47:36"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-03-08 15:47:36"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-03-08 17:41:06"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-03-08 17:41:06"}},"marketisstart":true,"marketrate":300}

+ 1 - 1
core/src/web/templates/manage/articlelist.html

@@ -64,7 +64,7 @@ $(function(){
 		,callback:function(ct,cd,val,k,m){
 			var v=ct["i_status"]==1?ct["s_title"]:cd;
 			var id = ct["_id"]
-			if(v) v="<a href='/manage/content/"+id+"'>"+v+"</a>"
+			if(v) v="<a target='_blank' href='/manage/content/"+id+"'>"+v+"</a>"
 			return v
 		}	
         },

+ 2 - 2
core/src/web/templates/manage/newscontent.html

@@ -515,7 +515,7 @@ function updatearticle(){
         cache:false,    
         dataType:'json', 
         success:function(data){
-			Dialog.alert(data.msg,function(){location.href ="/manage/articlelist"}); 
+			Dialog.alert(data.msg,function(){window.close()}); 
         }    
         });   
 	clickCount++;  
@@ -530,7 +530,7 @@ function updatearticle(){
         cache:false,    
         dataType:'json', 
         success:function(data){
-			Dialog.alert(data.msg,function(){location.href ="/manage/articlelist"}); 
+			Dialog.alert(data.msg,function(){window.close()}); 
         }    
         });    
 	})