xgl.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="pageData.name" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="scroll-wrap">
  5. <view class="basic-info-wrap">
  6. <view class="img-wrap">
  7. <image src="@/static/rhb.jpg" />
  8. </view>
  9. <view class="radius-wrap"></view>
  10. </view>
  11. <view class="detail-info-wrap">
  12. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'设备参数'">
  13. <template v-slot:content>
  14. <simple-table :tableHead="tableHead" :list="paramsList"></simple-table>
  15. </template>
  16. </page-card>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. pageData: {},
  26. tableHead: ['名称', '参数'],
  27. paramsList: [{
  28. name: '1#锅炉',
  29. params: ['???℃']
  30. },{
  31. name: '2#锅炉',
  32. params: ['???℃']
  33. },{
  34. name: '3#锅炉',
  35. params: ['???℃']
  36. },{
  37. name: '4#锅炉',
  38. params: ['???℃']
  39. },{
  40. name: '锅炉供水管',
  41. params: ['???℃']
  42. },{
  43. name: '二次供水管',
  44. params: ['???℃']
  45. },{
  46. name: '实际目标水温',
  47. params: ['???℃']
  48. },{
  49. name: '当前室内水温',
  50. params: ['???℃']
  51. },{
  52. name: '低低控制温度',
  53. params: ['???℃']
  54. },{
  55. name: '最低控制温度',
  56. params: ['???℃']
  57. },{
  58. name: '最高控制温度',
  59. params: ['???℃']
  60. },{
  61. name: '出水超温',
  62. params: ['???℃']
  63. },{
  64. name: '二次供水超温',
  65. params: ['???℃']
  66. },{
  67. name: '二次回水低压',
  68. params: ['???MPa']
  69. },{
  70. name: '水箱液位高',
  71. params: ['???M']
  72. },{
  73. name: '水箱液位低',
  74. params: ['???M']
  75. }]
  76. }
  77. },
  78. onLoad(option) {
  79. this.pageData = JSON.parse(option.data)
  80. },
  81. methods: {
  82. goBack() { // 返回上一頁面
  83. uni.navigateBack()
  84. }
  85. }
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .page-body {
  90. .scroll-wrap {
  91. height: calc(100vh - 85rpx);
  92. overflow: scroll;
  93. .basic-info-wrap {
  94. position: relative;
  95. height: auto;
  96. padding: 50rpx 49rpx 0;
  97. background: url(../../../static/page_bg.png);
  98. background-size: 140%;
  99. .info-wrap {
  100. display: flex;
  101. flex-wrap: wrap;
  102. .data-item-wrap {
  103. width: 33.33%;
  104. padding: 9rpx 0;
  105. min-height: 81rpx;
  106. text-align: center;
  107. margin-top: 48rpx;
  108. border-right: 1px solid #FFFFFF;
  109. .title {
  110. font-size: 22rpx;
  111. color: #FFFFFF;
  112. margin-bottom: 14rpx;
  113. }
  114. .data {
  115. font-weight: 700;
  116. font-size: 32rpx;
  117. color: #FFF600;
  118. }
  119. }
  120. .data-item-wrap:nth-child(-n+3) {
  121. margin-top: 0;
  122. }
  123. .data-item-wrap:nth-child(3n) {
  124. border: none;
  125. }
  126. }
  127. .img-wrap {
  128. padding: 38rpx 0 57rpx;
  129. text-align: center;
  130. image {
  131. width: 100rpx;
  132. height: 120rpx;
  133. }
  134. }
  135. .radius-wrap {
  136. position: absolute;
  137. left: 0;
  138. bottom: 0;
  139. width: 100vw;
  140. height: 30rpx;
  141. background-color: #fff;
  142. border-radius: 35rpx 35rpx 0 0;
  143. }
  144. }
  145. .detail-info-wrap {
  146. padding: 40rpx 35rpx;
  147. .detail-wrap {
  148. display: flex;
  149. flex-wrap: wrap;
  150. padding: 35rpx 55rpx 18rpx 55rpx;
  151. color: #8D8D8D;
  152. .item {
  153. display: flex;
  154. font-size: 26rpx;
  155. justify-content: space-between;
  156. width: calc(50% - 61rpx);
  157. margin-bottom: 50rpx;
  158. .params {
  159. color: #00BD00;
  160. }
  161. .status-wrap {
  162. width: 100%;
  163. /deep/ .tip-wrap {
  164. width: 100%;
  165. justify-content: space-between;
  166. }
  167. }
  168. }
  169. .item:nth-child(2n) {
  170. margin-left: 120rpx;
  171. }
  172. }
  173. .params-wrap {
  174. display: flex;
  175. flex-wrap: wrap;
  176. font-size: 26rpx;
  177. padding: 35rpx 55rpx;
  178. .item {
  179. width: calc(50% - 32rpx);
  180. display: flex;
  181. justify-content: space-between;
  182. margin-top: 50rpx;
  183. view:first-child {
  184. color: #8D8D8D;
  185. }
  186. }
  187. .item:nth-child(2n) {
  188. margin-left: 62rpx;
  189. }
  190. .item:nth-child(-n+2) {
  191. margin-top: 0;
  192. }
  193. }
  194. }
  195. }
  196. }
  197. </style>