success.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: 350rpx;
  53. height: 80rpx;
  54. background: #1CC7C7;
  55. border-radius: 40rpx;
  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>