success.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-tip" v-if="type == 1">
  7. 请耐心等待审核
  8. </view>
  9. <view class="re-succ-btn" @click="goBack()">返回首页</view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data(){
  16. return{
  17. type:'',
  18. }
  19. },
  20. onLoad(option) {
  21. if(option.type){
  22. this.type = option.type
  23. }
  24. },
  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. position: relative;
  53. left: 16rpx;
  54. width: 362rpx;
  55. height: 267rpx;
  56. display: block;
  57. }
  58. .re-succ-tit {
  59. margin-top: -26rpx;
  60. font-size: 40rpx;
  61. font-family: PingFang SC;
  62. font-weight: 500;
  63. color: #333333;
  64. }
  65. .re-tip {
  66. font-size: 28rpx;
  67. font-family: PingFang SC;
  68. font-weight: 500;
  69. color: #B3B3B3;
  70. }
  71. .re-succ-btn {
  72. margin-top: 80rpx;
  73. width: 300rpx;
  74. height: 78rpx;
  75. border: 2rpx solid #2E58FF;
  76. border-radius: 10rpx;
  77. font-size: 30rpx;
  78. font-family: PingFang SC;
  79. font-weight: 500;
  80. color: #2E58FF;
  81. text-align: center;
  82. line-height: 78rpx;
  83. }
  84. }
  85. }
  86. </style>