Intro.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <div class="page-container" style="width:100%;margin-top:15px;">
  3. <!-- <MyForm ref="publicForm" :formItems="formItems" :formData="formData" :refVerification="refVerification" :searchSelectOptionsCb="searchSelectOptionsCb"
  4. @selectChange="selectChange" @inputINPUT="inputINPUT" @inputChange="inputChange"
  5. @querySelectValue="querySelectValue" @formSwitchChange="formSwitchChange" @buttonClick="buttonClick">
  6. </MyForm> -->
  7. </div>
  8. </template>
  9. <script>
  10. import MyForm from '../../components/Form/MyForm.vue';
  11. import formJs from '@/components/Form/FormConfig.js'
  12. export default {
  13. components: {
  14. MyForm
  15. },
  16. data() {
  17. return {
  18. // dialog: false, //弹出框
  19. // formItems: formJs.formItems,
  20. // refVerification:formJs.refVerification,
  21. // formData: {},
  22. // searchSelectOptionsCb: [], //form表单搜索select返回值
  23. };
  24. },
  25. created() {
  26. },
  27. watch: {
  28. dialog(newVal, oldVal) {
  29. if (!newVal) {
  30. this.$refs.publicForm.resetForm(); //窗口关闭清空表单
  31. }
  32. },
  33. },
  34. methods: {
  35. // select选择框变化
  36. selectChange(value, index, prop) {
  37. console.log(value, index, prop)
  38. },
  39. // inpuit变化
  40. inputINPUT(value, index, prop) {
  41. console.log(value, index, prop)
  42. },
  43. // inpuit Change
  44. inputChange(value, index, prop) {
  45. console.log(value, index, prop)
  46. },
  47. // select 搜索值
  48. querySelectValue(value, index, prop) {
  49. console.log(value, index, prop)
  50. let arr = [{
  51. label: '搜索返回1号',
  52. value: 1
  53. }, {
  54. label: '搜索返回2号',
  55. value: 2
  56. }];
  57. this.searchSelectOptionsCb = arr;
  58. },
  59. // form表单switch变化
  60. formSwitchChange(val, index, prop) {
  61. console.log(val, index, prop)
  62. },
  63. // 按钮点击
  64. buttonClick(index, prop) {
  65. console.log(index, prop)
  66. },
  67. dialogOK() {
  68. //判断表单验证是否通过
  69. if (this.$refs.publicForm.submitForm()) {
  70. console.log("success");
  71. console.log(this.formData)
  72. } else {
  73. console.log("error")
  74. }
  75. },
  76. }
  77. }
  78. </script>
  79. <style>
  80. .carousel {
  81. padding-left: 20px;
  82. padding-right: 20px;
  83. margin-right: 20px;
  84. }
  85. .carousel h2 {
  86. color: #475669;
  87. font-size: 22px;
  88. opacity: 1.75;
  89. line-height: 100px;
  90. margin: 0;
  91. }
  92. .carousel ul {
  93. color: #475669;
  94. font-size: 15px;
  95. opacity: 1.75;
  96. line-height: 40px;
  97. margin: 0;
  98. }
  99. .carousel-item-intro h2 {
  100. color: #ffffff;
  101. font-size: 22px;
  102. opacity: 1.75;
  103. line-height: 80px;
  104. margin: 0;
  105. }
  106. .carousel-item-intro ul {
  107. color: #ffffff;
  108. font-size: 15px;
  109. opacity: 1.75;
  110. line-height: 65px;
  111. padding: 5px;
  112. margin: 0;
  113. }
  114. .carousel-item-func h2 {
  115. color: #3f393b;
  116. font-size: 22px;
  117. opacity: 1.75;
  118. line-height: 50px;
  119. margin: 0;
  120. }
  121. .carousel-item-func ul {
  122. color: #3f393b;
  123. font-size: 15px;
  124. opacity: 1.75;
  125. line-height: 30px;
  126. text-align: left;
  127. padding-left: 90px;
  128. margin: 0;
  129. }
  130. .carousel-item-env h2 {
  131. color: #475669;
  132. font-size: 22px;
  133. opacity: 1.75;
  134. line-height: 50px;
  135. margin: 0;
  136. }
  137. .carousel-item-env ul {
  138. color: #475669;
  139. font-size: 15px;
  140. opacity: 1.75;
  141. line-height: 35px;
  142. text-align: left;
  143. padding-left: 110px;
  144. margin: 0;
  145. }
  146. .carousel-item-intro {
  147. background-color: #19aaaf73;
  148. -webkit-border-radius: 25px;
  149. border-radius: 25px;
  150. -moz-border-radius: 15px;
  151. background-clip: padding-box;
  152. box-shadow: 0 0 25px #a3b3b965;
  153. }
  154. .carousel-item-func {
  155. background-color: #19aaaf73;
  156. -webkit-border-radius: 25px;
  157. border-radius: 25px;
  158. -moz-border-radius: 15px;
  159. background-clip: padding-box;
  160. box-shadow: 0 0 25px #a3b3b965;
  161. }
  162. .carousel-item-env {
  163. background-color: #19aaaf73;
  164. -webkit-border-radius: 25px;
  165. border-radius: 25px;
  166. -moz-border-radius: 15px;
  167. background-clip: padding-box;
  168. box-shadow: 0 0 25px #a3b3b965;
  169. }
  170. .carousel-item-intro {
  171. background-color: #b95e5e;
  172. }
  173. .carousel-item-func {
  174. background-color: #52c578;
  175. }
  176. .carousel-item-env {
  177. background-color: #41a7b9;
  178. }
  179. .dr_ul{
  180. overflow-x: auto;
  181. display: -webkit-box;
  182. -webkit-overflow-scrolling: touch;
  183. margin: 0.5rem 0.5rem;
  184. }
  185. </style>