李志伟 3 anos atrás
pai
commit
c2f18833b6
1 arquivos alterados com 41 adições e 28 exclusões
  1. 41
    28
      src/pages/signup.vue

+ 41
- 28
src/pages/signup.vue Ver arquivo

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div>
2
+  <div class="signup-box">
3 3
     <img class="bgi" src="../../public/images/signup/bgi.jpg" />
4 4
     <div class="form">
5 5
       <div class="formItem">
@@ -167,40 +167,63 @@ export default {
167 167
 }
168 168
 </script>
169 169
 <style lang="scss" scoped>
170
+// * {
171
+//   margin: 0;
172
+//   padding: 0;
173
+// }
174
+
175
+.signup-box {
176
+  overflow: hidden;
177
+  height: 100%;
178
+}
179
+
170 180
 .bgi {
171
-  z-index: 1;
172 181
   width: 100%;
173 182
   position: absolute;
174 183
 }
175 184
 .form {
185
+  position: relative;
176 186
   color: #a6b1ab;
177
-  position: absolute;
178
-  margin-top: 18%;
179
-  z-index: 2;
187
+  margin-top: 80px;
188
+  padding: 0 8vw;
189
+  box-sizing: border-box;
190
+
191
+
180 192
   .formItem {
181
-    position: absolute;
182
-    width: 82vw;
183
-    height: 3vh;
184
-    line-height: 3vh;
185
-    margin: 6vw;
186
-    padding: 3vw;
193
+    width: 100%;
194
+    font-size: 16px;
195
+    line-height: 2.6em;
196
+    padding: 0 1em;
187 197
     border: 1px solid #4f5054;
188 198
     background-color: #212226;
199
+    box-sizing: border-box;
200
+
201
+    & + .formItem {
202
+      margin-top: 1.2em;
203
+    }
189 204
 
190 205
     & > label {
191 206
       display: inline-block;
192 207
       width: 4.5em;
193 208
     }
209
+    
194 210
     .duiqi {
195
-      background-color: #212226;
211
+      display: inline-block;
212
+      background-color: transparent;
196 213
       border: none;
197 214
       text-align: right;
198
-      float: right;
199
-      width: calc(100% - 7em);
215
+      width: calc(100% - 5em);
216
+      height: 2.6em;
217
+      line-height: 2.6em;
200 218
       overflow: hidden;
201 219
       text-overflow: ellipsis;
202 220
       white-space: nowrap;
221
+      vertical-align: middle;
222
+      padding: 0;
223
+      margin: 0;
224
+      outline: none;
203 225
     }
226
+
204 227
     .checkedImg {
205 228
       width: 16px;
206 229
       top: 2px;
@@ -213,21 +236,11 @@ export default {
213 236
     color: #696969;
214 237
   }
215 238
 
216
-  .name {
217
-    margin-top: 23%;
218
-  }
219
-  .phonediv {
220
-    margin-top: 40%;
221
-  }
222
-  .intendedProductdiv {
223
-    margin-top: 57%;
224
-  }
225
-  .addressdiv {
226
-    margin-top: 74%;
227
-  }
228 239
   .submit {
229
-    margin: 93% 0 0 27.5vw;
230
-    width: 45%;
240
+    display: block;
241
+    margin-top: 2em;
242
+    margin-left: auto;
243
+    margin-right: auto;
231 244
   }
232 245
 }
233 246
 </style>