fxj_jc.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="page-body">
  3. <page-header :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="radius-wrap"></view>
  13. </view>
  14. <view class="detail-info-wrap">
  15. <page-card v-for="(item, index) in itemList" :key="index" style="margin-bottom: 30rpx;" :notShow="true" :name="item.name">
  16. <template v-slot:content>
  17. <simple-table :tableHead="tableHead" :list="item.paramsList"></simple-table>
  18. </template>
  19. </page-card>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. list: [{
  29. name: '提升高度',
  30. data: '25m'
  31. }, {
  32. name: '提升速度',
  33. data: '18m/s'
  34. }, {
  35. name: '制动油压',
  36. data: '0.07Mpa'
  37. }, {
  38. name: '电枢电流',
  39. data: '22.86A'
  40. }, {
  41. name: '励磁电流',
  42. data: '22.45A'
  43. }, {
  44. name: '润滑油压',
  45. data: '0.11Mpa'
  46. }, {
  47. name: '电机温度1',
  48. data: '82.5℃'
  49. }, {
  50. name: '电机温度2',
  51. data: '85.3℃'
  52. }],
  53. tableHead: ['名称', '深指', '行控'], // 表名
  54. itemList: [{
  55. name: '提升',
  56. paramsList: [{
  57. name: '过卷',
  58. params: [{
  59. status: 1
  60. },{
  61. status: 1
  62. }]
  63. }, {
  64. name: '停车',
  65. params: [{
  66. status: 1
  67. },{
  68. status: 1
  69. }]
  70. }, {
  71. name: '校正',
  72. params: [{
  73. status: 1
  74. },{
  75. status: 1
  76. }]
  77. }, {
  78. name: '减速',
  79. params: [{
  80. status: 1
  81. },{
  82. status: 0
  83. }]
  84. }]
  85. }, {
  86. name: '下放',
  87. paramsList: [{
  88. name: '过卷',
  89. params: [{
  90. status: 1
  91. },{
  92. status: 1
  93. }]
  94. }, {
  95. name: '停车',
  96. params: [{
  97. status: 1
  98. },{
  99. status: 1
  100. }]
  101. }, {
  102. name: '校正',
  103. params: [{
  104. status: 0
  105. },{
  106. status: 1
  107. }]
  108. }, {
  109. name: '减速',
  110. params: [{
  111. status: 1
  112. },{
  113. status: 1
  114. }]
  115. }]
  116. }]
  117. }
  118. },
  119. onLoad() {},
  120. methods: {
  121. goBack() { // 返回上一頁面
  122. uni.navigateBack()
  123. }
  124. }
  125. }
  126. </script>
  127. <style scoped lang="scss">
  128. .page-body {
  129. .scroll-wrap {
  130. height: calc(100vh - 85rpx);
  131. overflow: scroll;
  132. .basic-info-wrap {
  133. position: relative;
  134. height: auto;
  135. padding: 50rpx 49rpx 80rpx;
  136. background: url(../../../static/page_bg.png);
  137. background-size: 110%;
  138. .info-wrap {
  139. display: flex;
  140. flex-wrap: wrap;
  141. .data-item-wrap {
  142. width: 33.33%;
  143. padding: 9rpx 0;
  144. min-height: 81rpx;
  145. text-align: center;
  146. margin-top: 48rpx;
  147. border-right: 1px solid #FFFFFF;
  148. .title {
  149. font-size: 22rpx;
  150. color: #FFFFFF;
  151. margin-bottom: 14rpx;
  152. }
  153. .data {
  154. font-weight: 700;
  155. font-size: 32rpx;
  156. color: #FFF600;
  157. }
  158. }
  159. .data-item-wrap:nth-child(-n+3) {
  160. margin-top: 0;
  161. }
  162. .data-item-wrap:nth-child(3n) {
  163. border: none;
  164. }
  165. }
  166. .img-wrap {
  167. padding: 38rpx 0 57rpx;
  168. text-align: center;
  169. image {
  170. width: 350rpx;
  171. height: 194rpx;
  172. }
  173. }
  174. .radius-wrap {
  175. position: absolute;
  176. left: 0;
  177. bottom: 0;
  178. width: 100vw;
  179. height: 30rpx;
  180. background-color: #fff;
  181. border-radius: 35rpx 35rpx 0 0;
  182. }
  183. }
  184. .detail-info-wrap {
  185. padding: 40rpx 35rpx;
  186. .detail-wrap {
  187. display: flex;
  188. flex-wrap: wrap;
  189. padding: 35rpx 55rpx 18rpx 55rpx;
  190. color: #8D8D8D;
  191. .item {
  192. display: flex;
  193. font-size: 26rpx;
  194. justify-content: space-between;
  195. width: calc(50% - 61rpx);
  196. margin-bottom: 50rpx;
  197. .params {
  198. color: #00BD00;
  199. }
  200. .status-wrap {
  201. width: 100%;
  202. /deep/ .tip-wrap {
  203. width: 100%;
  204. justify-content: space-between;
  205. }
  206. }
  207. }
  208. .item:nth-child(2n) {
  209. margin-left: 120rpx;
  210. }
  211. }
  212. .params-wrap {
  213. display: flex;
  214. flex-wrap: wrap;
  215. font-size: 26rpx;
  216. padding: 35rpx 55rpx;
  217. .item {
  218. width: calc(50% - 32rpx);
  219. display: flex;
  220. justify-content: space-between;
  221. margin-top: 50rpx;
  222. view:first-child {
  223. color: #8D8D8D;
  224. }
  225. }
  226. .item:nth-child(2n) {
  227. margin-left: 62rpx;
  228. }
  229. .item:nth-child(-n+2) {
  230. margin-top: 0;
  231. }
  232. }
  233. }
  234. }
  235. }
  236. </style>