success.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. margin-left: -30rpx;
  40. width: 362rpx;
  41. height: 267rpx;
  42. display: block;
  43. }
  44. .re-succ-tit {
  45. margin-top: -26rpx;
  46. font-size: 40rpx;
  47. font-family: PingFang SC;
  48. font-weight: 500;
  49. color: #333333;
  50. }
  51. .re-succ-btn {
  52. margin-top: 80rpx;
  53. width: 350rpx;
  54. height: 80rpx;
  55. background: linear-gradient(180deg, #FD4646, #FF3535);
  56. border-radius: 40rpx;
  57. font-size: 36rpx;
  58. font-family: PingFang SC;
  59. font-weight: bold;
  60. color: #FFFFFF;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. }
  65. }
  66. }
  67. </style>