| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 | 
							- <script>
 
- 	export default {
 
- 		onLaunch: function() {
 
- 			console.log('App Launch')
 
- 		},
 
- 		onShow: function() {
 
- 			console.log('App Show')
 
- 		},
 
- 		onHide: function() {
 
- 			console.log('App Hide')
 
- 		}
 
- 	}
 
- </script>
 
- <style lang="stylus">
 
- 	/*** 每个页面公共css ***/
 
- 	/*** H5方法 ***/
 
- 	/* #ifdef WEB */
 
- 	html,body{
 
- 		width: 100%;
 
- 		height: 100%;
 
- 		flex:1;
 
- 		display: flex;
 
- 		flex-direction: column;
 
- 		overflow: hidden;
 
- 		background: #f5f5f5;
 
- 		font-family: PingFang SC;
 
- 		font-weight: 400;
 
- 		font-size: 30rpx;
 
- 		color: #333;
 
- 		uni-app{
 
- 			flex:1;
 
- 			display: flex;
 
- 			flex-direction: column;
 
- 			overflow: hidden;
 
- 			uni-page{
 
- 				flex:1;
 
- 				display: flex;
 
- 				flex-direction: column;
 
- 				overflow: hidden;
 
- 				uni-page-wrapper{
 
- 					flex:1;
 
- 					display: flex;
 
- 					flex-direction: column;
 
- 					overflow: hidden;
 
- 					uni-page-body{
 
- 						flex:1;
 
- 						display: flex;
 
- 						flex-direction: column;
 
- 						overflow: hidden;
 
- 					}
 
- 				}
 
- 			}
 
- 		}
 
- 	}
 
- 	/* #endif */
 
- 	
 
- 	/*** 微信方法 ***/
 
- 	/* #ifdef MP-WEIXIN */
 
- 	page {
 
- 		height: 100%;
 
- 		width: 100%;
 
- 		display: flex;
 
- 		flex-direction: column;
 
- 		overflow: hidden;
 
- 		background: #f5f5f5;
 
- 		font-family: PingFang SC;
 
- 		font-weight: 400;
 
- 		font-size: 30rpx;
 
- 		color: #333;
 
- 	}
 
- 	view {
 
- 		margin: 0;
 
- 		padding: 0;
 
- 	}
 
- 	/* #endif */
 
- 	
 
- 	img {
 
- 		margin: 0;
 
- 		padding: 0;
 
- 		display: block;
 
- 	}
 
- 	/*每个页面公共css */
 
- 	// @import './styles/index.styl'
 
- </style>
 
 
  |