index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="common-wrap">
  3. <div class="row-item" v-for="item in mapValues">
  4. <div class="icon">
  5. <img src="/static/images/icon_guide@2x.png">
  6. </div>
  7. <div class="txt">
  8. {{ item.value }}
  9. </div>
  10. </div>
  11. <div class="row-item">
  12. <div class="icon">
  13. <img src="/static/images/icon_guide@2x.png">
  14. </div>
  15. <div class="txt">
  16. 远动调试本月还有
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'Zydbsx',
  24. data() {
  25. return {
  26. mapValues: [
  27. {id: 1, value: '远动调试本月还有'},
  28. {id: 1, value: '电力受电线路'},
  29. {id: 1, value: '电力变配电所'},
  30. {id: 1, value: '电力设备巡检待检'},
  31. {id: 1, value: '变电所待实验'}
  32. ]
  33. }
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .common-wrap {
  39. width: 100%;
  40. height: 100%;
  41. overflow-y: auto;
  42. color: white;
  43. .row-item {
  44. width: 100%;
  45. display: flex;
  46. align-items: center;
  47. justify-content: space-between;
  48. font-size: 18px;
  49. padding: 8px 28px;
  50. .icon {
  51. flex-shrink: 0;
  52. margin-right: 14px;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. img{
  57. width: 15px;
  58. height: 15px;
  59. }
  60. }
  61. .txt{
  62. flex-grow: 1;
  63. }
  64. }
  65. }
  66. </style>