许静 5 年之前
父節點
當前提交
1747c48fc0
共有 1 個文件被更改,包括 27 次插入26 次删除
  1. 27
    26
      src/pages/Welcome.jsx

+ 27
- 26
src/pages/Welcome.jsx 查看文件

@@ -25,34 +25,35 @@ const welcome = (props) => {
25 25
     })
26 26
   }
27 27
   return (
28
-
29
-    <div style={{ display: 'flex', marginBottom: '33px' }}>
30
-      <div style={{
31
-        textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(241,43,62,1) 0%,rgba(254,144,155,1) 100%)', height: '100px',
32
-        boxShadow: '0px  0.11rem 14px -15px rgba(241,43,62,1)',
33
-        borderRadius: '12px', width: '32%', marginRight: '2%'
34
-      }}>
35
-        <span style={{ fontSize: '24px', color: '#fff' }}>总用户 </span>
36
-        <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectUserCount || '0'}</span>
37
-      </div>
38
-      <div style={{
39
-        textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(255,126,74,1) 0%,rgba(255,196,168,1) 100%)', height: '100px',
40
-        boxShadow: '0px  0.11rem 14px -15px rgba(255,126,74,1)',
41
-        borderRadius: '12px', width: '32%', marginRight: '2%'
42
-      }}>
43
-        <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
44
-        <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectRegisteredCount || '0'}</span>
45
-      </div>
46
-      <div onClick={() => router.push('/indexEcharts/newUsers')} style={{
47
-        textAlign: 'center', display: 'flex', justifyContent: 'center', background: 'linear-gradient(137deg,rgba(107,130,230,1) 0%,rgba(152,175,251,1) 100%)', height: '100px',
48
-        boxShadow: '0px  0.11rem 14px -15px rgba(107,130,230,1)',
49
-        borderRadius: '12px', width: '32%',
50
-      }}>
51
-        <span style={{ fontSize: '24px', color: '#fff', borderBottom: '1px solid #fff', margin: '30px 0' }}>最近7天新增 </span>
52
-        <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy', lineHeight: '100px' }}>{data.selectRecentlyCount || '0'}</span>
28
+    <>
29
+      <div style={{ display: 'flex', marginBottom: '33px' }}>
30
+        <div style={{
31
+          textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(241,43,62,1) 0%,rgba(254,144,155,1) 100%)', height: '100px',
32
+          boxShadow: '0px  0.11rem 14px -15px rgba(241,43,62,1)',
33
+          borderRadius: '12px', width: '32%', marginRight: '2%'
34
+        }}>
35
+          <span style={{ fontSize: '24px', color: '#fff' }}>总用户 </span>
36
+          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectUserCount || '0'}</span>
37
+        </div>
38
+        <div style={{
39
+          textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(255,126,74,1) 0%,rgba(255,196,168,1) 100%)', height: '100px',
40
+          boxShadow: '0px  0.11rem 14px -15px rgba(255,126,74,1)',
41
+          borderRadius: '12px', width: '32%', marginRight: '2%'
42
+        }}>
43
+          <span style={{ fontSize: '24px', color: '#fff' }}>总注册用户 </span>
44
+          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.selectRegisteredCount || '0'}</span>
45
+        </div>
46
+        <div onClick={() => router.push('/indexEcharts/newUsers')} style={{
47
+          textAlign: 'center', display: 'flex', justifyContent: 'center', background: 'linear-gradient(137deg,rgba(107,130,230,1) 0%,rgba(152,175,251,1) 100%)', height: '100px',
48
+          boxShadow: '0px  0.11rem 14px -15px rgba(107,130,230,1)',
49
+          borderRadius: '12px', width: '32%',
50
+        }}>
51
+          <span style={{ fontSize: '24px', color: '#fff', borderBottom: '1px solid #fff', margin: '30px 0' }}>最近7天新增 </span>
52
+          <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy', lineHeight: '100px' }}>{data.selectRecentlyCount || '0'}</span>
53
+        </div>
53 54
       </div>
54 55
       <IndexEcharts style={{ width: '100%' }} onReData={(e) => redata(e)} ></IndexEcharts>
55
-    </div>
56
+    </>
56 57
   )
57 58
 
58 59
 }