taskCompleteSuccess.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view class="container">
  3. <!-- 状态栏占位 -->
  4. <view class="content">
  5. <view class="success-content">
  6. <image class="w320" src="@/static/image/img_success.png" mode="widthFix"></image>
  7. <view class="success-text">任务已完成</view>
  8. </view>
  9. <view class="back-btn-large" @click="goBackToList">
  10. 返回任务列表
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px'
  20. }
  21. },
  22. methods: {
  23. goBack() {
  24. uni.navigateBack()
  25. },
  26. goBackToList() {
  27. uni.navigateBack({
  28. delta: 3
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .container {
  36. min-height: 100vh;
  37. background: #fff;
  38. display: flex;
  39. flex-direction: column;
  40. }
  41. .status-bar {
  42. width: 100%;
  43. background: #fff;
  44. }
  45. .header {
  46. position: relative;
  47. height: 88rpx;
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. background: #fff;
  52. border-bottom: 1rpx solid #f0f0f0;
  53. .back-btn {
  54. position: absolute;
  55. left: 24rpx;
  56. width: 40rpx;
  57. height: 40rpx;
  58. image {
  59. width: 100%;
  60. height: 100%;
  61. }
  62. }
  63. .title {
  64. font-size: 36rpx;
  65. font-weight: bold;
  66. color: #333;
  67. }
  68. .header-right {
  69. position: absolute;
  70. right: 24rpx;
  71. display: flex;
  72. align-items: center;
  73. gap: 16rpx;
  74. .more-icon {
  75. font-size: 32rpx;
  76. color: #333;
  77. }
  78. }
  79. }
  80. .content {
  81. flex: 1;
  82. display: flex;
  83. flex-direction: column;
  84. align-items: center;
  85. // justify-content: center;
  86. padding-top: 190rpx;
  87. }
  88. .success-content {
  89. display: flex;
  90. flex-direction: column;
  91. align-items: center;
  92. margin-bottom: 80rpx;
  93. .success-text {
  94. margin-top: 48rpx;
  95. font-family: PingFang SC, PingFang SC;
  96. font-weight: 500;
  97. font-size: 36rpx;
  98. color: #333333;
  99. line-height: 44rpx;
  100. }
  101. }
  102. .back-btn-large {
  103. width: 100%;
  104. max-width: 600rpx;
  105. height: 88rpx;
  106. background: #388BFF;
  107. border-radius: 44rpx;
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. font-size: 32rpx;
  112. color: #fff;
  113. font-weight: 500;
  114. }
  115. </style>