paySuccess.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="container">
  3. <view class="pay-icon">
  4. <view class="iconfont iconqueding"></view>
  5. </view>
  6. <view class="pay-title">支付成功</view>
  7. <view class="pay-text">您已支付成功,您所购买的商品正在向您飞奔, 请耐心等待!</view>
  8. <view class="pay-handle">
  9. <u-button type="success" shape="circle" :ripple="true" @click="goToOrderList()" class="button1">查看订单</u-button>
  10. <u-button type="success" shape="circle" :ripple="true" :hair-line="false" :plain="true" @click="goToIndex()" class="button2">返回首页</u-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. const NET = require('@/utils/request')
  16. const API = require('@/config/api')
  17. export default {
  18. data() {
  19. return {
  20. orderId: ''
  21. }
  22. },
  23. onLoad(options) {
  24. this.orderId = options.orderId
  25. },
  26. methods: {
  27. // 查看订单
  28. goToOrderList() {
  29. // uni.navigateTo({
  30. // url: '/pagesMain/orderList?type=1'
  31. // });
  32. uni.navigateTo({
  33. url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
  34. });
  35. },
  36. // 返回首页
  37. goToIndex() {
  38. uni.switchTab({
  39. url: '/pages/index/index'
  40. });
  41. },
  42. }
  43. }
  44. </script>
  45. <style lang="less" scoped>
  46. page {
  47. width: 100%;
  48. height: 100%;
  49. }
  50. .container {
  51. width: 100%;
  52. height: 100%;
  53. background-color: #F3F3F3;
  54. position: absolute;
  55. .pay-icon {
  56. width: 100%;
  57. height: 120px;
  58. margin-top: 50px;
  59. float: left;
  60. text-align: center;
  61. .iconqueding {
  62. color: #52A63A;
  63. font-size: 120px;
  64. font-size: 240px;
  65. line-height: 120px;
  66. }
  67. }
  68. .pay-title {
  69. width: 100%;
  70. height: 20px;
  71. float: left;
  72. margin: 16px 0 20px 0;
  73. font-size: 16px;
  74. font-family: PingFang SC;
  75. color: #333333;
  76. line-height: 20px;
  77. text-align: center;
  78. }
  79. .pay-text {
  80. width: 100%;
  81. float: left;
  82. box-sizing: border-box;
  83. padding: 0 60px;
  84. font-size: 13px;
  85. font-family: PingFang SC;
  86. color: #666666;
  87. line-height: 22px;
  88. text-align: center;
  89. }
  90. .pay-handle {
  91. width: 230px;
  92. height: 100px;
  93. float: left;
  94. position: absolute;
  95. bottom: 60px;
  96. left: 50%;
  97. transform: translateX(-50%);
  98. .button1 {
  99. // background-color: #52A63A;
  100. margin-bottom: 12px;
  101. float: left;
  102. width: 100%;
  103. height: 34px;
  104. }
  105. .button2 {
  106. color: #52A63A !important;
  107. border-color: #52A63A !important;
  108. background-color: #F3F3F3 !important;
  109. float: left;
  110. width: 100%;
  111. height: 34px;
  112. }
  113. }
  114. }
  115. </style>