four.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <div class="four">
  3. <div class="top">
  4. <div class="compute">
  5. <img src="/img/warpKnittingMachine/4/btn_js.png" alt="" />
  6. </div>
  7. <div class="back">
  8. <img src="/img/warpKnittingMachine/4/btn_back.png" alt="" />
  9. </div>
  10. </div>
  11. <div class="body">
  12. <div class="line" style="margin-top: 68px">
  13. <input
  14. v-for="item in 5"
  15. :key="item"
  16. type="text"
  17. disabled
  18. :style="getStyle(item)"
  19. />
  20. <img
  21. style="margin-left: 50px"
  22. src="/img/warpKnittingMachine/4/btn_gx.png"
  23. alt=""
  24. />
  25. </div>
  26. <div class="line" style="margin-top: 15px">
  27. <input
  28. v-for="item in 5"
  29. :key="item"
  30. type="text"
  31. disabled
  32. :style="getStyle(item)"
  33. />
  34. <img
  35. style="margin-left: 50px"
  36. src="/img/warpKnittingMachine/4/btn_gx.png"
  37. alt=""
  38. />
  39. </div>
  40. <div class="line" style="margin-top: 15px">
  41. <input
  42. v-for="item in 5"
  43. :key="item"
  44. type="text"
  45. disabled
  46. :style="getStyle(item)"
  47. />
  48. <img
  49. style="margin-left: 50px"
  50. src="/img/warpKnittingMachine/4/btn_gx.png"
  51. alt=""
  52. />
  53. </div>
  54. <div class="line" style="margin-top: 15px">
  55. <input
  56. v-for="item in 5"
  57. :key="item"
  58. type="text"
  59. disabled
  60. :style="getStyle(item)"
  61. />
  62. <img
  63. style="margin-left: 50px"
  64. src="/img/warpKnittingMachine/4/btn_gx.png"
  65. alt=""
  66. />
  67. </div>
  68. <div class="line" style="margin-top: 15px">
  69. <input
  70. v-for="item in 5"
  71. :key="item"
  72. type="text"
  73. disabled
  74. :style="getStyle(item)"
  75. />
  76. <img
  77. style="margin-left: 50px"
  78. src="/img/warpKnittingMachine/4/btn_gx.png"
  79. alt=""
  80. />
  81. </div>
  82. <div class="line" style="margin-top: 15px">
  83. <input
  84. v-for="item in 5"
  85. :key="item"
  86. type="text"
  87. disabled
  88. :style="getStyle(item)"
  89. />
  90. <img
  91. style="margin-left: 50px"
  92. src="/img/warpKnittingMachine/4/btn_gx.png"
  93. alt=""
  94. />
  95. </div>
  96. <div class="line" style="margin-top: 15px">
  97. <input
  98. v-for="item in 5"
  99. :key="item"
  100. type="text"
  101. disabled
  102. :style="getStyle(item)"
  103. />
  104. <img
  105. style="margin-left: 50px"
  106. src="/img/warpKnittingMachine/4/btn_gx.png"
  107. alt=""
  108. />
  109. </div>
  110. <div class="line" style="margin-top: 15px">
  111. <input
  112. v-for="item in 5"
  113. :key="item"
  114. type="text"
  115. disabled
  116. :style="getStyle(item)"
  117. />
  118. <img
  119. style="margin-left: 50px"
  120. src="/img/warpKnittingMachine/4/btn_gx.png"
  121. alt=""
  122. />
  123. </div>
  124. </div>
  125. </div>
  126. </template>
  127. <script>
  128. export default {
  129. data() {
  130. return {
  131. att: "sss",
  132. next: ">>",
  133. last: "<<",
  134. };
  135. },
  136. methods: {
  137. getStyle(index) {
  138. switch (index) {
  139. case 1:
  140. return { background: "#ccc" };
  141. case 2:
  142. return { background: "#ccc", "margin-left": "40px" };
  143. case 3:
  144. return { background: "#ccc", "margin-left": "50px" };
  145. case 4:
  146. return { background: "#000", "margin-left": "55px" };
  147. case 5:
  148. return { background: "#000", "margin-left": "55px" };
  149. }
  150. },
  151. },
  152. };
  153. </script>
  154. <style lang="scss" scoped>
  155. .four {
  156. width: 1200px;
  157. height: 625px;
  158. background: url("/img/warpKnittingMachine/4/jbj4.png") no-repeat;
  159. background-size: 1200px 625px;
  160. position: relative;
  161. input {
  162. height: 30px;
  163. width: 120px;
  164. line-height: 30px;
  165. }
  166. .top {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. padding-top: 35px;
  171. .compute {
  172. padding-left: 20px;
  173. }
  174. .back {
  175. padding-right: 20px;
  176. }
  177. }
  178. .line {
  179. display: flex;
  180. padding-left: 140px;
  181. }
  182. }
  183. img {
  184. cursor: pointer;
  185. }
  186. </style>