success.vue 1.4 KB

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