Commit adf93802 by chentian

修改bug

parent 2d94e443
......@@ -166,7 +166,7 @@ function doQueryFL(){
flStr="出生日期";
}
$("#fldh").append(
"<div class='newNav'>" +
"<div class='newNav newNav"+index2+"' >" +
"<div class='newNavTop' id='newNavTop'>"+flStr+"分类</div>" +
"<div class='newNavbody' id='newNavbody"+index2+"'>" +
......@@ -206,6 +206,13 @@ function doQueryFL(){
}
}else{
//除了出生日期外,其他分类去掉class为current-icon的第一个span的onclick事件
/* $(".newNav").each(function(){}
$(this).find(".current-icon").eq(0).removeAttr("onclick").css({"color":"#666","cursor":"default"});
)};*/
$(".newNav"+index2).find(".current-icon").eq(0).removeAttr("onclick");
$(".newNav"+index2).find(".current-icon").eq(0).css({"color":"#666","cursor":"default"});//去掉onclick事件,则置灰内容
//除出生日期外其他分类循环部分begin
$("#newNavbody"+index2).append(
"<div class='newNavInfo' isshowed='false' id='flnr"+index2+"'>" +
......@@ -251,7 +258,6 @@ function doQueryFL(){
}
}
function doQueryqk(){
debugger
$("#qkdiv").empty();
var rows = $('#qypzjgxsNewTable').datagrid('getRows');//获得所有行
var html="";
......@@ -304,6 +310,8 @@ function flclick(obj,value,index,object_type){
var d="";
$.each(dataCsrq, function(i, item) {
var str=item.NAMES+"("+item.COUNTS+")";
str=str.replace('年','-');
str=str.replace('月','-');
if(item.VALS.length==7&&item.VALS.substring(0,4)==value){
m+= "<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"+item.NAMES+"','"+index+"','"+item.VALS+"')>"+str+"</a>";
}else if(item.VALS.length==10&&item.VALS.substring(0,7)==value){
......@@ -331,6 +339,7 @@ function flclick(obj,value,index,object_type){
"</div>"
);
//点击月时候 显示对应的“<<值”
value=value.replace("年","-")
$(obj).parents(".newNavbody").find(".current-icon").eq(1).show();
$(obj).parents(".newNavbody").find(".current-text").eq(1).html(value);
......@@ -338,6 +347,8 @@ function flclick(obj,value,index,object_type){
if(value.length==10){
//点击日时候 显示对应的“<<值”
$(obj).parents(".newNavbody").find(".current-icon").eq(2).show();
value=value.replace("年","-")
value=value.replace("月","-")
$(obj).parents(".newNavbody").find(".current-text").eq(2).html(value);
}
//点击出生日期的分类时候移除固定高度
......@@ -396,7 +407,10 @@ function goBackMd(obj,index){
}
$(".newLayoutDiv").siblings().hide();
$(".newNavInfo-"+index).show();
$("#birthday").val($(obj).find(".current-text").text());
var val=$(obj).find(".current-text").text();
val=val.replace(/-/,'年');
val=val.replace('-','月');
$("#birthday").val(val);
doQuery();
}
function openDialog(arr){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment