liudan hai 1 ano
pai
achega
f41568473c

+ 2 - 2
index.html

@@ -4,7 +4,7 @@
 <head>
   <meta charset="UTF-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>自助机</title>
+  <title>叫号屏</title>
 </head>
 
 <body>
@@ -12,4 +12,4 @@
   <script type="module" src="/src/main.jsx"></script>
 </body>
 
-</html>
+</html>

+ 2 - 2
readme.md

@@ -1,5 +1,5 @@
 # 简介
-自助机项目
+叫号屏项目
 
 # 启动
 ```shell
@@ -9,4 +9,4 @@ npm run dev
 # 打包
 ```shell
 npm run build
-```
+```

+ 24 - 24
src/assets/scss/style.scss

@@ -15,24 +15,24 @@ body {
 #root > div,
 .page-body {
   width: 100%;
-  background: #1E50A1;
+  background: #1e50a1;
   color: #333;
   height: 100%;
   box-sizing: border-box;
-  &.big{
-    .room-name{
-      font-size: 1.8rem!important;
+  &.big {
+    .room-name {
+      font-size: 1.8rem !important;
     }
     .table-content,
-    .table-header{
-      font-size: 1.6rem!important;
+    .table-header {
+      font-size: 1.6rem !important;
     }
   }
 }
 .page-body {
   margin: 0;
   padding: 0.8rem 1rem;
- 
+
   font-family: PingFang SC;
   display: flex;
   flex-direction: column;
@@ -54,7 +54,7 @@ body {
       top: -1rem;
       left: 50%;
       transform: translate(-50%, 0);
-      background: #21469B;
+      background: #21469b;
       border-radius: 0 0 0.5rem 0.5rem;
       border: 0.14rem solid #cce774;
       box-sizing: border-box;
@@ -75,7 +75,7 @@ body {
       border-radius: 0.5rem;
       display: inline-block;
       padding: 0.4em 1.5rem;
-      background: #6FBA2C;
+      background: #6fba2c;
       line-height: 1.2rem;
       font-size: 0.8rem;
       color: #fff;
@@ -98,8 +98,8 @@ body {
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
-      &.big{
-         font-size: 2.4rem;
+      &.big {
+        font-size: 2.4rem;
       }
     }
   }
@@ -129,25 +129,25 @@ body {
     flex: 1;
     margin-top: 0.8rem;
     overflow: hidden;
-    &.section{
-      padding-top: 0;
+    &.section {
+      padding-top: 0.3rem;
     }
     .table-content,
     .table-header {
       box-sizing: border-box;
-      background: #21469B;
+      background: #21469b;
       border-radius: 0.5rem;
-      border: 0.14rem solid #21469B;
+      border: 0.14rem solid #21469b;
       padding: 0 1rem;
       font-size: 1.4rem;
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
-      height: 4.2rem;
-      line-height: 3.9rem;
+      height: 4rem;
+      line-height: 3.8rem;
       text-align: center;
       color: #fff;
-      margin-top: 0.8rem;
+      margin-top: 0.5rem;
     }
     .table-content {
       background-color: #f0f0f0;
@@ -212,19 +212,19 @@ body {
       color: #333;
     }
   }
-  .footer{
+  .footer {
     color: #333;
   }
 }
-.dark-bg{
+.dark-bg {
   .page-body {
     background: #0d1943;
     color: #fff;
   }
   .header {
     .room-name {
-      background: #21469B;
-      border-color: #21469B;
+      background: #21469b;
+      border-color: #21469b;
       color: #fff;
     }
     .heaer-btn {
@@ -246,7 +246,7 @@ body {
       color: #fff;
     }
   }
-  .footer{
+  .footer {
     color: #fff;
   }
-}
+}

+ 1 - 1
src/components/login/Index.jsx

@@ -103,7 +103,7 @@ class Login extends React.Component {
     React.$fetchPost('04150006', {
       params: [{
         hospID: cacheData.hospital[0] || '',  // 医院ID
-        deviceDesc: '自助机', // 设备名称
+        deviceDesc: '叫号屏', // 设备名称
         deviceIP: cacheData.BASE_URL,
         deviceIdentifyCode: this.props.deviceID, // 设备生成的ID
         purposeID: cacheData.use[0] || '', // 用途ID 未使用

+ 1 - 1
src/pages/bigScreen/Index.jsx

@@ -59,7 +59,7 @@ class BigScreen extends React.Component {
             patList: this.props.patListArea.slice((current - 1) * pageSize, current * pageSize),
           });
           // 10s切换
-          const timer = setTimeout(fn, 10000);
+          const timer = setTimeout(fn, 6000);
           this.setState({
             timer,
           });

+ 1 - 1
src/pages/home/Index.jsx

@@ -234,4 +234,4 @@ class Home extends React.Component {
     );
   }
 }
-export default Home;
+export default Home;