substation.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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变电所','5fq1200')"></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变电所','5fq950')"></view>
  12. <view class="box box_22" @click="navigator('22采区变电所','22high')"></view>
  13. <view class="box box_980" @click="navigator('980变电所','980')"></view>
  14. <view class="box box_1000" @click="navigator('1000变电所','1000low')"></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. if(type == "950_1" || type == "929"){
  34. uni.showToast({
  35. icon:"none",
  36. title:"暂未开通!"
  37. })
  38. }else{
  39. uni.navigateTo({
  40. url: "./detail/detail?title=" + title + "&type=" + type
  41. })
  42. }
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. .container {
  49. background-color: #F7F7F7;
  50. background-image: url("../img/top.jpg");
  51. background-size: 100% 100%;
  52. width: 750rpx;
  53. box-sizing: border-box;
  54. padding: 25rpx;
  55. image {
  56. width: 700rpx;
  57. }
  58. position: relative;
  59. .content {
  60. width: 700rpx;
  61. position: absolute;
  62. top: 0;
  63. .box {
  64. width: 276rpx;
  65. height: 290rpx;
  66. position: absolute;
  67. }
  68. .box_1200 {
  69. top: 174rpx;
  70. left: 0;
  71. }
  72. .box_1142 {
  73. top: 686rpx;
  74. left: 0;
  75. }
  76. .box_950_1 {
  77. top: 1028rpx;
  78. left: 0;
  79. }
  80. .box_720 {
  81. top: 1540rpx;
  82. left: 0;
  83. }
  84. .box_929 {
  85. top: 1882rpx;
  86. left: 0;
  87. }
  88. .box_950_2 {
  89. top: 174rpx;
  90. left: 424rpx;
  91. }
  92. .box_22 {
  93. top: 686rpx;
  94. left: 424rpx;
  95. }
  96. .box_980 {
  97. top: 1028rpx;
  98. left: 424rpx;
  99. }
  100. .box_1000 {
  101. top: 1540rpx;
  102. left: 424rpx;
  103. }
  104. .box_880 {
  105. top: 1882rpx;
  106. left: 424rpx;
  107. }
  108. }
  109. .btn_box{
  110. width: 700rpx;
  111. position: absolute;
  112. top: 0;
  113. .btn{
  114. position: absolute;
  115. }
  116. .btn_1000{
  117. top: 1774rpx;
  118. left: 432rpx;
  119. }
  120. }
  121. }
  122. </style>