12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <script>
- export default {
- onLaunch: function() {
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- page {
- min-height: 100%;
- display: flex;
- background: #fff;
- }
-
- /* #ifdef MP-BAIDU */
- page {
- width: 100%;
- height: 100%;
- display: block;
- }
- /* #endif */
-
- /* #ifdef MP-ALIPAY */
- page {
- min-height: 100vh;
- }
-
- /* #endif */
-
- /* 原生组件模式下需要注意组件外部样式 */
- m-input {
- width: 100%;
- min-height: 100%;
- display: flex;
- }
-
- .content {
- display: flex;
- flex: 1;
- flex-direction: column;
- background-color: #fff;
- padding: 20upx;
- }
- </style>
|