task.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="task-page">
  3. <div class="title">{{item.title}}</div>
  4. <div class="info">
  5. <div class="item">
  6. <view class="name">执行人</view>
  7. <view class="cont">执行人</view>
  8. </div>
  9. <div class="item">
  10. <view class="name">执行部门</view>
  11. <view class="cont">执行部门</view>
  12. </div>
  13. <div class="item">
  14. <view class="name">发布时间</view>
  15. <view class="cont">{{parseTime(new Date())}}</view>
  16. </div>
  17. </div>
  18. <div class="status">
  19. <div class="head">处置过程</div>
  20. <image class="icon-empty" src="/static/icon/empty.png" mode="widthFix"></image>
  21. <p>暂无处置信息</p>
  22. </div>
  23. <image class="add" @click="add" src="/static/icon/add.png" mode="widthFix"></image>
  24. </view>
  25. </template>
  26. <script>
  27. import {parseTime} from '@/libs/index.js'
  28. export default {
  29. data() {
  30. return {
  31. item:{
  32. title:"水位预{2号-770-32002}:采空区封堵完好,无渗水情况。"
  33. }
  34. }
  35. },
  36. onLoad() {
  37. // this.getTask()
  38. },
  39. methods: {
  40. parseTime,
  41. getTask(){
  42. this.item=uni.getStorageSync('task-item')
  43. },
  44. add(){
  45. uni.navigateTo({
  46. url:'/pages/task/form/form'
  47. })
  48. }
  49. },
  50. destroyed() {
  51. uni.removeStorageSync('task-item')
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .task-page{
  57. background-color: #F3F5FB;
  58. .title{
  59. font-family: 'Source Han Sans CN';
  60. font-style: normal;
  61. font-weight: 700;
  62. font-size: 36rpx;
  63. line-height: 54rpx;
  64. color: #212121;
  65. padding:0 32rpx;
  66. }
  67. .info{
  68. padding: 0 32rpx;
  69. margin: 40rpx 0;
  70. background: #FFFFFF;
  71. border-radius: 32rpx 32rpx 0px 0px;
  72. .item{
  73. border-bottom: 1rpx solid #EFF1F3;
  74. padding: 40rpx 32rpx;
  75. .name{
  76. font-size: 28rpx;
  77. color: #999999;
  78. line-height: 1;
  79. }
  80. .cont{
  81. font-size: 30rpx;
  82. color: #212121;
  83. line-height: 1.5;
  84. padding-top: 12rpx;
  85. }
  86. &:last-child{
  87. border-bottom:none;
  88. }
  89. }
  90. }
  91. .status{
  92. background: #FFFFFF;
  93. border-radius: 32rpx 32rpx 0px 0px;
  94. padding: 48rpx 32rpx;
  95. color: #212121;
  96. font-size: 34rpx;
  97. line-height:1;
  98. font-weight: 700;
  99. .icon-empty{
  100. display: block;
  101. width: 160rpx;
  102. margin: 64rpx auto 0;
  103. }
  104. p{
  105. font-size: 24rpx;
  106. line-height: 28rpx;
  107. color: #D5D5D5;
  108. text-align: center;
  109. }
  110. }
  111. .add{
  112. display: block;
  113. width: 96rpx;
  114. position: fixed;
  115. bottom: 186rpx;
  116. right: 32rpx;
  117. }
  118. }
  119. </style>