jl_jzd3.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. $(function () {
  2. $(".int_expectfunc_click_center_right_list").eq(0).show();
  3. //弹框点击切换
  4. $("#int_expectfunc_click_center_left li").on('click', function () {
  5. $(this).addClass("on").siblings('li').removeClass('on');
  6. $("#int_expectfunc_click_center_right .int_expectfunc_click_center_right_list").eq($(this).index()).show().siblings('.int_expectfunc_click_center_right_list').hide();
  7. });
  8. //赋值行业
  9. $("#int_expectfunc_click_bottom_save").on('click',function(){
  10. var li_txt = $("#int_expectfunc_click_multiple_selected").text();
  11. //var em_txt = $(li_txt).html();
  12. var hyVal="";
  13. $(".ttag").each(function(){
  14. if(hyVal == "")
  15. hyVal = $(this).text();
  16. else
  17. hyVal+="+"+$(this).text();
  18. });
  19. $(window.parent.document).find("#int_hy_input").val(hyVal);
  20. //求职意向-行业
  21. //$(window.parent.document).find("#int_expectindustry_div").html(li_txt);
  22. //$(window.parent.document).find("#int_expectindustry_div").addClass('clearfix');
  23. //$(window.parent.document).find("#int_expectindustry_div").css("border","0px");
  24. //$(window.parent.document).find("#int_expectindustry_div").css("height","auto");
  25. //工作经验-行业
  26. //$(window.parent.document).find("#work_industry_div").html(li_txt);
  27. //$(window.parent.document).find("#work_industry_div").addClass('clearfix');
  28. //$(window.parent.document).find("#work_industry_div").css("border","0px");
  29. //$(window.parent.document).find("#work_industry_div").css("height","auto");
  30. $("body",parent.document).find('#layer_back_drop').hide();
  31. $("body",parent.document).find('#base_area_layer').hide();
  32. $("body",parent.document).find('#int_cx').css("display","block");
  33. //$("#work_cx").show();
  34. });
  35. //頂部增加
  36. //$(".int_expectfunc_click_center_right_list .dz_div li em").on('click', function(){
  37. // var em_txt = $(this).text();
  38. // $(this).addClass('on');
  39. //行業
  40. // $("#int_expectfunc_click_multiple_selected").append('<span class="ttag">'+em_txt+'<em></em></span>');
  41. $(this).parents('li').siblings('li').children('em').removeClass('on');
  42. //$("#int_expectfunc_click_multiple").removeClass('element_hide').addClass('element_show');
  43. //$("#int_expectfunc_click_multiple_selected").append('<span class="ttag">'+em_txt+'<em></em></span>');
  44. // $(".line_div em").off("on");
  45. //var channels=$("#int_expectfunc_click_multiple_selected span");
  46. // for(var i=0;i<channels.length;i++){
  47. // var linum=0;
  48. // if(i >= 4){
  49. //
  50. // $("#int_expectfunc_click_multiple_error").removeClass('element_hide').addClass('element_show');
  51. //
  52. // $(".line_div em").off("click");
  53. // }else{
  54. // $(".line_div em").off("on");
  55. // $("#int_expectfunc_click_multiple_error").removeClass('element_show').addClass('element_hide');
  56. //
  57. // }
  58. // }
  59. //ttag();
  60. //});
  61. // 取消
  62. $(".base_area_click_close").on('click', function(){
  63. $("body",parent.document).find('#layer_back_drop').hide();
  64. $("body",parent.document).find('#base_area_layer').hide();
  65. $(window.parent.document).find("#int_expectindustry_div").html();
  66. $(window.parent.document).find("#work_industry_div").html();
  67. });
  68. // 取消
  69. $("#int_expectfunc_click_close").on('click', function(){
  70. $("body",parent.document).find('#layer_back_drop').hide();
  71. $("body",parent.document).find('#base_area_layer').hide();
  72. $(window.parent.document).find("#int_expectindustry_div").html();
  73. $(window.parent.document).find("#work_industry_div").html();
  74. });
  75. // 取消
  76. $(".int_expectfunc_click_close").on('click', function(){
  77. $("body",parent.document).find('#layer_back_drop').hide();
  78. $("body",parent.document).find('#base_area_layer').hide();
  79. $(window.parent.document).find("#int_expectindustry_div").html();
  80. $(window.parent.document).find("#work_industry_div").html();
  81. });
  82. var show_count = parseInt($(window.parent.document).find("#count").val()); //要显示的条数
  83. //alert(show_count);
  84. var count = 1; //递增的开始值,这里是你的ID
  85. $(".dz_div em").click(function () {
  86. var em_txt = $(this).html();
  87. var length = $("#int_expectfunc_click_multiple_selected .ttag").length;
  88. //alert(length);
  89. // $(this).off("click");
  90. if (length < show_count) //点击时候,如果当前的数字小于递增结束的条件
  91. {
  92. $("#int_expectfunc_click_multiple_selected").clone().appendTo("#dynamicTable tbody"); //在表格后面添加一行
  93. $("#int_expectfunc_click_multiple").removeClass('element_hide').addClass('element_show');
  94. $("#int_expectfunc_click_multiple_selected").append('<span class="ttag">'+em_txt+'<em></em></span>');
  95. //$(".line_div em").off("on");
  96. ttag();
  97. }else{
  98. $("#int_expectfunc_click_multiple_error").removeClass('element_hide').addClass('element_show');
  99. // $(".line_div em").off("click");
  100. ttag();
  101. }
  102. });
  103. });
  104. //多选删除
  105. function ttag(){
  106. $("#int_expectfunc_click_multiple_selected span").click(function(){
  107. var length = $("#int_expectfunc_click_multiple_selected .ttag").length;
  108. //alert(length);
  109. $(this).remove();//移除当前行
  110. //changeIndex();
  111. $("#int_expectfunc_click_multiple_error").removeClass('element_show').addClass('element_hide');
  112. });
  113. // $(".tin .ttag").click(function(){
  114. // alert(1);
  115. // $(this).remove();
  116. //
  117. // //dxzj();
  118. //
  119. // });
  120. }