paySuccess.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. },
  21. onLoad(options) {
  22. this.orderId = options.orderId
  23. },
  24. methods: {
  25. // 查看订单
  26. goToOrderList() {
  27. // uni.navigateTo({
  28. // url: '/pagesMain/orderList?type=1'
  29. // });
  30. uni.navigateTo({
  31. url: '/pagesMain/orderDetail?orderId=' + this.orderId + '&orderStatus=' + 2
  32. });
  33. },
  34. // 返回首页
  35. goToIndex() {
  36. uni.switchTab({
  37. url: '/pages/index/index'
  38. });
  39. },
  40. }
  41. }
  42. </script>
  43. <style lang="less" scoped>
  44. page {
  45. width: 100%;
  46. height: 100%;
  47. }
  48. .container {
  49. width: 100%;
  50. height: 100%;
  51. background-color: #F3F3F3;
  52. position: absolute;
  53. .pay-icon {
  54. width: 100%;
  55. height: 120px;
  56. margin-top: 50px;
  57. float: left;
  58. text-align: center;
  59. .iconqueding {
  60. color: #52A63A;
  61. font-size: 120px;
  62. font-size: 240px;
  63. line-height: 120px;
  64. }
  65. }
  66. .pay-title {
  67. width: 100%;
  68. height: 20px;
  69. float: left;
  70. margin: 16px 0 20px 0;
  71. font-size: 16px;
  72. font-family: PingFang SC;
  73. color: #333333;
  74. line-height: 20px;
  75. text-align: center;
  76. }
  77. .pay-text {
  78. width: 100%;
  79. float: left;
  80. box-sizing: border-box;
  81. padding: 0 60px;
  82. font-size: 13px;
  83. font-family: PingFang SC;
  84. color: #666666;
  85. line-height: 22px;
  86. text-align: center;
  87. }
  88. .pay-handle {
  89. width: 230px;
  90. height: 100px;
  91. float: left;
  92. position: absolute;
  93. bottom: 60px;
  94. left: 50%;
  95. transform: translateX(-50%);
  96. .button1 {
  97. // background-color: #52A63A;
  98. margin-bottom: 12px;
  99. float: left;
  100. width: 100%;
  101. height: 34px;
  102. }
  103. .button2 {
  104. color: #52A63A !important;
  105. border-color: #52A63A !important;
  106. background-color: #F3F3F3 !important;
  107. float: left;
  108. width: 100%;
  109. height: 34px;
  110. }
  111. }
  112. }
  113. </style>