|
@@ -3,9 +3,7 @@
|
|
|
<div class="hc-home-input-box">
|
|
|
<div class="hc-home-content">
|
|
|
<div class="hc-slogan-icon">
|
|
|
- <img class="logo" :src="ImgText1" alt="" @click="getImgText(2)" v-if="ImgTextIndex === 1">
|
|
|
- <img class="logo" :src="ImgText2" alt="" @click="getImgText(3)" v-if="ImgTextIndex === 2">
|
|
|
- <img class="logo" :src="ImgText3" alt="" @click="getImgText(1)" v-if="ImgTextIndex === 3">
|
|
|
+ <img class="logo" :src="ImgText3" alt="">
|
|
|
</div>
|
|
|
<SearchInput placeholder="请输入您想查找的内容" v-model="searchKey" @input="SearchKeyInput"/>
|
|
|
<div class="home-link-box">
|
|
@@ -32,8 +30,6 @@
|
|
|
import {ref,watch} from "vue";
|
|
|
import {useAppStore} from "~src/store";
|
|
|
import SearchInput from '~com/home/SearchInput.vue'
|
|
|
-import ImgText1 from "~src/assets/view/text-1.png";
|
|
|
-import ImgText2 from "~src/assets/view/text-2.png";
|
|
|
import ImgText3 from "~src/assets/view/text-3.png";
|
|
|
|
|
|
//变量
|
|
@@ -52,13 +48,6 @@ const searchKey = ref('')
|
|
|
const SearchKeyInput = (value) => {
|
|
|
searchKey.value = value
|
|
|
}
|
|
|
-
|
|
|
-//切换图标
|
|
|
-const ImgTextIndex = ref(3)
|
|
|
-const getImgText = (index) => {
|
|
|
- ImgTextIndex.value = index
|
|
|
-}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|