Service.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div v-if="$config.date" v-show="show" class="service">
  3. <div class="container">
  4. <span class="close" @click="show = false"></span>
  5. <img src="~assets/images/service/banner_pic_weihu.png" alt="">
  6. <div class="content">
  7. <div class="text">Our website is under maintenance at <b>{{ $config.date }}</b>, lasting about <b>{{ $config.time }}</b>.</div>
  8. <div class="text">If there are something wrong, please try later. Thanks for your support.</div>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. show: true
  18. }
  19. }
  20. }
  21. </script>
  22. <style lang="scss" scoped>
  23. .service {
  24. position: fixed;
  25. z-index: 9;
  26. bottom: 20px;
  27. width: 100%;
  28. }
  29. .container {
  30. position: relative;
  31. display: flex;
  32. align-items: center;
  33. max-width: 870px;
  34. width: 100%;
  35. margin: 0 auto;
  36. padding: 23px 36px 23px 36px;
  37. background-color: #fff;
  38. border-radius: 4px;
  39. box-shadow: 0px 2px 20px 0px rgba(0,0,0,0.12);
  40. }
  41. .content {
  42. display: inline-block;
  43. margin-left: 26px;
  44. vertical-align: middle;
  45. }
  46. .close {
  47. position: absolute;
  48. top: 0;
  49. right: 0;
  50. display: inline-block;
  51. width: 34px;
  52. height: 34px;
  53. background: url(~assets/images/service/banner_btn_close.png) center no-repeat;
  54. cursor: pointer;
  55. }
  56. .text {
  57. font-size: 16px;
  58. color: #333;
  59. line-height: 22px;
  60. }
  61. .clear {
  62. clear: both;
  63. }
  64. @media screen and (max-width: 575px){
  65. .container {
  66. padding: 15px 10px;
  67. }
  68. .content {
  69. margin-left: 15px;
  70. }
  71. .text {
  72. font-size: 14px;
  73. line-height: 20px;
  74. }
  75. .close {
  76. width: 24px;
  77. height: 24px;
  78. }
  79. }
  80. </style>