success.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="backIndex" @click="goHome">返回首页</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import { HOME_INDEX, CAR_INDEX, MONITOR_INDEX, LIVE_INDEX } from '@/config/constants'
  13. import appHeader from '@/pages/components/header/header.vue'
  14. export default {
  15. components: {appHeader},
  16. methods: {
  17. goHome(){
  18. getApp().globalData.tabIndex = HOME_INDEX
  19. uni.redirectTo({
  20. url: '/pages/home/home'
  21. })
  22. },
  23. back() {
  24. getApp().globalData.tabIndex = CAR_INDEX
  25. uni.redirectTo({
  26. url: '/pages/carManager/carManager'
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .main {
  34. background-color: #f0f1f2;
  35. height: 100vh;
  36. display: flex;
  37. flex-direction: column;
  38. justify-content: flex-start;
  39. align-items: center;
  40. .icon {
  41. margin-top: 100px;
  42. background: url('~@/static/success.png') no-repeat;
  43. background-size: 100% 100%;
  44. width: calc(464px * 0.6);
  45. height: calc(368px * 0.6);
  46. }
  47. .text {
  48. width: 100%;
  49. font-size: 25px;
  50. text-align: center;
  51. }
  52. .backIndex {
  53. border-radius: 50px 50px;
  54. background-color: #344ec3;
  55. margin-top: 30px;
  56. width: 70%;
  57. height: 50px;
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. font-size: 20px;
  62. color: white;
  63. }
  64. }
  65. </style>