完成搜索页面
This commit is contained in:
@@ -55,6 +55,7 @@ import { getLocation } from '@/common/wechat-web';
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
query: this.$route.query,
|
||||
containerHeight: 0,
|
||||
keyword: '',
|
||||
mode: 'list',
|
||||
@@ -76,7 +77,11 @@ export default {
|
||||
const { offsetHeight } = this.root.$refs.tabbar.$el;
|
||||
this.containerHeight = window.innerHeight - this.$refs.topbar.offsetHeight - offsetHeight - 20;
|
||||
})
|
||||
|
||||
|
||||
if(this.query.search){
|
||||
this.keyword = this.query.search;
|
||||
}
|
||||
|
||||
this.getTempleList();
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user