Skip to content

Commit 6e6a379

Browse files
committed
updated: mobile style
1 parent 69cef26 commit 6e6a379

File tree

4 files changed

+71
-13
lines changed

4 files changed

+71
-13
lines changed

src/components/layout/PageHeader.vue

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,20 @@
153153
border-radius: 4px;
154154
margin-right: 16px;
155155
}
156-
.content {
156+
.content, .headerContent {
157157
flex: auto;
158158
color: rgba(0,0,0,.45);
159159
line-height: 22px;
160+
161+
.link {
162+
margin-top: 16px;
163+
line-height: 24px;
164+
165+
a {
166+
font-size: 14px;
167+
margin-right: 32px;
168+
}
169+
}
160170
}
161171
.extra {
162172
flex: 0 1 auto;
@@ -188,8 +198,18 @@
188198
flex: 0 1 25%;
189199
margin: 0 2% 8px 0;
190200
}
191-
.content {
201+
.content, .headerContent {
192202
flex: 0 1 70%;
203+
204+
.link {
205+
margin-top: 16px;
206+
line-height: 24px;
207+
208+
a {
209+
font-size: 14px;
210+
margin-right: 10px;
211+
}
212+
}
193213
}
194214
.extra {
195215
flex: 1 1 auto;

src/components/layout/PageView.vue

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,25 @@
5656
</script>
5757

5858
<style lang="scss" scoped>
59+
.extra-img {
60+
margin-top: -60px;
61+
text-align: center;
62+
width: 195px;
63+
64+
img {
65+
width: 100%;
66+
}
67+
}
68+
69+
.mobile {
5970
.extra-img{
60-
margin-top: -60px;
61-
text-align: center;
62-
width: 195px;
71+
margin-top: 0;
72+
text-align: center;
73+
width: 96px;
6374
64-
img{
65-
width: 100%;
66-
}
75+
img{
76+
width: 100%;
77+
}
6778
}
79+
}
6880
</style>

src/views/account/settings/Index.vue

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<a-card :bordered="false" :bodyStyle="{ padding: '16px 0', height: '100%' }" :style="{ height: '100%' }">
3-
<div class="account-settings-info-main">
3+
<div class="account-settings-info-main" :class="device">
44
<div class="account-settings-info-left">
55
<a-menu
6-
mode="inline"
7-
:style="{ border: '0' }"
6+
:mode="device == 'mobile' ? 'horizontal' : 'inline'"
7+
:style="{ border: '0', width: device == 'mobile' ? '560px' : 'auto'}"
88
:defaultSelectedKeys="defaultSelectedKeys"
99
type="inner"
1010
@openChange="onOpenChange"
@@ -48,7 +48,8 @@
4848

4949
<script>
5050
import PageLayout from '@/components/layout/PageLayout'
51-
import RouteView from "@/components/layout/RouteView";
51+
import RouteView from "@/components/layout/RouteView"
52+
import { mapState } from 'vuex'
5253
5354
export default {
5455
components: {
@@ -57,6 +58,9 @@
5758
},
5859
data () {
5960
return {
61+
// horizontal inline
62+
mode: 'inline',
63+
6064
openKeys: [],
6165
defaultSelectedKeys: [],
6266
@@ -81,6 +85,11 @@
8185
pageTitle: ''
8286
}
8387
},
88+
computed: {
89+
...mapState({
90+
device: state => state.app.device,
91+
})
92+
},
8493
created () {
8594
this.updateMenu()
8695
},
@@ -103,6 +112,22 @@
103112
height: 100%;
104113
overflow: auto;
105114
115+
&.mobile {
116+
display: block;
117+
118+
.account-settings-info-left {
119+
border-right: unset;
120+
border-bottom: 1px solid #e8e8e8;
121+
width: 100%;
122+
height: 48px;
123+
overflow-x: hidden;
124+
overflow-y: auto;
125+
}
126+
.account-settings-info-right {
127+
padding: 20px 40px;
128+
}
129+
}
130+
106131
.account-settings-info-left {
107132
border-right: 1px solid #e8e8e8;
108133
width: 224px;
@@ -124,4 +149,5 @@
124149
}
125150
}
126151
}
152+
127153
</style>

src/views/list/search/SearchLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<div class="search-head">
44
<div class="search-input">
5-
<a-input-search style="width: 522px" placeholder="请输入..." size="large" enterButton="搜索" />
5+
<a-input-search style="width: 80%; max-width: 522px;" placeholder="请输入..." size="large" enterButton="搜索" />
66
</div>
77
<div style="padding: 0 24px">
88
<a-tabs :tabBarStyle="{margin: 0}" @change="callback" :activeKey="activeKey">

0 commit comments

Comments
 (0)