正在显示
1 个修改的文件
包含
113 行增加
和
10 行删除
1 | <script setup> | 1 | <script setup> |
2 | import { ref } from 'vue' | 2 | import { ref } from 'vue' |
3 | const active = ref(0) | 3 | const active = ref(0) |
4 | - | ||
5 | - | 4 | +const showCenter = ref(false); |
5 | +const showPopup = () => { | ||
6 | + console.log(111) | ||
7 | + showCenter.value = true; | ||
8 | +}; | ||
6 | </script> | 9 | </script> |
7 | <template> | 10 | <template> |
8 | <div class="right"> | 11 | <div class="right"> |
9 | <div class="biti">账号管理</div> | 12 | <div class="biti">账号管理</div> |
10 | <div class="container"> | 13 | <div class="container"> |
11 | <van-tabs v-model:active="active" line-width="0px"> | 14 | <van-tabs v-model:active="active" line-width="0px"> |
12 | - <van-tab title="基本信息" class="box">基本信息</van-tab> | 15 | + <van-tab title="基本信息" class="box"> |
16 | + <div class="lie"> | ||
17 | + <div>姓名</div> | ||
18 | + <div class="lin">XXX</div> | ||
19 | + </div> | ||
20 | + <div class="lie"> | ||
21 | + <div>性别</div> | ||
22 | + <div class="lin"> | ||
23 | + <input type="radio" name="value" value="男" checked="checked">男 | ||
24 | + <input type="radio" name="value" value="女">女 | ||
25 | + </div> | ||
26 | + </div> | ||
27 | + <div class="lie"> | ||
28 | + <div>工号</div> | ||
29 | + <div class="lin">1111111</div> | ||
30 | + </div> | ||
31 | + <div class="lie"> | ||
32 | + <div>手机号</div> | ||
33 | + <div class="lin1">111 1111 1111</div> | ||
34 | + <div class="b" @click="showPopup">修改</div> | ||
35 | + </div> | ||
36 | + <div class="lie"> | ||
37 | + <div>单位</div> | ||
38 | + <div class="b2">+添加单位</div> | ||
39 | + <div class="b3">删除记录</div> | ||
40 | + </div> | ||
41 | + <div class="list" v-for="item in 3" :key="item"> | ||
42 | + <div class="list1">天津电子职业信息技术学院</div> | ||
43 | + <div class="list2">12320014</div> | ||
44 | + </div> | ||
45 | + <!-- 手机号登录 --> | ||
46 | + <div> | ||
47 | + <van-popup v-model:show="showCenter" close-icon="close" round :style="{ padding: '64px' }"> | ||
48 | + | ||
49 | + | ||
50 | + </van-popup>> | ||
51 | + </div> | ||
52 | + </van-tab> | ||
13 | <van-tab title="我的头像" class="box"> | 53 | <van-tab title="我的头像" class="box"> |
14 | <div class="banner"> | 54 | <div class="banner"> |
15 | <div class="zuo"> | 55 | <div class="zuo"> |
@@ -57,32 +97,85 @@ const active = ref(0) | @@ -57,32 +97,85 @@ const active = ref(0) | ||
57 | </template> | 97 | </template> |
58 | 98 | ||
59 | <style lang="scss"> | 99 | <style lang="scss"> |
60 | - | ||
61 | .right { | 100 | .right { |
62 | background-color: #e5e5e5; | 101 | background-color: #e5e5e5; |
63 | height: 535px; | 102 | height: 535px; |
64 | width: 100%; | 103 | width: 100%; |
65 | margin-top: 40px; | 104 | margin-top: 40px; |
105 | + | ||
106 | + .list { | ||
107 | + margin-top: 20px; | ||
108 | + border-bottom: #647476 1px dashed; | ||
109 | + border: opacity 0.4em; | ||
110 | + | ||
111 | + .list1 { | ||
112 | + color: black; | ||
113 | + margin-bottom: 10px; | ||
114 | + } | ||
115 | + | ||
116 | + .list2 { | ||
117 | + color: #bcbec8; | ||
118 | + } | ||
119 | + } | ||
120 | + | ||
121 | + .lie { | ||
122 | + display: flex; | ||
123 | + font-weight: 700; | ||
124 | + margin-top: 20px; | ||
125 | + | ||
126 | + input { | ||
127 | + margin-right: 15px; | ||
128 | + } | ||
129 | + | ||
130 | + .b { | ||
131 | + margin-left: 10px; | ||
132 | + color: #07a1f4; | ||
133 | + } | ||
134 | + | ||
135 | + .b2 { | ||
136 | + margin-left: 49px; | ||
137 | + color: #07a1f4; | ||
138 | + } | ||
139 | + | ||
140 | + .b3 { | ||
141 | + margin-left: 20px; | ||
142 | + color: #07a1f4; | ||
143 | + } | ||
144 | + | ||
145 | + .lin1 { | ||
146 | + margin-left: 34px; | ||
147 | + } | ||
148 | + | ||
149 | + .lin { | ||
150 | + margin-left: 50px; | ||
151 | + } | ||
152 | + } | ||
153 | + | ||
66 | .biti { | 154 | .biti { |
67 | font-weight: 800; | 155 | font-weight: 800; |
68 | font-size: 30px; | 156 | font-size: 30px; |
69 | margin: 30px 0px 20px 40px; | 157 | margin: 30px 0px 20px 40px; |
70 | } | 158 | } |
159 | + | ||
71 | .container { | 160 | .container { |
72 | display: flex; | 161 | display: flex; |
73 | flex-direction: row; | 162 | flex-direction: row; |
74 | margin: 40px; | 163 | margin: 40px; |
164 | + | ||
75 | // width: 100%; | 165 | // width: 100%; |
76 | .box { | 166 | .box { |
77 | width: 500px; | 167 | width: 500px; |
78 | - .banner{ | 168 | + |
169 | + .banner { | ||
79 | width: 640px; | 170 | width: 640px; |
80 | display: flex; | 171 | display: flex; |
81 | justify-content: space-between; | 172 | justify-content: space-between; |
173 | + | ||
82 | .zuo { | 174 | .zuo { |
83 | .pic { | 175 | .pic { |
84 | width: 300px; | 176 | width: 300px; |
85 | height: 300px; | 177 | height: 300px; |
178 | + | ||
86 | // background-color: pink; | 179 | // background-color: pink; |
87 | img { | 180 | img { |
88 | width: 100%; | 181 | width: 100%; |
@@ -90,6 +183,7 @@ const active = ref(0) | @@ -90,6 +183,7 @@ const active = ref(0) | ||
90 | } | 183 | } |
91 | 184 | ||
92 | } | 185 | } |
186 | + | ||
93 | .button { | 187 | .button { |
94 | margin-top: 30px; | 188 | margin-top: 30px; |
95 | padding: 3px 20px; | 189 | padding: 3px 20px; |
@@ -102,11 +196,14 @@ const active = ref(0) | @@ -102,11 +196,14 @@ const active = ref(0) | ||
102 | border-radius: 8px; | 196 | border-radius: 8px; |
103 | } | 197 | } |
104 | } | 198 | } |
199 | + | ||
105 | .you { | 200 | .you { |
106 | padding: 10px; | 201 | padding: 10px; |
107 | width: 250px; | 202 | width: 250px; |
108 | height: 120px; | 203 | height: 120px; |
109 | background-color: #fffdea; | 204 | background-color: #fffdea; |
205 | + border-radius: 3px; | ||
206 | + | ||
110 | .red { | 207 | .red { |
111 | padding-top: 10px; | 208 | padding-top: 10px; |
112 | padding-right: 10px; | 209 | padding-right: 10px; |
@@ -114,6 +211,7 @@ const active = ref(0) | @@ -114,6 +211,7 @@ const active = ref(0) | ||
114 | color: #f00; | 211 | color: #f00; |
115 | font-size: 14px; | 212 | font-size: 14px; |
116 | } | 213 | } |
214 | + | ||
117 | .button { | 215 | .button { |
118 | margin-top: 30px; | 216 | margin-top: 30px; |
119 | padding: 3px 20px; | 217 | padding: 3px 20px; |
@@ -129,6 +227,7 @@ const active = ref(0) | @@ -129,6 +227,7 @@ const active = ref(0) | ||
129 | } | 227 | } |
130 | } | 228 | } |
131 | } | 229 | } |
230 | + | ||
132 | .van-tab { | 231 | .van-tab { |
133 | background-color: #e5e5e5; | 232 | background-color: #e5e5e5; |
134 | } | 233 | } |
@@ -136,27 +235,32 @@ const active = ref(0) | @@ -136,27 +235,32 @@ const active = ref(0) | ||
136 | .ban { | 235 | .ban { |
137 | margin-top: 15px; | 236 | margin-top: 15px; |
138 | width: 400px; | 237 | width: 400px; |
238 | + | ||
139 | .old { | 239 | .old { |
140 | padding-bottom: 5px; | 240 | padding-bottom: 5px; |
141 | - span{ | ||
142 | 241 | ||
143 | - img{ | 242 | + span { |
243 | + | ||
244 | + img { | ||
144 | width: 70px; | 245 | width: 70px; |
145 | height: 30px; | 246 | height: 30px; |
146 | } | 247 | } |
147 | } | 248 | } |
148 | } | 249 | } |
250 | + | ||
149 | .toast { | 251 | .toast { |
150 | padding-top: 5px; | 252 | padding-top: 5px; |
151 | font-size: 12px; | 253 | font-size: 12px; |
152 | color: rgb(255, 41, 41); | 254 | color: rgb(255, 41, 41); |
153 | } | 255 | } |
154 | - input{ | 256 | + |
257 | + input { | ||
155 | width: 100%; | 258 | width: 100%; |
156 | height: 30px; | 259 | height: 30px; |
157 | border: none; | 260 | border: none; |
158 | } | 261 | } |
159 | } | 262 | } |
263 | + | ||
160 | .btn { | 264 | .btn { |
161 | margin-top: 35px; | 265 | margin-top: 35px; |
162 | padding: 3px 30px; | 266 | padding: 3px 30px; |
@@ -169,5 +273,4 @@ const active = ref(0) | @@ -169,5 +273,4 @@ const active = ref(0) | ||
169 | border-radius: 8px; | 273 | border-radius: 8px; |
170 | } | 274 | } |
171 | } | 275 | } |
172 | -} | ||
173 | -</style> | 276 | +}</style> |
-
请 注册 或 登录 后发表评论