success.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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">{{type ==2? '挂售成功' : '提交成功'}}</view>
  6. <view class="btn-box flex">
  7. <view class="re-succ-btn" @click="goBack()">返回首页</view>
  8. <view class="go-btn " @click="go()">{{ type == 2? '返回挂售' : '返回支付'}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return{
  17. type:1,
  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. go() {
  32. let url
  33. if(this.type == 1){
  34. url = '/pages/order/order?state=1'
  35. }else if(this.type == 2) {
  36. url = '/pages/order/order?state=3'
  37. }
  38. uni.navigateTo({
  39. url: url
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. page {
  47. height: 100%;
  48. }
  49. .container {
  50. height: 100%;
  51. background: #FFFFFF;
  52. .line-top {
  53. width: 750rpx;
  54. height: 20rpx;
  55. background: #F5F5F5;
  56. }
  57. .re-succ-box {
  58. padding-top: 170rpx;
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. .re-succ-img {
  63. margin-left: -30rpx;
  64. width: 362rpx;
  65. height: 267rpx;
  66. display: block;
  67. }
  68. .re-succ-tit {
  69. margin-top: -26rpx;
  70. font-size: 40rpx;
  71. font-family: PingFang SC;
  72. font-weight: 500;
  73. color: #333333;
  74. }
  75. .btn-box{
  76. width: 750rpx;
  77. margin-top: 80rpx;
  78. padding: 0 50rpx;
  79. }
  80. .re-succ-btn {
  81. width: 300rpx;
  82. height: 80rpx;
  83. background: linear-gradient(180deg, #FD4646, #FF3535);
  84. border-radius: 40rpx;
  85. font-size: 36rpx;
  86. font-family: PingFang SC;
  87. font-weight: bold;
  88. color: #FFFFFF;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. }
  93. .go-btn {
  94. width: 300rpx;
  95. height: 80rpx;
  96. border: 1px solid #FD4646;
  97. border-radius: 40rpx;
  98. font-size: 36rpx;
  99. font-family: PingFang SC;
  100. font-weight: bold;
  101. color: #FD4646;
  102. display: flex;
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. }
  107. }
  108. </style>