Merge branch 'xuebaoxin' of pplokijuhyg/falvpingtai into master

This commit is contained in:
pplokijuhyg 2019-11-25 16:59:32 +08:00
commit a8b72ae9df
2 changed files with 90 additions and 21 deletions

View File

@ -1,35 +1,97 @@
<template> <template>
<div class="box"> <div class="box">
<div class="head"> <van-popup v-model="show" position="top" :style="{ height: '2.82rem' }" >
<img class="logo" src="" alt="" srcset=""> <div style="height:0.88rem"></div>
<div class="search"></div> <div class="list">
<div>首页</div>
<div>我的主页</div>
<div>退出登录</div>
</div>
</van-popup>
<div class="head">
<img class="logo" src alt srcset />
<div class="search">
<img src alt />
<input type="text" />
</div> </div>
<div class="mnue" @click="isshow">
<div></div>
<div></div>
<div></div>
</div>
</div>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.box { .box {
min-height: 100vh; min-height: 100vh;
background-color: #f6f6f6; background-color: #f6f6f6;
.head{ padding-top: 88px;
width: 100%; box-sizing: border-box;
height: 88px; .head {
background-color: #fff; position: fixed;
top: 0;
z-index: 9999;
width: 100%;
height: 88px;
background-color: #fff;
display: flex;
align-items: center;
.logo {
width: 115px;
height: 37px;
background-color: #000;
display: block;
margin-left: 30px;
}
.search {
margin-left: 24px;
width: 485px;
height: 60px;
background-color: #f0f0f0;
box-sizing: border-box;
border: 1px solid rgba(233, 233, 233, 1);
border-radius: 30px;
display: flex; display: flex;
align-items: center; align-items: center;
.logo{ > img {
width: 115px; margin-left: 23px;
height: 37px; width: 30px;
background-color: #000; height: 30px;
display: block; background-color: #000;
} }
.search{ > input {
width: 485px; margin-left: 21px;
height: 60px; color: #333;
background-color: #F0F0F0; font-size: 24px;
box-sizing: border-box; height: 26px;
border:1px solid rgba(233,233,233,1); border: none;
border-radius: 30px; background-color: #f0f0f0;
} }
}
.mnue {
display: flex;
flex-direction: column;
height: 15px;
width: 24px;
justify-content: space-between;
margin-left: 42px;
> div {
width: 100%;
height: 3px;
background-color: #95998f;
}
}
}
.list{
padding:26px;
height: 194px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
flex-direction: column;
color: #333;
font-size: 24px;
} }
} }
</style> </style>
@ -37,7 +99,14 @@
export default { export default {
name: "index", name: "index",
data() { data() {
return {}; return {
show:false
};
},
methods:{
isshow(){
this.show = !this.show
}
} }
}; };
</script> </script>

View File

@ -15,7 +15,7 @@ const router=new Router({
component: index component: index
}, },
{ {
path: '/ IndexArticleDetaill', path: '/IndexArticleDetaill',
component: IndexArticleDetail component: IndexArticleDetail
}, },
{ {