default.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. html
  2. <template>
  3. <div class="default-page">
  4. <img :src="getImagePath('default.png')" alt="Image" class="mimg" />
  5. <p class="mp">{{ description }}</p>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. description: "酒店预定系统8月15正式开放"
  13. };
  14. },
  15. methods: {
  16. getImagePath(imageName) {
  17. return require(`@/static/images/${imageName}`);
  18. }
  19. }
  20. };
  21. </script>
  22. <style lang="scss" scoped>
  23. .default-page {
  24. display: flex;
  25. flex-direction: column;
  26. justify-content: center;
  27. align-items: center;
  28. height: 100vh;
  29. text-align: center;
  30. background-color: #fff;
  31. .mimg {
  32. height: 50%;
  33. width: auto;
  34. margin-bottom: 20rpx;
  35. }
  36. .mp {
  37. opacity: 1;
  38. font-size: 30rpx;
  39. font-weight: 400;
  40. line-height: 2.8rem;
  41. height: 50%;
  42. color: rgba(87, 146, 240, 1);
  43. text-align: center;
  44. vertical-align: top;
  45. }
  46. }
  47. @media screen and (orientation: landscape) {
  48. .default-page {
  49. flex-direction: row;
  50. .mimg {
  51. width: 50%;
  52. height: auto;
  53. }
  54. .mp {
  55. margin: 1rem;
  56. }
  57. }
  58. }
  59. </style>