success.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="container">
  3. <view class="re-succ-box">
  4. <image class="re-succ-img" src="../../static/img/success.png"></image>
  5. <view class="re-succ-tit">提交成功</view>
  6. <view class="re-succ-btn" @click="goBack()">返回首页</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. methods: {
  13. goBack() {
  14. uni.switchTab({
  15. url: '/pages/index/index'
  16. })
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. page {
  23. height: 100%;
  24. }
  25. .container {
  26. height: 100%;
  27. background: #FFFFFF;
  28. .line-top {
  29. width: 750rpx;
  30. height: 20rpx;
  31. background: #F5F5F5;
  32. }
  33. .re-succ-box {
  34. padding-top: 170rpx;
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. .re-succ-img {
  39. width: 362rpx;
  40. height: 267rpx;
  41. display: block;
  42. }
  43. .re-succ-tit {
  44. font-size: 36rpx;
  45. font-family: PingFang SC;
  46. font-weight: 500;
  47. color: #333333;
  48. margin-left: 22rpx;
  49. }
  50. .re-succ-btn {
  51. margin-top: 80rpx;
  52. width: 464rpx;
  53. height: 77rpx;
  54. background: linear-gradient(180deg, #FD4646, #FF3535);
  55. border-radius: 38rpx;
  56. font-size: 34rpx;
  57. font-family: PingFang SC;
  58. font-weight: bold;
  59. color: #FFFFFF;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. }
  64. }
  65. }
  66. </style>