substation.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view>
  3. <view class="container">
  4. <image src="./img/zongxianlu.png" mode="widthFix"></image>
  5. <view class="content">
  6. <view class="box box_1200" @click="navigator('五分区1200变电所','1200')"></view>
  7. <view class="box box_1142" @click="navigator('1142变电所','1142')"></view>
  8. <view class="box box_950_1" @click="navigator('950变电所','950_1')"></view>
  9. <view class="box box_720" @click="navigator('720变电所','720')"></view>
  10. <view class="box box_929" @click="navigator('929变电所','929')"></view>
  11. <view class="box box_950_2" @click="navigator('五分区950变电所','950_2')"></view>
  12. <view class="box box_22" @click="navigator('22采区变电所','22')"></view>
  13. <view class="box box_980" @click="navigator('980变电所','980')"></view>
  14. <view class="box box_1000" @click="navigator('1000变电所','1000')"></view>
  15. <view class="box box_880" @click="navigator('880变电所','880')"></view>
  16. </view>
  17. <!-- <view class="btn_box">
  18. <view class="btn btn_1000">
  19. <uni-icons type="circle-filled" color="#95EC69" size="18"></uni-icons>
  20. </view>
  21. </view> -->
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. };
  30. },
  31. methods: {
  32. navigator(title,type) {
  33. uni.navigateTo({
  34. url: "./detail/detail?title=" + title + "&type=" + type
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .container {
  42. background-color: #F7F7F7;
  43. background-image: url("../img/top.jpg");
  44. background-size: 100% 100%;
  45. width: 750rpx;
  46. box-sizing: border-box;
  47. padding: 25rpx;
  48. image {
  49. width: 700rpx;
  50. }
  51. position: relative;
  52. .content {
  53. width: 700rpx;
  54. position: absolute;
  55. top: 0;
  56. .box {
  57. width: 276rpx;
  58. height: 290rpx;
  59. position: absolute;
  60. }
  61. .box_1200 {
  62. top: 174rpx;
  63. left: 0;
  64. }
  65. .box_1142 {
  66. top: 686rpx;
  67. left: 0;
  68. }
  69. .box_950_1 {
  70. top: 1028rpx;
  71. left: 0;
  72. }
  73. .box_720 {
  74. top: 1540rpx;
  75. left: 0;
  76. }
  77. .box_929 {
  78. top: 1882rpx;
  79. left: 0;
  80. }
  81. .box_950_2 {
  82. top: 174rpx;
  83. left: 424rpx;
  84. }
  85. .box_22 {
  86. top: 686rpx;
  87. left: 424rpx;
  88. }
  89. .box_980 {
  90. top: 1028rpx;
  91. left: 424rpx;
  92. }
  93. .box_1000 {
  94. top: 1540rpx;
  95. left: 424rpx;
  96. }
  97. .box_880 {
  98. top: 1882rpx;
  99. left: 424rpx;
  100. }
  101. }
  102. .btn_box{
  103. width: 700rpx;
  104. position: absolute;
  105. top: 0;
  106. .btn{
  107. position: absolute;
  108. }
  109. .btn_1000{
  110. top: 1774rpx;
  111. left: 432rpx;
  112. }
  113. }
  114. }
  115. </style>