success.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view class="content">
  3. <image class="success-icon" src="https://hy.liuniu946.com/app/img/success.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: 200rpx;
  46. margin-left: -55rpx;
  47. width: 400rpx;
  48. height: 320rpx;
  49. }
  50. .tit {
  51. font-size: 40rpx;
  52. font-weight: 500;
  53. color: #333333;
  54. line-height: 40rpx;
  55. }
  56. .btn-group {
  57. padding-top: 130rpx;
  58. display: flex;
  59. justify-content: flex-start;
  60. }
  61. .mix-btn {
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. width: 301rpx;
  66. height: 78rpx;
  67. background: #f75022;
  68. border-radius: 10rpx;
  69. font-size: 30rpx;
  70. font-weight: 500;
  71. color: #fff;
  72. &.hollow {
  73. background: #fff;
  74. color: #f75022;
  75. border: 2px solid #f75022;
  76. }
  77. }
  78. </style>