master
xy 2 years ago
parent 74a509c812
commit 1513287048

@ -64,7 +64,7 @@
<div class="history__word">
<div class="history__word--top">常用搜索</div>
<div class="history__word--bottom">
<span style="cursor: pointer;" v-for="(i, index) in ['奖学金', '集体户口', '助学金', '党建']" @click="inputValue = i">{{ i }}{{ index !== 3 ? '&nbsp|&nbsp' : '' }}</span>
<span style="cursor: pointer;" v-for="(i, index) in ['奖学金', '集体户口', '助学金', '党建']" @click="$store.commit('reception/SET_SELECTED',{ key: 'keyword', value: i })">{{ i }}{{ index !== 3 ? '&nbsp|&nbsp' : '' }}</span>
</div>
</div>
</div>
@ -116,7 +116,13 @@ export default {
this.searchType = e.key
},
search () {
this.$router.push('/index/list1')
if (this.$route.fullPath === '/index/home') {
this.$router.push('/index/list1')
return
}
if (this.$route.fullPath === '/index/list1') {
window.getMaterial()
}
// if (this.searchType === 'keyword') {
// this.$store.commit('reception/SET_SELECTED',{ key: 'jianshu', value: '' })
// this.$store.commit('reception/SET_SELECTED',{ key: 'keyword', value: this.inputValue })

Loading…
Cancel
Save