submit-success.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="">
  3. <navbar :config="config" backColor="#999999"></navbar>
  4. <view class="success-content">
  5. <image class="success-img" src="./static/submit-success.png" mode="aspectFit"></image>
  6. <view class="success-hint">
  7. 任务提交完成,审核员正在火速赶来的路上~
  8. </view>
  9. <view class="continue-btn" @click.stop="onContinue()">
  10. 继续完成其他任务
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. config: {
  20. back: true,
  21. title: '提交完成',
  22. color: 'black',
  23. backgroundColor: [1, '#fff'],
  24. statusBarFontColor: 'black'
  25. },
  26. }
  27. },
  28. methods: {
  29. onContinue() {
  30. try {
  31. const pages = getCurrentPages();
  32. const route = pages[pages.length - 3].route;
  33. console.log('route = ', route)
  34. if (route && ['pages/task/my-task', 'pages/task/task-details', 'pages/task/task-audit'].includes(
  35. route)) {
  36. const $vm_ = pages[pages.length - 3].$vm
  37. $vm_.init();
  38. uni.navigateBack({
  39. delta: 2
  40. });
  41. return false
  42. }
  43. } catch (err) {
  44. console.log('err === ', err)
  45. }
  46. // uni.redirectTo({
  47. // url: '/pages/task/my-task'
  48. // })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .success-content {
  55. padding: 262rpx 30rpx 0;
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. .success-img {
  60. width: 526rpx;
  61. height: 267rpx;
  62. }
  63. .success-hint {
  64. padding: 50rpx 0 40rpx;
  65. font-size: 28rpx;
  66. // font-family: .PingFang SC, .PingFang SC-Light;
  67. font-weight: Light;
  68. color: #1a1a1a;
  69. }
  70. .continue-btn {
  71. width: 690rpx;
  72. height: 80rpx;
  73. background: linear-gradient(92deg, #3cb7d2 2%, #44c5d5 98%);
  74. border-radius: 40rpx;
  75. font-size: 32rpx;
  76. font-family: PingFang SC, PingFang SC-Regular;
  77. font-weight: Regular;
  78. text-align: center;
  79. color: #ffffff;
  80. line-height: 80rpx;
  81. }
  82. }
  83. </style>