Commit 6e6a3792 by Sendya

updated: mobile style

parent 69cef260
...@@ -153,10 +153,20 @@ ...@@ -153,10 +153,20 @@
border-radius: 4px; border-radius: 4px;
margin-right: 16px; margin-right: 16px;
} }
.content { .content, .headerContent {
flex: auto; flex: auto;
color: rgba(0,0,0,.45); color: rgba(0,0,0,.45);
line-height: 22px; line-height: 22px;
.link {
margin-top: 16px;
line-height: 24px;
a {
font-size: 14px;
margin-right: 32px;
}
}
} }
.extra { .extra {
flex: 0 1 auto; flex: 0 1 auto;
...@@ -188,8 +198,18 @@ ...@@ -188,8 +198,18 @@
flex: 0 1 25%; flex: 0 1 25%;
margin: 0 2% 8px 0; margin: 0 2% 8px 0;
} }
.content { .content, .headerContent {
flex: 0 1 70%; flex: 0 1 70%;
.link {
margin-top: 16px;
line-height: 24px;
a {
font-size: 14px;
margin-right: 10px;
}
}
} }
.extra { .extra {
flex: 1 1 auto; flex: 1 1 auto;
......
...@@ -56,13 +56,25 @@ ...@@ -56,13 +56,25 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.extra-img{ .extra-img {
margin-top: -60px; margin-top: -60px;
text-align: center; text-align: center;
width: 195px; width: 195px;
img {
width: 100%;
}
}
.mobile {
.extra-img{
margin-top: 0;
text-align: center;
width: 96px;
img{ img{
width: 100%; width: 100%;
} }
} }
}
</style> </style>
\ No newline at end of file
<template> <template>
<a-card :bordered="false" :bodyStyle="{ padding: '16px 0', height: '100%' }" :style="{ height: '100%' }"> <a-card :bordered="false" :bodyStyle="{ padding: '16px 0', height: '100%' }" :style="{ height: '100%' }">
<div class="account-settings-info-main"> <div class="account-settings-info-main" :class="device">
<div class="account-settings-info-left"> <div class="account-settings-info-left">
<a-menu <a-menu
mode="inline" :mode="device == 'mobile' ? 'horizontal' : 'inline'"
:style="{ border: '0' }" :style="{ border: '0', width: device == 'mobile' ? '560px' : 'auto'}"
:defaultSelectedKeys="defaultSelectedKeys" :defaultSelectedKeys="defaultSelectedKeys"
type="inner" type="inner"
@openChange="onOpenChange" @openChange="onOpenChange"
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
<script> <script>
import PageLayout from '@/components/layout/PageLayout' import PageLayout from '@/components/layout/PageLayout'
import RouteView from "@/components/layout/RouteView"; import RouteView from "@/components/layout/RouteView"
import { mapState } from 'vuex'
export default { export default {
components: { components: {
...@@ -57,6 +58,9 @@ ...@@ -57,6 +58,9 @@
}, },
data () { data () {
return { return {
// horizontal inline
mode: 'inline',
openKeys: [], openKeys: [],
defaultSelectedKeys: [], defaultSelectedKeys: [],
...@@ -81,6 +85,11 @@ ...@@ -81,6 +85,11 @@
pageTitle: '' pageTitle: ''
} }
}, },
computed: {
...mapState({
device: state => state.app.device,
})
},
created () { created () {
this.updateMenu() this.updateMenu()
}, },
...@@ -103,6 +112,22 @@ ...@@ -103,6 +112,22 @@
height: 100%; height: 100%;
overflow: auto; overflow: auto;
&.mobile {
display: block;
.account-settings-info-left {
border-right: unset;
border-bottom: 1px solid #e8e8e8;
width: 100%;
height: 48px;
overflow-x: hidden;
overflow-y: auto;
}
.account-settings-info-right {
padding: 20px 40px;
}
}
.account-settings-info-left { .account-settings-info-left {
border-right: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8;
width: 224px; width: 224px;
...@@ -124,4 +149,5 @@ ...@@ -124,4 +149,5 @@
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<div class="search-head"> <div class="search-head">
<div class="search-input"> <div class="search-input">
<a-input-search style="width: 522px" placeholder="请输入..." size="large" enterButton="搜索" /> <a-input-search style="width: 80%; max-width: 522px;" placeholder="请输入..." size="large" enterButton="搜索" />
</div> </div>
<div style="padding: 0 24px"> <div style="padding: 0 24px">
<a-tabs :tabBarStyle="{margin: 0}" @change="callback" :activeKey="activeKey"> <a-tabs :tabBarStyle="{margin: 0}" @change="callback" :activeKey="activeKey">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment