hrz.vue 4.6 KB

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