-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
120 lines (112 loc) · 1.95 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<template>
<view class="container">
<AppNavigation></AppNavigation>
<audioBar></audioBar>
</view>
</template>
<script>
import { StackNavigator,DrawerNavigator,TabNavigator } from "vue-native-router";
import musicList from './src/musicList'
import audioBar from './src/audioBar'
import home from './src/home'
import localMusic from './src/localMusic'
import appTitle from './src/title'
import songSheet from './src/songSheet'
const Drawer = DrawerNavigator(
{
'首页音乐': {screen:songSheet},
本地音乐:localMusic,
list:musicList
},
{
initialRouteName: "首页音乐",
contentOptions: {
activeTintColor: "#e91e63"
},
}
);
const AppNavigation = StackNavigator(
{
Drawer: Drawer,
},
{
initialRouteName: "Drawer",
headerMode: "none"
}
)
export default {
data(){
return{
listArr:[],
musicIndex:'',
musicData:[],
growth:-250,
menuShow:false,
}
},
components: {musicList,audioBar,AppNavigation,songSheet },
}
</script>
<style>
.container {
width: 100%;
height: 100%;
}
.text-color-primary {
color: #fff;
}
.app-title {
position: relative;
width: 100%;
height: 60px;
paddingTop: 27px;
border-bottom-color: #ccc;
border-bottom-width: 1px;
background-color: #C62F2F;
}
.menu {
width: 30px;
height: 30px;
backgroundColor:#fff;
}
.menus {
width: 30px;
height: 30px;
position: absolute;
top: 27px;
z-index: 9;
}
.growth-animated-view {
position: absolute;
left: -250px;
width: 75%;
height: 100%;
backgroundColor: red;
top: 0;
}
.app-title-text {
color: #fff;
font-size: 20px;
text-align: center;
}
.camera {
width: 30px;
height: 30px;
}
.main {
width: 300px;
height: 300px;
marginTop:30px;
borderColor:#000;
borderWidth:1px;
display: flex;
justify-content: space-around;
align-items: center;
flex-direction:row;
}
.mainDiv1,.mainDiv2 {
width: 50px;
height: 50px;
backgroundColor: red;
}
</style>