123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <script>
- export default {
- onLoad() {
- this.$store.dispatch('user/GetInfo'); // 获取用户信息
- },
- };
- </script>
- <style lang="scss">
- /*每个页面公共css */
- // #ifdef APP-PLUS
- /*第一个view继承高度100%*/
- page {
- height: 100%;
- & > uni-view {
- height: 100%;
- background-color: #f8f8f8;
- /*ios底部安全距离-padding*/
- padding-bottom: env(safe-area-inset-bottom);
- box-sizing: border-box;
- }
- }
- // #endif
- // #ifdef H5
- /*第一个view继承高度100%*/
- uni-page-body {
- height: 100%;
- & > uni-view {
- height: 100%;
- background-color: #f8f8f8;
- /*ios底部安全距离-padding*/
- padding-bottom: env(safe-area-inset-bottom);
- box-sizing: border-box;
- }
- }
- // #endif
- view {
- box-sizing: border-box;
- }
- @import 'uview-ui/index.scss';
- @import '@/static/styles/uview.scss';
- @import '@/static/styles/index.scss';
- </style>
|