fangmingyue 2 anos atrás
pai
commit
aaaa073841
2 arquivos alterados com 59 adições e 33 exclusões
  1. 17
    13
      src/pages/index/index.jsx
  2. 42
    20
      src/pages/index/index.less

+ 17
- 13
src/pages/index/index.jsx Ver arquivo

@@ -1,9 +1,10 @@
1 1
 import { Component } from 'react'
2
-import { View, Text, Input, Image } from '@tarojs/components'
3
-import { Form, FormItem, Button } from '@antmjs/vantui'
2
+import { View, Input, Image } from '@tarojs/components'
3
+import { Form, Button } from '@antmjs/vantui'
4 4
 import logo from '../../assets/image/logo.png';
5 5
 import user from '../../assets/image/user.png';
6 6
 import password from '../../assets/image/password.png';
7
+import WeChat from '../../assets/image/WeChat.png';
7 8
 import './index.less'
8 9
 
9 10
 export default (props) => {
@@ -14,8 +15,7 @@ export default (props) => {
14 15
           src={logo}
15 16
         />
16 17
       </View>
17
-
18
-      <Text className='txt-1'>欢迎登录霍山文明创建</Text>
18
+      <View className='index-txt'>欢迎登录霍山文明创城</View>
19 19
       <Form className='form'>
20 20
         <View className='index-3'>
21 21
           <Image src={user} className='img-2' />账号<Input className='input-1' placeholder='请输入您的登录账号' />
@@ -23,21 +23,25 @@ export default (props) => {
23 23
         <View className='index-3'>
24 24
           <Image src={password} className='img-2' />密码<Input className='input-1' placeholder='请输入您的登录密码' />
25 25
         </View>
26
-        {/* <FormItem label='账号' className='item'>
27
-            <Input className='input-1' placeholder='请输入您的登录账号' />
28
-          </FormItem>
29
-          <FormItem label='证件'>
30
-            <Input placeholder='请输入您的登录密码' />
31
-          </FormItem> */}
26
+        <Button
27
+          className='btn-1'
28
+        >
29
+          忘记密码?
30
+        </Button>
32 31
         <Button
33 32
           type='primary'
34
-          className='btn'
33
+          className='btn-2'
35 34
         >
36 35
           登录
37 36
         </Button>
38 37
       </Form>
39
-      <Text className='txt-2'>——其他登录方式——</Text>
40
-      <Text className='txt-3'>微信登录</Text>
38
+      <View className='index-txt2'>——其他登录方式——</View>
39
+      <View className='index-4'>
40
+        <Image className='img-3'
41
+          src={WeChat}
42
+        />
43
+      </View>
44
+      <View className='index-txt3'>微信登录</View>
41 45
     </View>
42 46
   )
43 47
 }

+ 42
- 20
src/pages/index/index.less Ver arquivo

@@ -1,55 +1,77 @@
1 1
 .index {
2
+  margin-top: 60px;
2 3
   .index-2 {
3 4
     width: 235px;
4 5
     height: 235px;
5 6
     margin: 0 auto;
7
+    .img-1 {
8
+      width: 235px;
9
+      height: 235px;
10
+    }
6 11
   }
7
-  .img-1 {
8
-    width: 235px;
9
-    height: 235px;
10
-  }
11
-  .txt-1 {
12
-    display: block;
13
-    width: 320px;
14
-    margin: 10px auto;
15
-    margin-bottom: 80px;
12
+  .index-txt {
13
+    text-align: center;
14
+    margin-bottom: 100px;
16 15
   }
17 16
   .form {
18 17
     width: 620px;
19 18
     .index-3 {
20 19
       display: flex;
21
-      margin-bottom: 26px;
20
+      border-bottom: 1px solid #e9eaea;
21
+      width: 600px;
22
+      margin: 26px auto;
23
+      padding-bottom: 30px;
24
+      margin-top: 60px;
22 25
       .img-2 {
23
-        margin-left: 100px;
24 26
         margin-right: 30px;
25 27
         width: 42px;
26 28
         height: 44px;
27 29
       }
28 30
       .input-1 {
31
+        color: rgb(174, 174, 174);
29 32
         margin-left: 15px;
33
+        padding-left: 20px;
30 34
         flex-direction: column;
31 35
         border-left: 1px solid black;
32 36
       }
33 37
     }
34
-    .btn {
35
-      width: 600px;
38
+    .btn-1 {
39
+      width: 190px;
40
+      height: 66px;
41
+      font-size: 28px;
42
+      color: #1a7565;
43
+      float: right;
44
+      margin-right: 72px;
45
+      margin-bottom: 104px;
46
+    }
47
+    .btn-2 {
48
+      width: 666px;
36 49
       margin: 80px auto;
37 50
       background-color: rgb(26, 117, 100);
38 51
       color: #fff;
39 52
     }
40 53
   }
41
-  .txt-2 {
54
+  .index-txt2 {
42 55
     font-size: 30px;
43 56
     color: rgb(174, 174, 174);
44
-    display: block;
45
-    width: 330px;
46 57
     margin: 10px auto;
58
+    text-align: center;
59
+    margin-top: 110px;
47 60
   }
48
-  .txt-3 {
61
+  .index-4 {
62
+    width: 100px;
63
+    height: 100px;
64
+    margin: 0 auto;
65
+    .img-3 {
66
+      width: 100px;
67
+      height: 100px;
68
+      margin-top: 8px;
69
+    }
70
+  }
71
+  .index-txt3 {
49 72
     font-size: 25px;
50 73
     color: rgb(174, 174, 174);
51
-    display: block;
52
-    width: 100px;
53
-    margin: 10px auto;
74
+    text-align: center;
75
+    margin: 30px auto;
54 76
   }
55 77
 }