paySuccess.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="content">
  3. <image class="success-icon" src="../../static/img/paySuccess.png" mode=""></image>
  4. <text class="tit">订单支付成功</text>
  5. <view class="btn-group">
  6. <navigator url="/pages/order/order?state=1" open-type="redirect" class="mix-btn">查看订单</navigator>
  7. <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. type: 2 //1为兑换支付成功2为预购成功
  16. };
  17. },
  18. onLoad(opt) {
  19. // 保存订单号
  20. // if ('type' in opt) {
  21. // this.type = opt.type;
  22. // }
  23. // if (this.type == 1) {
  24. // uni.setNavigationBarTitle({
  25. // title: '兑换成功'
  26. // });
  27. // }
  28. // if (this.type == 2) {
  29. // uni.setNavigationBarTitle({
  30. // title: '预约成功'
  31. // });
  32. // }
  33. },
  34. methods: {}
  35. };
  36. </script>
  37. <style lang="scss">
  38. .content {
  39. display: flex;
  40. flex-direction: column;
  41. justify-content: center;
  42. align-items: center;
  43. }
  44. .success-icon {
  45. margin-top: 100rpx;
  46. width: 302rpx;
  47. height: 320rpx;
  48. }
  49. .tit {
  50. margin-top: 40rpx;
  51. font-size: 32rpx;
  52. font-family: PingFang SC;
  53. font-weight: bold;
  54. color: #333333;
  55. }
  56. .btn-group {
  57. padding-top: 130rpx;
  58. display: flex;
  59. justify-content: flex-start;
  60. }
  61. .mix-btn {
  62. margin-top: 30upx;
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. width: 301rpx;
  67. height: 78rpx;
  68. background: #EF0E74;
  69. border-radius: 10rpx;
  70. font-size: $font-lg;
  71. font-size: 30rpx;
  72. font-family: PingFang SC;
  73. font-weight: 500;
  74. color: #ffffff;
  75. &.hollow {
  76. margin-left: 36rpx;
  77. background: #fff;
  78. color: #EF0E74;
  79. border: 1px solid #EF0E74;
  80. }
  81. }
  82. </style>