-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.vue
More file actions
42 lines (39 loc) · 838 Bytes
/
App.vue
File metadata and controls
42 lines (39 loc) · 838 Bytes
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
<script>
export default {
onLaunch: function() {
console.log('App Launch');
//移除头部栏
if(document.getElementsByTagName('uni-page-head')[0]){
document.getElementsByTagName('uni-page-head')[0].remove();
}
},
onShow: function() {
console.log('App Show')
if(document.getElementsByTagName('uni-page-head')[0]){
document.getElementsByTagName('uni-page-head')[0].remove();
}
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/* 加上因为css背景图片的相对路径 */
/*每个页面公共css */
* {
margin: 0;
padding: 0;
}
page{
// background: $purple;
height: 100%;
width: 100%;
}
page {
background-image: url("./static/image/bg.jpg");
background-repeat:no-repeat;
background-size:100% 100%;
-moz-background-size:100% 100%;
}
</style>