pay-success.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <view class="pay-success">
  3. <view class="success-icon">
  4. <image src="../static/pay-success.png" mode="aspectFit"></image>
  5. </view>
  6. <view class="success-title">支付成功</view>
  7. <view class="success-desc">您的书籍将邮寄,请耐心等待</view>
  8. <view class="action-buttons">
  9. <button class="btn-return" @click="handleReturn">返回首页</button>
  10. <button class="btn-view" @click="handleViewCart">返回购物车</button>
  11. </view>
  12. <!-- 温馨提示 -->
  13. <view class="tip-section">
  14. <view class="tip-title">温馨提示</view>
  15. <view class="tip-content">
  16. 平台不会以快递丢失/商品质量等为由,向您索取银行卡信息或手机验证码。请您时刻保持警惕,如遇问题,请您先与平台核实
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. orderId:''
  26. }
  27. },
  28. onLoad(options){
  29. this.orderId = options.orderId
  30. },
  31. methods: {
  32. handleReturn() {
  33. uni.switchTab({
  34. url: '/pages/sell/index'
  35. })
  36. },
  37. handleViewCart() {
  38. uni.switchTab({
  39. url: '/pages/cart/index'
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .pay-success {
  47. min-height: 100vh;
  48. background: #fff;
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. padding-top: 120rpx;
  53. .success-icon {
  54. width: 160rpx;
  55. height: 160rpx;
  56. margin-bottom: 40rpx;
  57. image {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. }
  62. .success-title {
  63. font-size: 36rpx;
  64. font-weight: 500;
  65. color: #333;
  66. margin-bottom: 20rpx;
  67. }
  68. .success-desc {
  69. font-size: 28rpx;
  70. color: #999;
  71. margin-bottom: 80rpx;
  72. }
  73. .action-buttons {
  74. display: flex;
  75. gap: 30rpx;
  76. padding: 0 40rpx;
  77. width: 100%;
  78. box-sizing: border-box;
  79. button {
  80. flex: 1;
  81. height: 88rpx;
  82. border-radius: 10rpx;
  83. font-size: 32rpx;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. &.btn-return {
  88. background: #f5f5f5;
  89. color: #666;
  90. }
  91. &.btn-view {
  92. background: #07c160;
  93. color: #fff;
  94. }
  95. }
  96. }
  97. .tip-section {
  98. margin-top: 80rpx;
  99. padding: 0 40rpx;
  100. width: 100%;
  101. box-sizing: border-box;
  102. .tip-title {
  103. font-size: 28rpx;
  104. font-weight: 500;
  105. color: #333;
  106. margin-bottom: 16rpx;
  107. }
  108. .tip-content {
  109. font-size: 24rpx;
  110. color: #999;
  111. line-height: 1.6;
  112. text-align: justify;
  113. }
  114. }
  115. }
  116. </style>