risk.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="page-index">
  3. <view class="status_bar"></view>
  4. <div class="title">
  5. <text class="tab">我的</text>
  6. <text class="tab active">部门</text>
  7. </div>
  8. <div class="statistics">
  9. <div class="head">任务统计</div>
  10. <div class="container">
  11. <div class="item">
  12. <img class="icon" src="/static/index/wait.png" alt="">
  13. <text>待评审{{statistics.review}}个</text>
  14. </div>
  15. <div class="item">
  16. <img class="icon" src="/static/index/expire.png" alt="">
  17. <text>待整改{{statistics.rectify}}个</text>
  18. </div>
  19. <div class="item">
  20. <img class="icon" src="/static/index/complete.png" alt="">
  21. <text>待验收{{statistics.check}}个</text>
  22. </div>
  23. <div class="item">
  24. <img class="icon" src="/static/index/complete.png" alt="">
  25. <text>已完成{{statistics.complete}}个</text>
  26. </div>
  27. <div class="item">
  28. <img class="icon" src="/static/index/revocation.png" alt="">
  29. <text>已撤销{{statistics.revocation}}个</text>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="task-list">
  34. <div class="head">待办任务</div>
  35. <div class="item" v-for="(item,index) in 10" :key="index">
  36. <div class="task-title">{2号-770-32002}:采空区封堵完好,无渗水情况。</div>
  37. <div class="time">2022-02-03 09:00</div>
  38. </div>
  39. </div>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. statusBarHeight:0,
  47. statistics: {
  48. review:10,
  49. rectify:2,
  50. complete:10,
  51. check:88,
  52. revocation:2
  53. }
  54. }
  55. },
  56. onLoad(){
  57. this.initStatusBarHeight()
  58. },
  59. methods: {
  60. initStatusBarHeight(){
  61. console.log(uni.getSystemInfoSync())
  62. this.statusBarHeight=uni.getSystemInfoSync().statusBarHeight
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .page-index{
  69. background: linear-gradient(180deg, #4D73FF 0%, rgba(77, 115, 255, 0) 100%);
  70. padding: 0 30upx;
  71. .title{
  72. .tab{
  73. font-size: 34upx;
  74. line-height: 50upx;
  75. margin-right: 32upx;
  76. color: #fff;
  77. &.active{
  78. color: rgba(255, 255, 255, 0.6);
  79. }
  80. }
  81. }
  82. .statistics{
  83. &{
  84. border-radius: 24upx;
  85. background-color: #fff;
  86. padding:36upx 0 0 24upx;
  87. margin-top: 48upx;
  88. }
  89. .head{
  90. font-weight: 900;
  91. font-size: 34upx;
  92. line-height: 50upx;
  93. color: #151515;
  94. }
  95. .container{
  96. display: flex;
  97. align-items: center;
  98. flex-wrap: wrap;
  99. .item{
  100. width: 33.33%;
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. flex-direction: column;
  105. margin-bottom: 40upx;
  106. .icon{
  107. display: block;
  108. width:88upx;
  109. height: 88upx;
  110. }
  111. text{
  112. font-size: 28upx;
  113. line-height: 42upx;
  114. color: #151515;
  115. padding-top: 18upx;
  116. }
  117. }
  118. }
  119. }
  120. .task-list{
  121. border-radius: 24upx;
  122. background-color: #fff;
  123. margin-top: 24upx;
  124. padding: 36upx 24upx;
  125. .head{
  126. font-weight: 900;
  127. font-size: 34upx;
  128. line-height: 50upx;
  129. color: #151515;
  130. }
  131. .item{
  132. padding: 30upx 40upx 38upx 40upx;
  133. .task-title{
  134. color: #212121;
  135. font-size: 32upx;
  136. padding-bottom: 24upx;
  137. }
  138. .time{
  139. background-image: url(/static/index/time.png);
  140. background-repeat: no-repeat;
  141. background-position: left center;
  142. background-size: 24upx 24upx;
  143. padding-left: 36upx;
  144. color: #999;
  145. font-size: 24upx;
  146. }
  147. }
  148. }
  149. }
  150. .container {
  151. padding: 20px;
  152. font-size: 14px;
  153. line-height: 24px;
  154. }
  155. </style>