paySuccess.vue 2.3 KB

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