paySuccess.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. };
  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: #303030;
  69. border-radius: 10rpx;
  70. font-size: 30rpx;
  71. font-weight: 500;
  72. color: #fff;
  73. &.hollow {
  74. margin-left: 36rpx;
  75. background: #fff;
  76. color: #303030;
  77. border: 2px solid #303030;
  78. }
  79. }
  80. </style>