fangmingyue 2 年之前
父節點
當前提交
aaaa073841
共有 2 個檔案被更改,包括 59 行新增33 行删除
  1. 17
    13
      src/pages/index/index.jsx
  2. 42
    20
      src/pages/index/index.less

+ 17
- 13
src/pages/index/index.jsx 查看文件

1
 import { Component } from 'react'
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
 import logo from '../../assets/image/logo.png';
4
 import logo from '../../assets/image/logo.png';
5
 import user from '../../assets/image/user.png';
5
 import user from '../../assets/image/user.png';
6
 import password from '../../assets/image/password.png';
6
 import password from '../../assets/image/password.png';
7
+import WeChat from '../../assets/image/WeChat.png';
7
 import './index.less'
8
 import './index.less'
8
 
9
 
9
 export default (props) => {
10
 export default (props) => {
14
           src={logo}
15
           src={logo}
15
         />
16
         />
16
       </View>
17
       </View>
17
-
18
-      <Text className='txt-1'>欢迎登录霍山文明创建</Text>
18
+      <View className='index-txt'>欢迎登录霍山文明创城</View>
19
       <Form className='form'>
19
       <Form className='form'>
20
         <View className='index-3'>
20
         <View className='index-3'>
21
           <Image src={user} className='img-2' />账号<Input className='input-1' placeholder='请输入您的登录账号' />
21
           <Image src={user} className='img-2' />账号<Input className='input-1' placeholder='请输入您的登录账号' />
23
         <View className='index-3'>
23
         <View className='index-3'>
24
           <Image src={password} className='img-2' />密码<Input className='input-1' placeholder='请输入您的登录密码' />
24
           <Image src={password} className='img-2' />密码<Input className='input-1' placeholder='请输入您的登录密码' />
25
         </View>
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
         <Button
31
         <Button
33
           type='primary'
32
           type='primary'
34
-          className='btn'
33
+          className='btn-2'
35
         >
34
         >
36
           登录
35
           登录
37
         </Button>
36
         </Button>
38
       </Form>
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
     </View>
45
     </View>
42
   )
46
   )
43
 }
47
 }

+ 42
- 20
src/pages/index/index.less 查看文件

1
 .index {
1
 .index {
2
+  margin-top: 60px;
2
   .index-2 {
3
   .index-2 {
3
     width: 235px;
4
     width: 235px;
4
     height: 235px;
5
     height: 235px;
5
     margin: 0 auto;
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
   .form {
16
   .form {
18
     width: 620px;
17
     width: 620px;
19
     .index-3 {
18
     .index-3 {
20
       display: flex;
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
       .img-2 {
25
       .img-2 {
23
-        margin-left: 100px;
24
         margin-right: 30px;
26
         margin-right: 30px;
25
         width: 42px;
27
         width: 42px;
26
         height: 44px;
28
         height: 44px;
27
       }
29
       }
28
       .input-1 {
30
       .input-1 {
31
+        color: rgb(174, 174, 174);
29
         margin-left: 15px;
32
         margin-left: 15px;
33
+        padding-left: 20px;
30
         flex-direction: column;
34
         flex-direction: column;
31
         border-left: 1px solid black;
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
       margin: 80px auto;
49
       margin: 80px auto;
37
       background-color: rgb(26, 117, 100);
50
       background-color: rgb(26, 117, 100);
38
       color: #fff;
51
       color: #fff;
39
     }
52
     }
40
   }
53
   }
41
-  .txt-2 {
54
+  .index-txt2 {
42
     font-size: 30px;
55
     font-size: 30px;
43
     color: rgb(174, 174, 174);
56
     color: rgb(174, 174, 174);
44
-    display: block;
45
-    width: 330px;
46
     margin: 10px auto;
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
     font-size: 25px;
72
     font-size: 25px;
50
     color: rgb(174, 174, 174);
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
 }