paySuccess.vue 1.8 KB

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