index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="home-styles-box">
  3. <div class="hc-home-bg-box">
  4. <img v-if="HomeTheme.bg" id="imagebox" :src="HomeTheme.bg" alt="" crossOrigin="anonymous">
  5. </div>
  6. <div class="hc-home-input-box">
  7. <div class="hc-home-content">
  8. <div class="hc-slogan-icon">
  9. <img class="logo" :src="ImgText3" alt="">
  10. </div>
  11. <SearchInput v-model="searchKey" placeholder="请输入您想查找的内容" @input="SearchKeyInput" />
  12. <div class="home-link-box">
  13. <span>他们都在搜索:</span>
  14. <div class="home-link">
  15. <router-link to="/data-fill/wbs">资料填报</router-link>
  16. </div>
  17. <div class="home-link">
  18. <router-link to="/data-fill/query">资料查询</router-link>
  19. </div>
  20. <div class="home-link">
  21. <router-link to="/ledger/query">日志填报</router-link>
  22. </div>
  23. <div class="home-link">
  24. <router-link to="/schedule/data">资料进度</router-link>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script setup>
  32. import { ref, watch } from 'vue'
  33. import { useAppStore } from '~src/store'
  34. import SearchInput from '~com/home/SearchInput.vue'
  35. import ImgText3 from '~src/assets/view/text-3.png'
  36. //变量
  37. const useAppState = useAppStore()
  38. const HomeTheme = ref(useAppState.getHomeTheme)
  39. //监听
  40. watch(() => [
  41. useAppState.getHomeTheme,
  42. ], ([theme]) => {
  43. HomeTheme.value = theme
  44. })
  45. //搜索
  46. const searchKey = ref('')
  47. const SearchKeyInput = (value) => {
  48. searchKey.value = value
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. @import "../../styles/view/home.scss";
  53. </style>
  54. <style lang="scss">
  55. .home-link a {
  56. color: inherit;
  57. text-decoration: none;
  58. }
  59. </style>