This commit is contained in:
asd 2019-11-29 10:52:00 +08:00
parent a19a7eb80d
commit 892327cdda

View File

@ -3,9 +3,9 @@
<van-popup v-model="show" position="top" :style="{ height: '2.82rem' }">
<div style="height:0.88rem"></div>
<div class="mnuelist">
<div>首页</div>
<div>我的主页</div>
<div>退出登录</div>
<div @click="tab(0)">首页</div>
<div @click="tab(1)">我的主页</div>
<div @click="tab(2)">退出登录</div>
</div>
</van-popup>
<div class="head">
@ -105,8 +105,27 @@ export default {
shuru() {
window.console.log(this.serch);
this.$router.push({
path: `/indexfind?word=`+this.serch
path: `/indexfind?word=` + this.serch
});
},
tab(e) {
switch (e) {
case 0:
this.$router.push({
path: `/index`
});
break
case 1:
this.$router.push({
path: `/PersonalHomepage`
});
break
case 2:
this.$router.push({
path: `/login`
});
break
}
}
}
};