drainage.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <template>
  2. <view>
  3. <view class="top">
  4. <image src="../img/top.jpg" mode="widthFix"></image>
  5. </view>
  6. <view class="container">
  7. <view class="btn">
  8. <view class="left">
  9. <view class="icon">
  10. <image src="../img/btn_icon.png" mode="widthFix"></image>
  11. </view>
  12. <view class="title">
  13. 多级排水系统
  14. </view>
  15. </view>
  16. <!-- <view class="right">
  17. <uni-icons type="arrowright" color="#FFF"></uni-icons>
  18. </view> -->
  19. </view>
  20. <view class="info">
  21. <view class="box">
  22. <view class="item" v-for="(item,index) in info_paishui" :key="index">
  23. <view class="label">{{item.label}}</view>
  24. <view class="value">{{item.value}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="btn">
  29. <view class="left">
  30. <view class="icon">
  31. <image src="../img/btn_icon.png" mode="widthFix"></image>
  32. </view>
  33. <view class="title">
  34. 多级供水系统
  35. </view>
  36. </view>
  37. <!-- <view class="right">
  38. <uni-icons type="arrowright" color="#FFF"></uni-icons>
  39. </view> -->
  40. </view>
  41. <view class="info">
  42. <view class="box">
  43. <view class="item" v-for="(item,index) in info_gongshui" :key="index">
  44. <view class="label">{{item.label}}</view>
  45. <view class="value">{{item.value}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="content">
  50. <view class="section" v-for="(item,index) in list" :key="index">
  51. <view class="title">
  52. <view class="left">{{item.title}}</view>
  53. <view class="right" @click="goto_url(item)">点击查看详情</view>
  54. </view>
  55. <view class="inner">
  56. <view class="item" v-for="(item_2,index_2) in item.info" :key="index_2">
  57. <view class="label">{{item_2.label}}</view>
  58. <view class="value">
  59. <view class="state" :style="{'backgroundColor':item_2.state == 1?'#00BD00':'#D6000F'}">
  60. </view>
  61. <view class="text">{{item_2.text}}</view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. info_paishui: [{
  75. label: "1#水池液位",
  76. value: "2.95m"
  77. },
  78. {
  79. label: "通讯状态",
  80. value: "通讯正常"
  81. },
  82. {
  83. label: "2#水池液位",
  84. value: "3.15m"
  85. },
  86. {
  87. label: "通讯地址",
  88. value: "172.16.59.241"
  89. }
  90. ],
  91. info_gongshui: [{
  92. label: "补清水量",
  93. value: "214748364.8m3"
  94. },
  95. {
  96. label: "复用水累计流量",
  97. value: "10380792.8m3"
  98. },
  99. {
  100. label: "通讯状态",
  101. value: "通讯正常"
  102. }
  103. ],
  104. list: [{
  105. title: "929水泵房",
  106. sys_code: "929",
  107. info: [{
  108. label: "1#水泵",
  109. state: 1,
  110. text: "开启"
  111. },
  112. {
  113. label: "2#水泵",
  114. state: 1,
  115. text: "开启"
  116. },
  117. {
  118. label: "3#水泵",
  119. state: 1,
  120. text: "开启"
  121. }
  122. ]
  123. },
  124. {
  125. title: "+1000水泵房",
  126. sys_code: "1000",
  127. info: [{
  128. label: "1#污水泵",
  129. state: 1,
  130. text: "开启"
  131. },
  132. {
  133. label: "2#污水泵",
  134. state: 1,
  135. text: "开启"
  136. },
  137. {
  138. label: "1#清水泵",
  139. state: 0,
  140. text: "无信号"
  141. },
  142. {
  143. label: "2#清水泵",
  144. state: 0,
  145. text: "无信号"
  146. }
  147. ]
  148. }
  149. ],
  150. };
  151. },
  152. methods: {
  153. goto_url(item) {
  154. uni.navigateTo({
  155. url: "./pump_house/pump_house" + "?title=" + item.title + "&sys_code=" + item
  156. .sys_code
  157. })
  158. }
  159. }
  160. }
  161. </script>
  162. <style lang="scss">
  163. page {
  164. background-color: #F7F7F7;
  165. }
  166. .top {
  167. margin-top: -80rpx;
  168. image {
  169. width: 750rpx;
  170. }
  171. }
  172. .container {
  173. margin: -900rpx 0 0 0;
  174. position: relative;
  175. .btn {
  176. margin: 0 auto;
  177. width: 680rpx;
  178. height: 120rpx;
  179. background-image: url("../img/btn.png");
  180. background-size: cover;
  181. display: flex;
  182. align-items: center;
  183. justify-content: space-between;
  184. box-sizing: border-box;
  185. padding: 0 40rpx;
  186. .left {
  187. display: flex;
  188. align-items: center;
  189. .icon {
  190. margin-right: 20rpx;
  191. font-size: 0;
  192. image {
  193. width: 36rpx;
  194. }
  195. }
  196. .title {
  197. font-size: 34rpx;
  198. font-weight: 700;
  199. color: #FFF;
  200. }
  201. }
  202. .right {
  203. font-weight: 700;
  204. }
  205. }
  206. .info {
  207. margin: 25rpx;
  208. padding: 10rpx 0;
  209. background-color: #34ADFE40;
  210. border-radius: 16rpx;
  211. .box {
  212. margin: 20rpx 40rpx;
  213. box-sizing: border-box;
  214. display: flex;
  215. justify-content: space-between;
  216. flex-wrap: wrap;
  217. .item {
  218. min-width: 300rpx;
  219. font-size: 26rpx;
  220. line-height: 60rpx;
  221. display: flex;
  222. .label {
  223. color: #FFF;
  224. }
  225. .value {
  226. margin-left: 20rpx;
  227. color: #FFFF00;
  228. }
  229. }
  230. }
  231. }
  232. .content {
  233. background-color: #F7F7F7;
  234. border-radius: 35rpx 35rpx 0 0;
  235. box-sizing: border-box;
  236. padding: 35rpx;
  237. .section {
  238. margin-bottom: 40rpx;
  239. border-radius: 14rpx;
  240. overflow: hidden;
  241. .title {
  242. background: linear-gradient(-90deg, #FFFFFF, #E6FAFF);
  243. display: flex;
  244. align-items: flex-end;
  245. justify-content: space-between;
  246. box-sizing: border-box;
  247. padding: 24rpx;
  248. .left {
  249. border-left: 6rpx solid #33C777;
  250. padding-left: 10rpx;
  251. font-size: 34rpx;
  252. font-weight: 700;
  253. color: #343434;
  254. }
  255. .right {
  256. font-size: 22rpx;
  257. color: #3394F9;
  258. }
  259. }
  260. .inner {
  261. background-color: #FFFFFF;
  262. padding: 30rpx 20rpx;
  263. display: grid;
  264. grid-template-columns: repeat(2, 1fr);
  265. gap: 0 40rpx;
  266. .item {
  267. display: flex;
  268. align-items: center;
  269. justify-content: space-around;
  270. line-height: 60rpx;
  271. .label {
  272. width: 150rpx;
  273. color: #8D8D8D;
  274. font-size: 26rpx;
  275. }
  276. .value {
  277. width: 150rpx;
  278. display: flex;
  279. align-items: center;
  280. .state {
  281. width: 30rpx;
  282. height: 30rpx;
  283. background: #D6000F;
  284. border-radius: 6rpx;
  285. }
  286. .text {
  287. margin-left: 20rpx;
  288. font-size: 26rpx;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. }
  295. }
  296. </style>