1234567891011121314151617181920212223242526272829303132333435 |
- <template>
- <view class="page-module" :class="type">
- <slot></slot>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- type:'mobile'
- };
- },
- methods: {
- },
- mounted() {
- this.getSystemInfo(this,(type)=>{
- this.type = type
- })
- },
- }
- </script>
- <style lang="scss">
- .page-module {
- height: 100%;
- &.mobile {
- padding-top: $navBarHeight;
- }
- &.home-container.pc {
- padding-top: 100rpx;
- }
- }
- </style>
|