paySuccess.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="content">
  3. <image class="success-icon" src="../../static/img/paySuccess1.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. // navto(url) {
  36. // uni.navigateTo({
  37. // url,
  38. // fail
  39. // })
  40. // }
  41. }
  42. };
  43. </script>
  44. <style lang="scss">
  45. .content {
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. align-items: center;
  50. }
  51. .success-icon {
  52. margin-top: 100rpx;
  53. width: 302rpx;
  54. height: 320rpx;
  55. }
  56. .tit {
  57. margin-top: 40rpx;
  58. font-size: 32rpx;
  59. font-family: PingFang SC;
  60. font-weight: bold;
  61. color: #333333;
  62. }
  63. .btn-group {
  64. padding-top: 130rpx;
  65. display: flex;
  66. justify-content: flex-start;
  67. }
  68. .mix-btn {
  69. margin-top: 30upx;
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. width: 301rpx;
  74. height: 78rpx;
  75. background: #303030;
  76. border-radius: 10rpx;
  77. font-size: 30rpx;
  78. font-weight: 500;
  79. color: #fff;
  80. &.hollow {
  81. margin-left: 36rpx;
  82. background: #fff;
  83. color: #303030;
  84. border: 2px solid #303030;
  85. }
  86. }
  87. </style>