order-success.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="order-success">
  3. <image class="success-icon" src="../static/success.png" mode="widthFix"></image>
  4. <text class="success-title">订单提交成功</text>
  5. <text class="success-message">您的订单已提交,书嗨稍后将安排快递上门取书!</text>
  6. <view class="button-group">
  7. <u-button class="notify-button" :custom-style="{borderColor: '#07c160',width:'235rpx',
  8. color: '#07c160'}" type="default" @click="notifyStatusChange">状态变更通知</u-button>
  9. <u-button :custom-style="{background: '#07c160',width:'235rpx',
  10. color: '#ffffff'}" class="view-order-button" type="primary" @click="viewOrder">查看订单</u-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. methods: {
  17. notifyStatusChange() {
  18. // 处理状态变更通知逻辑
  19. console.log('状态变更通知')
  20. },
  21. viewOrder() {
  22. // 处理查看订单逻辑
  23. console.log('查看订单')
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .order-success {
  30. display: flex;
  31. flex-direction: column;
  32. align-items: center;
  33. background-color: #ffffff;
  34. padding: 34rpx 0 44rpx 0;
  35. .success-icon {
  36. width: 200rpx;
  37. height: 200rpx;
  38. }
  39. .success-title {
  40. font-family: PingFang SC;
  41. font-weight: 400;
  42. font-size: 40rpx;
  43. color: #333333;
  44. line-height: 107rpx;
  45. }
  46. .success-message {
  47. font-family: PingFang SC;
  48. font-weight: 400;
  49. font-size: 28rpx;
  50. color: #999999;
  51. margin-bottom: 40rpx;
  52. }
  53. .button-group {
  54. display: flex;
  55. justify-content: center;
  56. gap: 70rpx;
  57. }
  58. }
  59. </style>