Renxy 1 year ago
parent
commit
0c87261fae
4 changed files with 55 additions and 0 deletions
  1. 5 0
      .umirc.ts
  2. BIN
      src/assets/greentech.png
  3. 15 0
      src/pages/Projects/index.js
  4. 35 0
      src/pages/Projects/index.less

+ 5 - 0
.umirc.ts

@@ -46,6 +46,11 @@ export default defineConfig({
       path: '/home/:projectId',
       component: './Home',
     },
+    {
+      name: '项目选择',
+      path: '/projects/:projectId',
+      component: './Projects',
+    },
     {
       name: '菜单栏',
       path: '/menu/:projectId',

BIN
src/assets/greentech.png


+ 15 - 0
src/pages/Projects/index.js

@@ -0,0 +1,15 @@
+import styles from './index.less';
+const Projects = () => {
+  return (
+    <div className={styles.main}>
+      <div className={styles.titleCon}>
+        <span className={styles.titleSelect}>请选择项目</span>
+        <div className={styles.titleRight}>
+          <div className={styles.icon} />
+          <span className={styles.titleText}>新水岛无人值守管理平台</span>
+        </div>
+      </div>
+    </div>
+  );
+};
+export default Projects;

+ 35 - 0
src/pages/Projects/index.less

@@ -0,0 +1,35 @@
+.main {
+  width: 100%;
+  height: 100vh;
+  background-color: aqua;
+  .titleCon {
+    margin: 0 1.8rem;
+    padding: 2.64rem 0 0.4rem;
+    display: flex;
+    justify-content: space-between;
+    border-bottom: 0.01rem solid #ffffff;
+    .icon {
+      width: 0.54rem;
+      height: 0.54rem;
+      margin-right: 0.1rem;
+      background: url('@/assets/greentech.png') no-repeat center;
+      background-size: 100% 100%;
+    }
+    .titleSelect {
+      font-size: 0.55rem;
+      font-family: Source Han Sans, Source Han Sans;
+      font-weight: 600;
+      color: #3b3b3b;
+      letter-spacing: 0.14rem;
+    }
+    .titleRight {
+      display: flex;
+    }
+    .titleText {
+      font-size: 0.4rem;
+      font-family: Source Han Sans, Source Han Sans;
+      font-weight: 600;
+      color: #3b3b3b;
+    }
+  }
+}