index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <div class="consult">
  3. <form action="/" method="post">
  4. <div class="form">
  5. <div class="form-item fl">
  6. <div class="form-label">姓名:</div>
  7. <input type="text" class="form-control input" />
  8. </div>
  9. <div class="form-item fr">
  10. <div class="form-label">电话:</div>
  11. <input type="text" class="form-control input" />
  12. </div>
  13. <div class="form-item fl">
  14. <div class="form-label">省份:</div>
  15. <input type="text" class="form-control input" />
  16. </div>
  17. <div class="form-item fr">
  18. <div class="form-label">城市:</div>
  19. <input type="text" class="form-control input" />
  20. </div>
  21. <div class="form-item fl">
  22. <div class="form-label">店名:</div>
  23. <input type="text" class="form-control input" />
  24. </div>
  25. <div class="form-item fr">
  26. <div class="form-label">店面积:</div>
  27. <input type="text" class="form-control input" />
  28. </div>
  29. <div style="clear: both"></div>
  30. <div class="form-item">
  31. <div class="form-label">地址:</div>
  32. <input type="text" class="form-control input max-width" />
  33. </div>
  34. <div class="form-item vertical">
  35. <div class="form-label">意向设备:</div>
  36. <div class="form-control checkbox-group" style="margin-top: 0">
  37. <label>Binary Premium<input type="checkbox" name="device" /></label>
  38. <label>Kestos T2<input type="checkbox" name="device" /></label>
  39. <label>Intradermik<input type="checkbox" name="device" /></label>
  40. <label>Rollaction<input type="checkbox" name="device" /></label>
  41. <label>Mesobiolift RF<input type="checkbox" name="device" /></label>
  42. <label>Diactivplus<input type="checkbox" name="device" /></label>
  43. </div>
  44. </div>
  45. <div class="form-item vertical">
  46. <div class="form-label">备注:</div>
  47. <textarea class="form-control textarea"></textarea>
  48. </div>
  49. </div>
  50. <button type="submit" class="submit">提交</button>
  51. </form>
  52. </div>
  53. </template>
  54. <style scoped lang="scss">
  55. @media screen and (min-width: 768px) {
  56. .consult {
  57. .form {
  58. .form-item {
  59. display: flex;
  60. align-items: center;
  61. margin-bottom: 26px;
  62. &.vertical {
  63. display: block;
  64. .form-control {
  65. margin-top: 24px;
  66. }
  67. }
  68. .form-label {
  69. font-size: 25px;
  70. font-weight: 400;
  71. color: #000000;
  72. }
  73. .form-control {
  74. &.input {
  75. width: 468px;
  76. height: 54px;
  77. line-height: 52px;
  78. border: 1px solid #000000;
  79. box-sizing: border-box;
  80. padding: 0 16px;
  81. }
  82. &.max-width {
  83. flex: 1;
  84. }
  85. &.textarea {
  86. display: block;
  87. width: 100%;
  88. height: 351px;
  89. padding: 16px;
  90. line-height: 24px;
  91. }
  92. label {
  93. display: inline-block;
  94. font-size: 25px;
  95. font-weight: 400;
  96. color: #000000;
  97. margin-right: 120px;
  98. margin-top: 24px;
  99. input {
  100. margin-left: 16px;
  101. transform: scale(1.4);
  102. }
  103. }
  104. }
  105. }
  106. }
  107. .submit {
  108. display: block;
  109. width: 189px;
  110. height: 38px;
  111. background: #f3920d;
  112. border-radius: 19px;
  113. font-size: 25px;
  114. font-weight: 400;
  115. color: #000000;
  116. line-height: 38px;
  117. text-align: center;
  118. border: 0;
  119. margin: 44px auto 0;
  120. cursor: pointer;
  121. }
  122. }
  123. }
  124. @media screen and (max-width: 768px) {
  125. .consult {
  126. width: 6.86rem;
  127. margin: 0 auto;
  128. .form {
  129. .fl,
  130. .fr {
  131. float: unset !important;
  132. }
  133. .form-item {
  134. margin-bottom: 0.26rem;
  135. .form-label {
  136. font-size: 0.28rem;
  137. font-weight: 400;
  138. color: #000000;
  139. margin-bottom: 0.16rem;
  140. }
  141. .form-control {
  142. &.input {
  143. width: 100%;
  144. height: 0.9rem;
  145. line-height: 0.88rem;
  146. border: 0.01rem solid #b2b2b2;
  147. box-sizing: border-box;
  148. padding: 0 0.16rem;
  149. }
  150. &.textarea {
  151. display: block;
  152. width: 100%;
  153. height: 3.5rem;
  154. padding: 16px;
  155. line-height: 0.32rem;
  156. box-sizing: border-box;
  157. border-color: #b2b2b2;
  158. }
  159. &.checkbox-group {
  160. display: flex;
  161. flex-wrap: wrap;
  162. justify-content: space-between;
  163. label {
  164. display: flex;
  165. flex-direction: row-reverse;
  166. justify-content: flex-end;
  167. font-size: 0.28rem;
  168. font-weight: 400;
  169. color: #000000;
  170. margin-top: 0.35rem;
  171. width: 50%;
  172. input {
  173. margin-right: 0.16rem;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. }
  180. .submit {
  181. display: block;
  182. width: 3.5rem;
  183. height: 0.9rem;
  184. background: #f3920d;
  185. font-size: 0.28rem;
  186. font-weight: 400;
  187. color: #000000;
  188. line-height: 0.9rem;
  189. text-align: center;
  190. border: 0;
  191. margin: 0.9rem auto 0;
  192. cursor: pointer;
  193. }
  194. }
  195. }
  196. </style>