You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
2.0 KiB

  1. /* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  2. * Copyright (c) 2013-2018 北京泉江科技有限公司
  3. * 创建人:超级管理员
  4. * 日 期:2019-04-23 15:50
  5. * 描 述:问卷管理
  6. */
  7. var refreshGirdData;
  8. var VID = request("VID");
  9. var bootstrap = function ($, learun) {
  10. "use strict";
  11. var page = {
  12. init: function () {
  13. $('.warpper').lrscroll();
  14. page.bind();
  15. },
  16. bind: function () {
  17. //单选框
  18. $('.shenInputBox').on('click',
  19. '.inputRadio',
  20. function () {
  21. if (!$(this).hasClass('active')) {
  22. $(this).addClass('active').parents('.shenInputBox').find('.inputRadio').not($(this))
  23. .removeClass('active');
  24. judgeRideo($(this));
  25. }
  26. });
  27. //多选框
  28. $('.inputCheck').click(function () {
  29. if ($(this).hasClass('active')) {
  30. $(this).removeClass('active');
  31. } else {
  32. $(this).addClass('active');
  33. }
  34. judgeRideo($(this));
  35. });
  36. //是否为其他选项判断
  37. function judgeRideo(obj) {
  38. var parents = obj.parents('.signSec2Box');
  39. var inputs = parents.find('.shenInput3');
  40. if (parents.find("i[hasinput='yes']").hasClass('active')) {
  41. inputs.css({ display: 'block' });
  42. } else {
  43. inputs.css({ display: 'none' });
  44. }
  45. }
  46. $('form').find("input.xuanze:checked").each(function (index, element) {
  47. if ($(this).attr("hasinput") == "yes") {
  48. $("#" + $(this).attr("id") + "Other").parents(".shenInput3").css({ display: 'block' });
  49. }
  50. });
  51. }
  52. };
  53. page.init();
  54. }