success.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <template>
  2. <view class="content">
  3. <app-header @back="back">在线预约</app-header>
  4. <view class="main">
  5. <view class="icon"></view>
  6. <view class="text">预约成功</view>
  7. <view class="info text"><view class="dot"></view>{{licensePlateNumber}}</view>
  8. <view class="info text"><view class="dot"></view>{{date}}</view>
  9. <view class="info text"><view class="dot"></view>{{orgName}}</view>
  10. <view class="backIndex" @click="goHome">返回首页</view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import { HOME_INDEX, CAR_INDEX, MONITOR_INDEX, LIVE_INDEX } from '@/config/constants'
  16. import appHeader from '@/pages/components/header/header.vue'
  17. export default {
  18. components: {appHeader},
  19. data() {
  20. return {
  21. licensePlateNumber: null,
  22. date: null,
  23. orgName: null,
  24. }
  25. },
  26. onLoad(options) {
  27. console.log(options);
  28. this.licensePlateNumber = options.licensePlateNumber
  29. this.date = options.date
  30. this.orgName = options.orgName
  31. },
  32. methods: {
  33. goHome(){
  34. getApp().globalData.tabIndex = HOME_INDEX
  35. uni.redirectTo({
  36. url: '/pages/home/home'
  37. })
  38. },
  39. back() {
  40. getApp().globalData.tabIndex = CAR_INDEX
  41. uni.redirectTo({
  42. url: '/pages/carManager/carManager'
  43. })
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .main {
  50. background-color: #f0f1f2;
  51. height: 100vh;
  52. display: flex;
  53. flex-direction: column;
  54. justify-content: flex-start;
  55. align-items: center;
  56. .icon {
  57. margin-top: 100px;
  58. background: url('~@/static/success.png') no-repeat;
  59. background-size: 100% 100%;
  60. width: calc(464px * 0.6);
  61. height: calc(368px * 0.6);
  62. }
  63. .text {
  64. width: 100%;
  65. font-size: 25px;
  66. text-align: center;
  67. }
  68. .backIndex {
  69. border-radius: 50px 50px;
  70. background-color: #344ec3;
  71. margin-top: 30px;
  72. width: 70%;
  73. height: 50px;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. font-size: 20px;
  78. color: white;
  79. }
  80. .dot {
  81. display: inline-block;
  82. background-color: #344ec3;
  83. border-radius: 10px 10px;
  84. width: 10px;
  85. height: 10px;
  86. }
  87. }
  88. </style>