form.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. (function () {
  2. var page = {
  3. isScroll: true,
  4. init: function ($page) {
  5. $page.find('#select1').lrpicker({
  6. placeholder: '请选择(必填)',
  7. data: cityData
  8. });
  9. $page.find('#select2').lrpicker({
  10. placeholder: '请选择(必填)',
  11. data: cityData,
  12. level: 2
  13. });
  14. $page.find('#select3').lrpicker({
  15. placeholder: '请选择(必填)',
  16. data: cityData,
  17. level: 3
  18. });
  19. $page.find('#select4').lrpicker({
  20. placeholder: '请选择(必填)',
  21. data: bjTypeData,
  22. level: 3
  23. });
  24. $page.find('#switch1').lrswitch();
  25. $page.find('#date1').lrdate();
  26. $page.find('#date2').lrdate({
  27. type: 'date'
  28. });
  29. $page.find('#date3').lrdate({
  30. type: 'time'
  31. });
  32. $page.find('#date4').lrdate({
  33. type: 'month'
  34. });
  35. $page.find('#checkbox1').lrcheckbox({
  36. data: [{
  37. text: '第一项',
  38. value: '1'
  39. }, {
  40. text: '第二项',
  41. value: '2'
  42. }, {
  43. text: '第三项',
  44. value: '3'
  45. }, {
  46. text: '第四项',
  47. value: '4'
  48. }, {
  49. text: '第五项',
  50. value: '5'
  51. }, {
  52. text: '第六项',
  53. value: '6'
  54. }, {
  55. text: '第五项',
  56. value: '7'
  57. }, {
  58. text: '第五项',
  59. value: '8'
  60. }, {
  61. text: '第五项',
  62. value: '9'
  63. }, {
  64. text: '第五项',
  65. value: '10'
  66. }, {
  67. text: '第五项',
  68. value: '11'
  69. }, {
  70. text: '第五项',
  71. value: '12'
  72. }, {
  73. text: '第五项',
  74. value: '13'
  75. }, {
  76. text: '第五项',
  77. value: '14'
  78. }, {
  79. text: '第五项',
  80. value: '15'
  81. }, {
  82. text: '第五项',
  83. value: '16'
  84. }, {
  85. text: '第五项',
  86. value: '17'
  87. }]
  88. });
  89. }
  90. };
  91. return page;
  92. })();