瀏覽代碼

推送历史 表格修改

wangkaiyue 6 年之前
父節點
當前提交
e581dfc7c4

+ 1 - 1
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -464,7 +464,7 @@ function appendList(content,tablehtml){
 function tablejump(eid,h,sds,t){
 	var index = t.attr("openlist_index");//序列
 	var pdate =t.attr("push_date");//日期id
-	var isv=obj.hasClass("visited");//是否为已读
+	var isv=t.hasClass("visited");//是否为已读
 	setVisitedIndex(t,eid);
 	beforeJump(eid,h,sds,index,pdate,isv);
 }

+ 6 - 3
src/web/templates/weixin/historypush.html

@@ -336,7 +336,7 @@ function structureHtml(object){
 						+'<div style="clear:both;"></div>'
 					+'</div>'
 					
-		tablehtml+='<tr class="+visited+" onclick="tablejump("'+obj["_id"]+'","","'+mWords+'",$(this))" push_date="'+obj["ca_date"]+'" openlist_index="'+obj["ca_openlist_index"]+'">'
+		tablehtml+='<tr class="+visited+" onclick="tablejump($(this))"  data_id="'+obj["_id"]+'"  data_mWords="'+mWords+'"   push_date="'+obj["ca_date"]+'" openlist_index="'+obj["ca_openlist_index"]+'">'
 						+'<td>'+count+'</td>'
 						+'<td>'+title+'</td>'
 						+'<td>'+datatypeTable+'</td>'
@@ -396,10 +396,13 @@ function appendList(content,tablehtml){
 	$(".findnull").hide();
 	$(".listcontent").show();
 }
-function tablejump(eid,h,sds,t){
+function tablejump(t){
+  var eid = t.attr("data_id");
+  var h = "";
+  var sds = t.attr("data_mWords");
 	var index = t.attr("openlist_index");//序列
 	var pdate =t.attr("push_date");//日期id
-	var isv=obj.hasClass("visited");//是否为已读
+	var isv=t.hasClass("visited");//是否为已读
 	setVisitedIndex(t,eid);
 	beforeJump(eid,h,sds,index,pdate,isv);
 }