You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

  1. <template>
  2. <div class="header-container">
  3. <!-- <ul class="header-nav">
  4. <li>
  5. <img src="~@/assets/images/top.png">
  6. <p>图书检索</p>
  7. </li>
  8. <li @click="toHotBook">
  9. <img src="~@/assets/images/top.png">
  10. <p>热门图书</p>
  11. </li>
  12. <li @click="toAuthor">
  13. <img src="~@/assets/images/top.png">
  14. <p>作者推荐</p>
  15. </li>
  16. <li @click="toDigital">
  17. <img src="~@/assets/images/top.png">
  18. <p>数字资源</p>
  19. </li>
  20. <li>
  21. <img src="~@/assets/images/top.png">
  22. <p>场馆导航</p>
  23. </li>
  24. </ul> -->
  25. <div class="header-text header-date">{{ nowDate }}</div>
  26. <!-- <div class="header-title"><h2>东西湖区图书馆</h2></div>
  27. <div class="header-text header-weather">
  28. 天气api: https://www.tianqi.com/plugin -->
  29. <!-- <iframe id="weather" width="210" scrolling="no" height="30" frameborder="0" allowtransparency="true" src="https://i.tianqi.com?c=code&id=34&color=%23FFFFFF&icon=1&py=wuhan&site=24" /> -->
  30. <!-- </div> -->
  31. </div>
  32. </template>
  33. <script>
  34. import { getCurrentTime } from '@/utils/index'
  35. export default {
  36. name: 'Header',
  37. data() {
  38. return {
  39. nowDate: ''
  40. }
  41. },
  42. created() {
  43. this.timer = setInterval(() => {
  44. this.nowDate = getCurrentTime()
  45. }, 1000)
  46. },
  47. mounted() {
  48. },
  49. methods: {
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. </style>