-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
215 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
node_modules/ | ||
!node_modules/vux | ||
dist/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,72 @@ | ||
<template> | ||
<ul> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
<li>我的音乐</li> | ||
</ul> | ||
<div class="menu"> | ||
<div><img id='menu-top-pic' v-lazy="topPic" alt=""></div> | ||
<group> | ||
<cell title="我的消息" value=""></cell> | ||
<cell title="会员中心" value=""></cell> | ||
<cell title="商城" value=""></cell> | ||
<cell title="在线听歌免流量" value=""></cell> | ||
</group> | ||
<group> | ||
<cell title="我的消息" value=""></cell> | ||
<cell title="会员中心" value=""></cell> | ||
<cell title="商城" value=""></cell> | ||
<cell title="在线听歌免流量" value=""></cell> | ||
</group> | ||
<group> | ||
<cell title="我的消息" value=""></cell> | ||
<cell title="会员中心" value=""></cell> | ||
<cell title="商城" value=""></cell> | ||
<cell title="在线听歌免流量" value=""></cell> | ||
</group> | ||
<div class="menu-bottom"> | ||
<div class="menu-bottom-item">夜间模式</div> | ||
<div class="menu-bottom-item">设置</div> | ||
<div class="menu-bottom-item">退出</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { Cell } from "vux"; | ||
import { Group } from "vux"; | ||
const topPic = require("../../assets/logo.png"); | ||
export default { | ||
name:'Menu' | ||
name: "Menu", | ||
components: { | ||
Cell, | ||
Group | ||
}, | ||
data() { | ||
return { | ||
topPic: topPic | ||
}; | ||
} | ||
}; | ||
</script> | ||
|
||
<style> | ||
<style lang="scss" scoped> | ||
#menu-top-pic { | ||
width: 100%; | ||
} | ||
.menu { | ||
height: calc(100% - 51px); | ||
overflow: auto; | ||
} | ||
.menu-bottom { | ||
position: fixed; | ||
bottom: 0; | ||
display: flex; | ||
height: 50px; | ||
line-height: 50px; | ||
border-top: solid 1px #ddd; | ||
width: 100%; | ||
.menu-bottom-item { | ||
padding-left: 6rem; | ||
&:first-child { | ||
padding-left: 0; | ||
} | ||
} | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.