paySuccess.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view class="content">
  3. <image class="success-icon" src="../../static/img/paySuccess.png" mode=""></image>
  4. <text class="tit">支付成功</text>
  5. <view class="btn-group">
  6. <!-- <navigator :url="'/pages/order/orderDetail?id=' + orderId" 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. orderId: ''
  16. };
  17. },
  18. onLoad(opt) {
  19. // 保存订单号
  20. this.orderId = opt.orderid;
  21. },
  22. methods: {}
  23. };
  24. </script>
  25. <style lang="scss">
  26. .content {
  27. display: flex;
  28. flex-direction: column;
  29. justify-content: center;
  30. align-items: center;
  31. }
  32. .success-icon {
  33. margin-top: 100rpx;
  34. width: 302rpx;
  35. height: 320rpx;
  36. }
  37. .tit {
  38. font-size: 32rpx;
  39. font-family: PingFang SC;
  40. font-weight: 500;
  41. color: #333333;
  42. margin-top: 40rpx;
  43. }
  44. .btn-group {
  45. padding-top: 100upx;
  46. }
  47. .mix-btn {
  48. margin-top: 30upx;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. width: 300rpx;
  53. height: 78rpx;
  54. border: 2rpx solid #303030;
  55. border-radius: 10rpx;
  56. font-size: $font-lg;
  57. color: #fff;
  58. background-color: $base-color;
  59. border-radius: 10upx;
  60. &.hollow {
  61. background: #fff;
  62. color: #303133;
  63. border: 1px solid #ccc;
  64. }
  65. }
  66. </style>