paySuccess.vue 1.5 KB

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